Comment 9 for bug 1210823

Revision history for this message
Mario Vukelic (kreuzsakra) wrote : Re: Convertibles: Switching between laptop mode and tablet mode needed

I am currently setting up such a device, Asus ZenBook Flip 15, UX561UD from 2018, and the new Dell XPS 15 9575 2-in-1 will follow in a week or two.
https://www.notebookcheck.net/Asus-ZenBook-Flip-15-i7-8550U-GTX-1050-4K-SSD-HDD-Convertible-Review.295860.0.html
https://www.notebookcheck.net/Dell-XPS-15-9575-i7-8705G-Vega-M-GL-4K-UHD-Convertible-Review.301916.0.html

For the Asus, the generic laptop functions work out of the box with just two small niggles (bugs are filed) and very little is missing to make conversion features work out of the box. Rotation sensors and touch works perfectly fine (this is on Wayland, X has fewer working touch gestures but basics work too). What is missing is just:

1. Automatically deactivate touchpad when folding to tablet. (The keyboard already turns off. The keyboard has a working key to deactivate the touchpad, these two things only have to be wired together)

2. The new on-screen keyboard (from Gnome 2.28) activates automatically (even when deactivated in Accessibility settings) when touching the search box in the Gnome Activities menu and the applications overview menu. I found no other place where it triggers, not even the first-class Gnome applications like Web. It just has to trigger for every text entry box and we are good.

3. Important and not yet mentioned: This device type has a tent mode, typically for video watching. (It's great because most laptops have air intake grills and speakers at the bottom, which sucks e.g. in bed. Tent mode solves this nicely). However, in tent mode the stereo speakers swap positions relative to the screen, so the stereo channels have to be swapped. This is quite simple on the fly without touching a config file by:

pactl load-module module-remap-sink sink_name=reverse-stereo master=0 channels=2 master_channel_map=front-right,front-left channel_map=front-left,front-right

Then switch to it by:
pactl set-default-sink reverse-stereo

One can also switch in the sound control panel. It will disappear after pulseaudio restart

I didn't come up with the pulseaudio stuff or try it out yet. Credit goes to @ulidtko on https://superuser.com/questions/59481/how-to-swap-stereo-channels-in-ubuntu