[UConsole]Fix Login Screen(sddm) Rotation after boot

After you set kde-plasma as your main DE do the next:

  1. add next line

xrandr --output DSI-1 --rotate right

to the file

/usr/share/sddm/scripts/Xsetup

  1. Add next lines
[X11]
DisplayCommand=/usr/share/sddm/scripts/Xsetup

to the file

/var/lib/sddm/state.conf

reboot.

after i got correct rotation right after boot. maybe it will help

1 Like

To solve the orientation of KDE at startup, I use another solution: I boot directly on the desktop, then a script immediately locks the screen, which is always oriented correctly, even on an external screen! And I can connect normally.

and does it keep rotated after reboot? because when you set it via desktop it works, of course, but resets after reboot

Yes it is! This setting remains after reboot, because it’s a Desktop Environment’s setting, not a SDDM or Lightdm tweak.

(Sorry for English, I reply fast but trashy :sweat_smile:)

This doesn’t seem to work on Plasma 6

Edit: Never mind, i’m an idiot

In case someone else comes across this in the future, my uConsole’s display was DSI-2. So sometimes it is different.

Run xrandr in the terminal. If xrandr shows XWAYLAND0 as the display device, it means that your DE is using Wayland. That display device is not the one you want. You’ll kind of have to “guess”. Try DSI-1. If that doesn’t work, try DSI-2.