Score:0

best way to quickly rotate screen / change orientation?

vi flag

I am using Ubuntu Studio 22.04, computer is connected to screen using HDMI.

Depending on the software being used (Ardour or VLC or software to manage my mixer...) I would like to have my desktop/screen rotated 90°...

I know that I can go to Settings/Displays and change the orientation, however I am looking for a quicker way to do so...

Ideally a function key or a shortcut :->

Any idea ? Thanks Vincent

Score:0
pl flag

First open your terminal

xrandr

execute this command to get to know which display you want to rotate. (perhaps 'HDMI-0')

Then try this out.

To rotate 90 degree counterclockwise
xrandr --output HDMI-0 --rotate left

To rotate 90 degree clockwise
xrandr --output HDMI-0 --rotate right

To bring it back to normal
xrandr --output HDMI-0 --rotate normal

Register the commands above to your favorite shortcut keys.

pierrely avatar
cn flag
at one stage I also had to map the mapping for the touchscreen and mouse.and pen .. this was my script for Rotate Left xrandr --output eDP --rotate left && xinput set-prop 'ELAN0732:00 04F3:2536 Pen (0)' --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1 && xinput map-to-output 'ELAN0732:00 04F3:2536 Pen (0)' eDP && xinput map-to-output 14 eDP
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.