I am running openSuse 13.1 and kde and I now need to support a monitor in portrait mode. I can rotate the screen for the user using “Configure Desktop” however I also need to have the login screen in portrait mode. So far I have not found a solution. Has anyone been able to do this and is willing to share their solution?
For other distros it was possible to add the required xrandr command to /etc/kde4/kdm/Xsetup as described here: https://nowardev.wordpress.com/2012/01/15/rotate-x-screen-before-kdm-starts/
However, I don’t believe that will work for openSUSE. A long time since I used KDM, but it might be possible to use /etc/X11/xinit/xinitrc instead. It has a place where you can add your own lines, but I’m not sure if KDM will overrride when it starts. Hopefully others can chime in with advice on this.
In openSUSE it’s /etc/X11/xdm/Xsetup, for kdm and sddm at least.
Although in both cases you can specify the exact script/location in the corresponding config file (/usr/share/kde4/config/kdm/kdmrc, /etc/sddm.conf).
A long time since I used KDM, but it might be possible to use /etc/X11/xinit/xinitrc instead. It has a place where you can add your own lines, but I’m not sure if KDM will overrride when it starts. Hopefully others can chime in with advice on this.
Xsetup is the right place for the login screen.
xinitrc is only run when a user logs in I think.
From kdm.conf:
# A program to run before the greeter is shown. Can be used to start an
# xconsole or an alternative background generator. Subject to word splitting.
# Default is "/etc/X11/xdm/Xsetup"
#Setup=
I would like to thank you for your help. While trying to get the rotation to work by using xrandr in the Xsetup file I found the article https://wiki.gentoo.org/wiki/Tallscreen_Monitor. Using Modifying /etc/X11/xorg.conf.d/50-monitor.conf got it to work.