Kubuntu sddm rotated login screen (20.04)
The login screen has the wrong rotation(portrait). After I log in the rotation is like it should be (landscape).
Where/how do I change the screen rotation of the login screen for kubuntu sddm?
I am using ubuntu 20.04.
- Add
xrandr --output screen --rotate rotation
to/usr/share/sddm/scripts/Xsetup
file where:- screen = eDP-1/DP-1 or else (run
xrandr
command to find your screen name) - rotation = left/right/normal/inverted
- screen = eDP-1/DP-1 or else (run
- In
/etc/sddm.conf.d
, create a file ended with .conf (e.g. login-screen.conf). Add following lines to the config file:
[X11]
DisplayCommand=/usr/share/sddm/scripts/Xsetup
Open the file at /usr/share/sddm/scripts/Xsetup and add this line
xrandr -o left
.
Now open the file at /usr/share/sddm/scripts/Xsetup and add these lines:[X11]
DisplayCommand=/usr/share/sddm/scripts/Xsetup
Log out and enjoy your now correctly rotated login screen.