I'm trying to load some xrandr settings (for dual head boot, also tested with single head boot, same issues) automatically when I log in with MATE.
From what I've read so far, this is what I've done:
Create the executable xrandr script /home/me/scripts/setoutput.sh:
- Code: Select all
xrandr --output CRT1 --mode 1920x1080
xrandr --output LVDS --mode 1440x900 --rate 50
xrandr --output CRT1 --right-of LVDS
xrandr --output CRT1 --primary
Then edited /etc/lightdm/lightdm.conf so it looks like:
- Code: Select all
[SeatDefaults]
greeter-session=unity-greeter
user-session=mate
display-setup-script=/home/me/scripts/setoutput.sh
# for your desktop session
session-setup-script=/home/me/scripts/setoutput.sh
The display-setup-script line seems to work as the screen setting is ok when I see the logon screen (where you have to enter your password).
But once I login with MATE, all the xrandr settings are lost and I'm back to the default screen and resolution setting.
When I fire the setoutput.sh script manually from the terminal, it does work. I just need to find a way to fire it on session login.
Does anyone know how to run xrandr commands automatically at MATE startup?
Thanks!
ps: running Mint 12 with an ATI 3650 radeon card (lenovo W500 notebook)

