<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Remote Desktop on Ivon's Blog</title><link>https://ivonblog.com/en-us/tags/remote-desktop/</link><description>Recent content in Remote Desktop on Ivon's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</managingEditor><webMaster>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</webMaster><copyright>You are welcome to share articles from Ivon's blog (ivonblog.com). Please cite the source article URL when sharing. All article content is licensed under a Creative Commons Attribution-ShareAlike 4.0 license, unless otherwise stated. For commercial use, please contact me first.</copyright><lastBuildDate>Sun, 31 Dec 2023 14:00:00 +0800</lastBuildDate><atom:link href="https://ivonblog.com/en-us/tags/remote-desktop/index.xml" rel="self" type="application/rss+xml"/><follow_challenge><feedId>56005902658351104</feedId><userId>1132431067563556864</userId></follow_challenge><item><title>Make a Linux Remote Desktop Friendly for Phone Controls</title><link>https://ivonblog.com/en-us/posts/remote-desktop-linux-mobile-friendly-ui/</link><pubDate>Sun, 31 Dec 2023 14:00:00 +0800</pubDate><author>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</author><guid>https://ivonblog.com/en-us/posts/remote-desktop-linux-mobile-friendly-ui/</guid><description>&lt;!-- Co-translated by ChatGPT --&gt;
&lt;p&gt;Remotely control your Linux from Android with a mobile-friendly UI.&lt;/p&gt;
&lt;p&gt;Computer screens are horizontal. Phone screens are vertical. Remote control is awkward. I want to scroll my computer while scrolling my phone.&lt;/p&gt;
&lt;p&gt;Someone on Reddit tried a similar idea: &lt;a href="https://www.reddit.com/r/Windows10/comments/83io67/win10_remote_desktop_tablet_mode_poor_mans/" target="_blank" rel="noreferrer"&gt;Win10 Remote Desktop + tablet mode = poor man&amp;rsquo;s Windows Phone&amp;hellip; great over LAN&lt;/a&gt;. They used Windows 10 tablet mode to turn the computer into a Windows Phone-style interface over remote desktop.&lt;/p&gt;
&lt;p&gt;This concept is a bit convoluted. Fine, let&amp;rsquo;s call it &amp;ldquo;turning a computer into a cloud phone.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;The goal is to make the remote desktop experience on a phone less painful.&lt;/p&gt;</description><content:encoded>&lt;!-- Co-translated by ChatGPT --&gt;
&lt;p&gt;Remotely control your Linux from Android with a mobile-friendly UI.&lt;/p&gt;
&lt;p&gt;Computer screens are horizontal. Phone screens are vertical. Remote control is awkward. I want to scroll my computer while scrolling my phone.&lt;/p&gt;
&lt;p&gt;Someone on Reddit tried a similar idea: &lt;a href="https://www.reddit.com/r/Windows10/comments/83io67/win10_remote_desktop_tablet_mode_poor_mans/" target="_blank" rel="noreferrer"&gt;Win10 Remote Desktop + tablet mode = poor man&amp;rsquo;s Windows Phone&amp;hellip; great over LAN&lt;/a&gt;. They used Windows 10 tablet mode to turn the computer into a Windows Phone-style interface over remote desktop.&lt;/p&gt;
&lt;p&gt;This concept is a bit convoluted. Fine, let&amp;rsquo;s call it &amp;ldquo;turning a computer into a cloud phone.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;The goal is to make the remote desktop experience on a phone less painful.&lt;/p&gt;

&lt;h2 class="relative group"&gt;Overview
 &lt;div id="overview" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#overview" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;In recent years, Linux mobile operating systems such as postmarketOS and Mobian have appeared one after another. Along with the PinePhone&amp;rsquo;s release, the Linux community developed corresponding phone interfaces such as Phosh, Plasma Mobile, and SXMO. Linux now also has many programs optimized for touchscreens.&lt;/p&gt;
&lt;p&gt;The Linux UI that best fits both computers and phones might be GNOME. Unfortunately, it still does not handle dynamic resolution switching well, so let&amp;rsquo;s use a dedicated UI instead.&lt;/p&gt;
&lt;p&gt;The current candidates are &amp;ldquo;Phosh&amp;rdquo; and &amp;ldquo;Plasma Mobile&amp;rdquo;. Since I use Plasma as my main desktop, I chose the latter.&lt;/p&gt;
&lt;p&gt;Linux can install multiple desktop environments. As long as we install both Plasma and Plasma Mobile, we can switch between phone and desktop Linux interfaces.&lt;/p&gt;
&lt;p&gt;For remote desktop software, I chose &lt;a href="https://ivonblog.com/posts/weylus-use-tablet-as-graphic-tablet/" target="_blank" rel="noreferrer"&gt;Weylus&lt;/a&gt;, which supports Wayland and touch gestures.&lt;/p&gt;

