Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
67
rated 0 times [  67] [ 0]  / answers: 1 / hits: 81768  / 2 Years ago, sat, october 8, 2022, 10:52:17

If I have only the internal monitor (LVDS1) with an xrandr -o left command. Now I want to attach a second monitor, say to HDMI1. Then I'd like to rotate only the internal monitor, but not the external one. I tried the following (with no external attached though, since I am mobile currently), but that does not do anything:



xrandr --output LVDS1 -o left


How can I rotate only one monitor?



I do need some command line, since I want to put this into a script.


More From » xrandr

 Answers
4

The trick is to use the newer --rotate instead of -o which needs to be used with a --output argument:



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


Examples



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

[#37116] Sunday, October 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
attagjump

Total Points: 272
Total Questions: 127
Total Answers: 124

Location: Taiwan
Member since Fri, Sep 17, 2021
3 Years ago
;