如果我只有LVDS1带有xrandr -o left命令的内部监视器 ( ) 。现在我想连接第二台显示器,比如HDMI1. 然后我只想旋转内部显示器,而不是外部显示器。我尝试了以下操作(虽然没有外部连接,因为我目前是移动的),但这没有任何作用:
xrandr --output LVDS1 -o left
Run Code Online (Sandbox Code Playgroud)
如何只旋转一台显示器?
我确实需要一些命令行,因为我想将其放入脚本中。
Mar*_*ing 60
诀窍是使用较新的--rotate而不是-o需要与--output参数一起使用的:
xrandr --output "$internal" --rotate "$xrandr_rotation"
Run Code Online (Sandbox Code Playgroud)
xrandr --output LVDS1 --rotate left
xrandr --output LVDS1 --rotate right
xrandr --output LVDS1 --rotate normal
xrandr --output LVDS1 --rotate inverted
Run Code Online (Sandbox Code Playgroud)