You are not logged in.

#1 2025-05-22 14:13:49

Birdocalypse
Member
Registered: 2025-05-13
Posts: 4

Change default screen orientation on boot.

Solved

As root
in /etc/default/

    nano grub

Append "fbcon=rotate:3" to GRUB_CMDLINE_LINUX

    GRUB_CMDLINE_LINUX="zswap.enabled=0 rootfstype=ext4 fbcon=rotate:3"

updated grub config.

    grub-mkconfig -o /boot/grub/grub.cfg

    reboot


Hello,

I've been running Hyprland in portrait mode but my login screen (Lemurs) and grub is still set to landscape mode. I was wondering if there is a convenient way to have the default screen orientation be set to portrait mode. I've seen people say to use xrandr, append fbcon to grub, or modify Xorg config but the posts I have found where never really clear exactly how to go about that.

I am also a bit confused about the difference between Wayland and Xorg. If I am running Hyprland, would I not therefore be running wayland instead of Xorg? I know Xorg was historically the standard and Wayland was designed to be a replacement. So would this configuration setting in a Wayland config file somewhere? Would this be a change I make somewhere in my Graphics card drivers(intel B580)? Would this be a change to the kernel(if I am using the term correctly)?

Please let me know what other information I need, or if I am just misunderstanding how displays work in linux.

I feel like I am missing or misunderstanding a base fundamental assumption here.
P.S. Any book/text recommendations for learning the fundamentals? Especially any that also dive into the historical origins of words/commands/abbreviations?

Last edited by Birdocalypse (2025-05-27 03:48:12)

Offline

#2 2025-05-22 15:08:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,287

Offline

#3 2025-05-22 17:05:46

Birdocalypse
Member
Registered: 2025-05-13
Posts: 4

Re: Change default screen orientation on boot.

What do you mean by this?

seth wrote:

https://www.kernel.org/doc/Documentation/fb/modedb.rst
"video=rotate=90" or "video=rotate=270", depending on which side of your neck hurts more.

What is modedb.rst? is this something I need to install? Is this a file somewhere? where would I put the line "Video=rotate=90"? What does it mean by frame buffer? What is a frame buffer device? What is a video mode database? What is <bpp>?

Last edited by Birdocalypse (2025-05-22 17:12:39)

Offline

#4 2025-05-22 18:03:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,156

Re: Change default screen orientation on boot.

The link explains the underlying mechanism. The video=rotate=90 params would be added to your https://wiki.archlinux.org/title/Kernel_parameters by configuring your bootloader appropriately

As for the other questions in your opening post. Since you're worried about the Linux Console (and since lemurs is a TUI, it will inherit this config) You need to rotate the framebuffer of the linux console. When hyprland takes over, it will allocate it's own framebuffer and the config you set for the linux framebuffer largely irrelevant.

Last edited by V1del (2025-05-22 18:10:50)

Offline

#5 2025-05-22 19:21:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,287

Re: Change default screen orientation on boot.

The linked thread also points out that the particular parameter doesn't work and suggest  to go w/ the fbcon rotation.

Offline

#6 2025-05-22 20:14:23

Birdocalypse
Member
Registered: 2025-05-13
Posts: 4

Re: Change default screen orientation on boot.

Okay, so I think I got it, However Grub is still sideways.

Here is what I did
As root
in /etc/default/

nano grub

Append "fbcon=rotate:3" to GRUB_CMDLINE_LINUX

GRUB_CMDLINE_LINUX="zswap.enabled=0 rootfstype=ext4 fbcon=rotate:3"

updated grub config.

grub-mkconfig -o /boot/grub/grub.cfg

reboot

Last edited by Birdocalypse (2025-05-22 20:54:14)

Offline

#7 2025-05-22 20:27:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,287

Re: Change default screen orientation on boot.

As pointed out in that thread: you'll have to patch grub to get it to rotate (completely unvetted and untested)
The simple config is eplained in https://www.gnu.org/software/grub/manua … figuration

Offline

#8 2025-05-22 20:57:07

Birdocalypse
Member
Registered: 2025-05-13
Posts: 4

Re: Change default screen orientation on boot.

So trying to rotate grub is a bit more involved. Rotating the cmd line and login screen was the important bit. Thanks for the help!

Offline

#9 2025-05-22 21:36:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,287

Re: Change default screen orientation on boot.

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB