Running xrandr for kdm and after login

Jonathan Gardner jgardner at jonathangardner.net
Wed Sep 8 16:02:02 UTC 2010


I've been playing around with a dual-monitor setup on my F13 install.
I can run a command like the following to get them to display
properly:

    /usr/bin/xrandr --output DFP2 --auto --rotate left --output CRT1
--auto --pos 1080x420

I added the above line to /etc/kde/kdm/Xsetup. When I start the
computer or log out, the kdm does start with both screens properly
aligned, but the login box is too high on the CRT1 side so it is cut
in half.

I don't know how to fix where the login box shows up. Ideally, I'd
like it to appear in the middle of the DFP2 screen. If someone has
some tips, I'd appreciate it.

I thought maybe it's getting confused with such a wide virtual space,
so perhaps turning off CRT1 will get it to center it on DFP2 properly.
I changed the line in /etc/kde/kdm/Xsetup to the following:

    /usr/bin/xrandr --output DFP2 --auto --rotate left --output CRT1 --off

Now CRT1 is turned off, but the login box is nowhere to be seen on DFP2.

Once I log in, it obviously preserves my xrandr configuration. I'd
like to have it switch to dual-monitor mode, so I tried adding the
following line to /etc/X11/xinit/Xsession, but that doesn't seem to
run at all.

As I've mucked with the files, I might have broken something. Now
knetworkmanager isn't starting, although that may be a different
problem.

-- 
Jonathan Gardner
jgardner at jonathangardner.net


More information about the users mailing list