Bug#961307: Screen rotation keybinding only works on internal display, not external display

Simon McVittie smcv at debian.org
Sat May 23 11:54:55 BST 2020


Control: reassign -1 src:mutter 3.36.2-1
Control: tags -1 + moreinfo upstream

On Fri, 22 May 2020 at 17:19:37 -0700, Josh Triplett wrote:
> Steps to reproduce (on a laptop, with an external display available):
> 
> Bind a key to rotate the screen:
> 
> gsettings set org.gnome.mutter.keybindings rotate-monitor "['XF86RotateWindows', '<Super>r']"
> 
> With the internal display active, hit that rotation key repeatedly.
> Watch the internal display rotate each time you hit it.
> 
> Switch to the external display (disabling the internal display).
> 
> Hit the rotation key repeatedly again. The external display remains
> unaffected.

As the name of the setting suggests, this keybinding is a feature of
mutter, and is not gnome-settings-daemon's responsibility (prior to 2017
there was an equivalent in g-s-d, but that code was moved into mutter
because the compositor has a much better overview of how things are
meant to work). I'm assuming you're using the latest version of mutter:
please adjust the bug metadata if that's not true.

It looks as though this is working as designed:
src/backends/meta-monitor-config-manager.c specifically looks for a laptop
panel that is not cloned onto an external display.

This feature appears to have been intended for use with tablet PCs or with
devices that are convertible between laptop and tablet modes (e.g. Lenovo
Yoga), where the user is expected to rotate the machine quite frequently.
The same infrastructure is used to respond to an accelerometer indicating
that the direction of "down" has changed.

If you rotate an external monitor frequently enough that you need a
hotkey for it, please talk to upstream: I don't think it would be wise
for upstream and Debian to assign different meanings to this keybinding.

Thanks,
    smcv



More information about the pkg-gnome-maintainers mailing list