Nobara-Project / nobara-images

20 stars 2 forks source link

Rotate Handheld Image Grub by Default #6

Open JustPlainGarak opened 3 months ago

JustPlainGarak commented 3 months ago

This is an enhancement suggestion, not a bug.

The Handheld image has the grub menu at the "native" rotation for the screen on the Steam Deck (OLED in my case) and I imagine basically every other handheld, since they almost universally use tablet screens. I was able to edit Grub myself for this, but it might be nice for the default Grub configuration to be rotated to the device orientation rather than the screen orientation. This is all I needed to add to /etc/default/grub to accomplish the rotation:

GRUB_CMDLINE_LINUX='video=efifb fbcon=rotate:1'

I did not test whether this configuration applies to the console mode because I also disabled console mode, set GFXMODE, and applied a (nifty Nobara) theme at the same time I set the rotation parameters. I can confirm that this at least works with Grub set to graphics mode, GRUB_GFXMODE='1280x800' in my case on the OLED.