地精-炮弹wayland,旋转屏幕



假设我使用的是英特尔的驱动程序。

Gnome-shell允许使用Xorg时在Settings -> Display中旋转屏幕。

使用Wayland时可以旋转吗?

我的联想Yoga 910笔记本电脑的显示器设置中没有屏幕旋转按钮,这是一款敞篷车。

在Gnome开始随机翻转屏幕后,我通过以下方式禁用了自动屏幕旋转:gsettings set org.gnome.settings-daemon.plugins.orientation active false

突然,我有了这些按钮!

GNOME的Mutter从3.20开始支持Wayland上的屏幕旋转,3.22对此进行了改进。https://wiki.gnome.org/ThreePointTwentyone/ReleaseNotes

部分解决方案是将rotate-monitor键设置为使用gsettingsdconf-editor的键绑定。

例如,下面的命令将导致Ctrl+F8逆时针旋转屏幕:

$ gsettings set org.gnome.mutter.keybindings rotate-monitor "['XF86RotateWindows', '<Control>F8']"

这不允许用户指定目标方向,而只能旋转屏幕直到达到所需的方向。

(原文:https://unix.stackexchange.com/a/465395/20661)

最新更新