vin*_*nce 5 display-rotation 18.10
我尝试遵循这个指南,该指南显然在 2016 年就起作用了。是否有可能适用于 Wayland 的等效方法?我在某处看到 Gnome 现在支持它,但我的显示设置仅显示手动设置屏幕方向的方法。
Kir*_*kow -1
旧的方法xrandr -o [rotation]在 Ubuntu 18 中不起作用。
Ubuntu 18 中旋转屏幕的工作命令是
xrandr --output [display port] --rotate [rotation]
Run Code Online (Sandbox Code Playgroud)
和
[rotation]与之前一样,是normal、 、left或right之一inverted;[display port]:除非您已经了解您的设备(HDMI、DP、eDP...),否则您可以
独自奔跑xrandr,通读上面的内容,找到据说有联系的那一个;
或者
跑去xrandr | egrep -o '^.+ connected' | cut -d " " -f 1让壳牌把它带给你。
将这两个命令放在一起,您将得到:
o=$(xrandr | egrep -o '^.+ connected' | cut -d " " -f 1); xrandr --output $o --rotate [rotation]
Run Code Online (Sandbox Code Playgroud)
或者
xrandr --output $(xrandr | egrep -o '^.+ connected' | cut -d " " -f 1) --rotate [rotation]
Run Code Online (Sandbox Code Playgroud)| 归档时间: |
|
| 查看次数: |
1485 次 |
| 最近记录: |