&lt;h2 class="relative group"&gt;Option 1: Plasma Mobile
 &lt;div id="option-1-plasma-mobile" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#option-1-plasma-mobile" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;On Arch Linux, Plasma Mobile has to be installed from the AUR:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S plasma-mobile&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="2"&gt;
&lt;li&gt;
&lt;p&gt;Reboot, then select Plasma Mobile (Wayland) in SDDM.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Start the remote desktop software Welyus and enable Wayland support.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;After connecting from the phone browser, you can control the Linux computer with a mobile UI.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;But most computer screens are landscape, which creates a problem: Wayland cannot force a &amp;ldquo;portrait&amp;rdquo; resolution. So I used screen rotation instead. The projected result looks like this:
&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://static.ivonblog.com/posts/remote-desktop-linux-mobile-friendly-ui/images/B37692CA4478.webp"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;The remote Plasma Mobile view on an Android device:
&lt;img src="https://static.ivonblog.com/posts/remote-desktop-linux-mobile-friendly-ui/images/Screenshot_20231231-021855.webp" width=300&gt;&lt;/p&gt;
&lt;p&gt;This is barely usable, because after rotating the screen, the mouse and touch gestures are reversed. Excellent, just what nobody asked for.
&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://static.ivonblog.com/posts/remote-desktop-linux-mobile-friendly-ui/images/FD41534C862.webp"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;

&lt;h2 class="relative group"&gt;Option 2: Plasma X11 + XRandr
 &lt;div id="option-2-plasma-x11--xrandr" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#option-2-plasma-x11--xrandr" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Desktop Plasma lets you arrange the UI freely and also has a tablet mode, so you can use it on touch devices without Plasma Mobile.&lt;/p&gt;
&lt;p&gt;This only works in an X11 session. Following &lt;a href="https://itslinuxfoss.com/set-custom-resolution-using-xrandr/" target="_blank" rel="noreferrer"&gt;It&amp;rsquo;s Linux FOSS&amp;rsquo;s tutorial&lt;/a&gt;, use the following XRandr commands to add a custom resolution and force the screen into a portrait resolution without rotating the display.&lt;/p&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;cvt &lt;span class="m"&gt;1080&lt;/span&gt; &lt;span class="m"&gt;1920&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;xrandr --newmode &lt;span class="s2"&gt;&amp;#34;1080x1920_60.00&amp;#34;&lt;/span&gt; 176.50 &lt;span class="m"&gt;1080&lt;/span&gt; &lt;span class="m"&gt;1168&lt;/span&gt; &lt;span class="m"&gt;1280&lt;/span&gt; &lt;span class="m"&gt;1480&lt;/span&gt; &lt;span class="m"&gt;1920&lt;/span&gt; &lt;span class="m"&gt;1923&lt;/span&gt; &lt;span class="m"&gt;1933&lt;/span&gt; &lt;span class="m"&gt;1989&lt;/span&gt; -hsync +vsync
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;xrandr --addmode eDP-1 &lt;span class="s2"&gt;&amp;#34;1080x1920_60.00&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Then adjust scaling:&lt;/p&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;xrandr --output eDP-1 --mode &lt;span class="s2"&gt;&amp;#34;1080x1920_60.00&amp;#34;&lt;/span&gt; --scale 0.5x0.5&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;X11 touch gestures can be improved with &lt;a href="https://ivonblog.com/posts/linux-touchegg-custom-gesture/" target="_blank" rel="noreferrer"&gt;Touche&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Even after all these tweaks, the Plasma desktop is still not suitable for phone use.
&lt;img src="https://static.ivonblog.com/posts/remote-desktop-linux-mobile-friendly-ui/images/Screenshot_20231231-033509.webp" width=300&gt;&lt;/p&gt;</content:encoded><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://ivonblog.com/en-us/posts/remote-desktop-linux-mobile-friendly-ui/featured.webp"/></item></channel></rss>