To fight with dual-monitor resolution problems, I followed the advice found in other questions here related to session- and display-setup-script. I have the following
[SeatDefaults] user-session=ubuntu greeter-session=unity-greeter allow-guest=false display-setup-script=/usr/bin/dualmon.sh session-setup-script=/usr/bin/dualmon.sh
I also have the following (executable)
/usr/bin/dualmon.sh that I created:
#!/bin/bash xrandr --output LVDS1 --auto --left-of HDMI1 --output HDMI1 --auto # notify-send Dualscreen activated touch /home/shade/Desktop/touched
However, the resolution is wrong both at the login screen and after I log in. Also, the file /home/shade/Desktop/touched is not there. When I run the
dualmon.sh script manually (after I log in), the resolution is set correctly.
This makes me think that the scripts are not run at all. What is the cause of this and how can I fix it?