dvdhrm / kmscon

Linux KMS/DRM based virtual Console Emulator
http://www.freedesktop.org/wiki/Software/kmscon
Other
432 stars 79 forks source link

Allow rotating console #73

Open lipidity opened 11 years ago

lipidity commented 11 years ago

Kernel command line fbcon=rotate:3, or else # echo 3 > /sys/class/graphics/fbcon/rotate_all rotates the linux console.

I think it's necessary for kmscon to have rotation ability at some point.

dvdhrm commented 11 years ago

The final uterm-rework will include this feature. It's on my TODO list. However, I haven't seen anybody who actively uses this feature so it's still low-priority.

Thanks David

lipidity commented 11 years ago

Thanks. I have my monitor rotated 90° so I'll need this feature before I can switch to kmscon.

microcai commented 10 years ago

for drm3d backend, I think this feature is rather trival to implement, just apply rotate matrx. a hard time for software render ;)

Digit commented 8 years ago

<- actively use "echo 3 > /sys/class/graphics/fbcon/rotate_all". harmed by its absence. ... incase that's relevant and helps.

MacSlow commented 1 year ago

Hm... a bit late to the "party", but I have implemented output rotation in my fork of kmscon to scratch an itch. I have written a small blog-post about my patch here: https://blog.macslow.org/?p=365. I am also providing prebuilt binaries for Ubuntu and Fedora (links in the blog-post).

A few more screencasts showing off kmscon's new output-rotation: https://www.youtube.com/watch?v=ybjmUFIXfUU&list=PLXvTBWcnTI1OHF7-Op-ASYsQKKg1TYb5Z

So far I only bothered with the gltex render-engine of kmscon (120 Hz refresh system-console is just too cool ;). I might feel like doing it for the pixman one too. But I'll most likely never touch the fbdev one :)

Currently I am writing the "dynamic mode" (for fun and as a bit of a learning exercise) reading a potentially present gyro/acceleromter sensor in the system and an "on-the-fly mode", which will allow the user to change the output-orientation at run-time (via keyboard-shortcuts) instead of just at start-up via the new command-line argument --rotate.

Once I have completed the dynamic- and on-the-fly modes for output-rotation, I will poke upstream asking, if my changes can be moved to master.