Comment 13 for bug 1210823

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

The above instructions for swapping stereo channels with pulseaudio worked out. The reversed audio sink can easily be made persistent in /etc/pulse/default.pa (as explained in above link). Automation of stereo channel swapping based on sensors would be neat but I didn't figure it out yet, currently I'm using buttons to run scripts. It is also possible to go into Gnome sound settings and choose between the regular and swapped audio sinks.

Automation would have to take into account at least the following configurations:

- Laptop mode:
Regular stereo (left channel on left speaker, right channel on right speaker)

- Display in a kind of flat table position, i.e., at 180 degrees to keyboard, both the display and keyboard facing upward:
Is this a thing that would be used in practice? Should probably default to regular stereo.

- Tent mode:
Swap stereo channels (left channel on right speaker, right channel on left speaker)

- Presentation mode, for want of a better word. Display and keyboard are at similar angle as tent mode i.e. > 180 degrees, but keyboard faces down, keys resting on surface. Effectively the keyboard part functions just a stand for a touchscreen. (Think touch phone or digital photo frame). In the end tent mode achieves the same effect, but e.g. Asus shows off this mode in the first image on https://www.asus.com/2-in-1-PCs/ASUS-ZenBook-Flip-UX561UD):
Regular (left channel on left speaker, right channel on right speaker)

- Tablet mode, display folded back completely:
In landscape orientation, sound follows display rotation, i.e., regular or swapped depending on screen rotation
In portrait orientation, mono sound would probably work best