by PrivateButts · 3y ago · 0 comments
I don't know how much touch screen only computers are considered during development of desktop environments and display servers, my experience left me with the distinct feeling that I had gone way outside of the bounds of the target user of these applications. Maybe I just had bad luck. Hopefully if this is truly an under-served side of the Linux desktop experience, a successful product like this will help push the ball forward on improving support for this niche. I wonder how much the popularity of the Steam Deck is pushing the KDE team to improve touch screen support as well.
I'm running the latest version of Fedora workstation, under wayland too.
This thing is the only truly repairable tablet I've encountered so far, 8 screws and the display pops off, no glue, no can opener required like a Surface Pro. 9 screws to get the heatsink off (they're all captive) and you're at the full size NVME SSD.
Did you check if FF was actually running in wayland mode? Not trying to blame you, the current situation is pretty dire. The only reliable way of finding out if something is actually using wayland is running xeyes and seeing whether the eyes move above the target window.
In Firefox all you have to do is navigate to about:support and check verify that Window Protocol shows wayland.
Or running xlsclients
I started running into them pretty fast when I added a 4K monitor to my Ubuntu 22.04 system and enabled fractional scaling. All of my Wayland apps look fine, and all of my XWayland clients look awful, blurry and obviously scaled. Working one by one to switch them over to native Wayland has been a hassle for various random reasons, most notably:
* Slack: works from the icon in the taskbar, but when auto-started at login does so in X11 mode
* VS Code: works fine when run from Terminal, but when launched from taskbar icon shows up as a different "app" in the taskbar. Launching from the terminal starts in X11 mode
* Zoom: requires more setup in order to share screen. The Zoom UI for screen sharing doesn't work so it's not obvious how to stop sharing screen. It also freezes or crashes all the time for no discernable reason, including locking up when joining some meetings three times in a row and then succeeding on the fourth time.
So if you're not really leaning into what Wayland offers it works fine, but even just fractional scaling has been a four-month hassle to get things working as expected.
As you know, "native Wayland" means the app has been modified so that it can talk to the graphics hardware using the Wayland protocol.
Emacs is the hardest of my apps to persuade to talk Wayland protocol because Fedora's "emacs" package was compiled without the code that talks Wayland.
To persuade Chrome to talk Wayland protocol, I start it with specific command-line arguments, which used to cause bugs, but I haven't noticed any bugs for months.
and not repairable at all as Surface itself, being honest.
Gnome has on both.
The OSK pops up when I need to. There is a Gnome extension to make it work better like adding ctrl, alt and cursor keys for instance.
I also use Gnome extension to force apps to open maximized.
I use it primarily as a tablet at home and a travel laptop for work. I am quite enamored with it.
edit: Touch controls also work, including gestures. It has a pressure sensitive stylus, which also works OOB.
I'd be far more interested in what experiences people are having with Linux on a proper Surface Tablet.
Probably close to zero. Gnome/KDE devs daily drive desktops/laptops and for phones/tablets they don't run FOSS Linux devices but also iOS and Android.
Desktop Linux is already a niche market, and FOSS Linux tablets/phones is even more niche. The only "Linux" built and polished for touch from the ground up is Android but I put Linux in commas for good reason there.
>I don't know how much touch screen only computers are considered during development of desktop environments and display servers
Phosh, Plasma Mobile and SXMO are DEs for phones and tablets, so they support touch fine. I run Phosh (also on pmOS) on my phone and have none of the problems you described. GNOME is also making its own GNOME Mobile.
---
Now, for your specific hardware: I don't know how old your "old surface tablet" is, but I run postmarketOS on the very first Surface RT and it works fine. It uses the kernel from [1] and requires a one-time semi-complicated procedure to bypass Secure Boot and switch away from Windows [2], and even then it has some issues with CPU scaling etc not supported. So I won't recommend it as a general-purpose Linux tablet, but it's good enough for what I use it for.
>On screen keyboard was completely broken with Wayland
It's a Tegra 3 chipset so I don't run a wayland compositor on it (it would need CPU rendering), just Xorg with i3. I haven't tried an OSK inside i3, but the OSK at boot time to enter the disk encryption password (unl0kr) works fine.
If you do run wayland, wayland-native programs should be able to auto-launch the OSK because they will invoke the input-method protocol, and xwayland programs probably won't. This is the behavior I see on my phone running Phosh - firefox and foot (terminal) showing wayland windows trigger the OSK (squeekboard), whereas chromium using xwayland does not. But even then, chromium does respond to the OSK input when I manually trigger the OSK.
>X had trouble with screen rotation.
The grate kernel supports reading the tablet's accelerometer sensor, so I just wrote a script to listen to iio-sensor-proxy signals and run `xrandr` to rotate the screen accordingly.
[1] https://github.com/grate-driver/linux
[2] https://openrt.gitbook.io/open-surfacert/common/boot-sequenc...
----
Didn't really consider postmarketOS. I haven't played with installing mobile operating systems on desktop hardware in a long time.
----
Yeah I think what screwed my testing was applications that were using xwayland without me noticing. The stable firefox snap at the time (which is preinstalled on Ubuntu), uses it apparently. I have only used Xorg before, as I've never felt the need or desire to step into the tarpit that's migrating to Wayland.
----
Neat workaround for your tablet, glad it works well for you.
----
End of the day, I'm sure that I could have puttered on it and eventually got it all working (aside from the hardware on the surface that appears to be completely locked down), but it's a pretty poor showing out of the box. YMMV and all that, and I hope that more investment in the space makes it a better experience in the future.
Works like a charm on my OLED touchscreen laptop. I am actually surprised by how better KDE looks compared to windows or macos and how stable it is (KDE version 5.27.4 that is).