Monday, April 29, 2024
82
rated 0 times [  82] [ 0]  / answers: 1 / hits: 74760  / 1 Year ago, sun, april 16, 2023, 10:45:49

I have a widescreen monitor that rotates. I'm trying to use it in 'landscape' mode (vertical). This is easy in the GUI.



How do I rotate my display when I am not running an X Server or when I am viewing a Virtual Console / Terminal.


More From » command-line

 Answers
7

You can rotate your virtual framebuffers using fbcon. 0 through 3 to represent the various rotations:




  • 0 - Normal rotation

  • 1 - Rotate clockwise

  • 2 - Rotate upside down

  • 3 - Rotate counter-clockwise



These can be set from the command line by putting a value into the correct system file. Rotate the current framebuffer:



echo 1 | sudo tee /sys/class/graphics/fbcon/rotate


Rotate all virtual framebuffers:



echo 1 | sudo tee /sys/class/graphics/fbcon/rotate_all


If you want this to happen automatically when you start your system, you need to modify your boot loader configuration to give it the correct options. In /etc/default/grub add fbcon=rotate:1 to the GRUB_CMDLINE_LINUX line:



GRUB_CMDLINE_LINUX="fbcon=rotate:1"


(Don't forget to run sudo update-grub after changing this file.)



Sources: Rotate Screen, not running X windows, Rotate console on startup (Debian)


[#33300] Monday, April 17, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
enincroscope

Total Points: 252
Total Questions: 124
Total Answers: 104

Location: Tajikistan
Member since Thu, Apr 14, 2022
2 Years ago
enincroscope questions
Thu, Jan 20, 22, 08:33, 2 Years ago
Thu, Apr 7, 22, 01:09, 2 Years ago
Mon, May 16, 22, 09:08, 2 Years ago
;