仅旋转一个屏幕

如果我只有带xrandr -o left命令的内部监视器( LVDS1 )。 现在我想连接第二台显示器,比如HDMI1 。 然后我想只旋转内部显示器,而不是外部显示器。 我尝试了以下(虽然没有外部连接,因为我目前是移动设备),但这没有做任何事情:

 xrandr --output LVDS1 -o left 

如何只旋转一台显示器?

我确实需要一些命令行,因为我想将它放入脚本中。

诀窍是使用较新的--rotate而不是-o ,它需要与--output参数一起使用:

 xrandr --output "$internal" --rotate "$xrandr_rotation" 

例子

 xrandr --output LVDS1 --rotate left xrandr --output LVDS1 --rotate right xrandr --output LVDS1 --rotate normal xrandr --output LVDS1 --rotate inverted 

如果打开“ System Settings并选择“ Displays ,则可以选择要旋转的显示器,并为要旋转的每个监视器选择要使用的旋转。