Hei*_*erg 1 display wayland display-resolution 20.04
我想在 Ubuntu 20.04 (Wayland) 上旋转我的屏幕,但 xrandr 不起作用。有没有 xrandr 的替代方案,或者我可以让 xrandr 在 Wayland 上工作吗?
我使用 gnome-randr。它“尝试使用 mutter 的 dbus-api 为 gnome 桌面重新实现 'xrandr' 的一些功能。它目前尚未通过分数缩放支持进行测试。”
你可以在这里下载:https : //gitlab.com/Oschowa/gnome-randr 然后你:
$ chmod +x gnome-randr.py
Run Code Online (Sandbox Code Playgroud)
您还可以通过以下方式替换第一行:
#!/usr/bin/env python3
Run Code Online (Sandbox Code Playgroud)
并运行它
$ ./gnome-randr.py
Run Code Online (Sandbox Code Playgroud)
它将为您提供显示器的当前配置和名称,例如 DP-1 DVI-1 HDMI-1。
然后你可以使用 xrandr 语法:
$ ./gnome-randr.py --output DP-1 --rotate left
Run Code Online (Sandbox Code Playgroud)
帮助也适用于所有可能性:
$ ./gnome-randr.py -h
usage: gnome-randr.py [options]
where options are:
--current
--dry-run
--persistent
--global-scale <global-scale>
--output <output>
--auto
--mode <mode>
--rate <rate>
--scale <scale>
--off
--right-of <output>
--left-of <output>
--above <output>
--below <output>
--same-as <output>
--rotate normal,inverted,left,right
--primary
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1890 次 |
最近记录: |