I wanted to change my desktop screen resolution to
1366x768. But my
VESA drivers(AMD REDWOOD) did not detect that resolution. So I created a shell script as follows:-
xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync xrandr --addmode DVI-0 1368x768_60.00 xrandr --output DisplayPort-0 --off --output DVI-0 --mode 1368x768_60.00 --pos 0x0 --rotate normal --output HDMI-0 --off
I saved it as
/usr/bin and made it executable. Then I added the following lines to
/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf(which is the equivalent of the well known
/etc/lightdm/lightdm.conf . I am using the above file as I am on 14.04 where there is no
/etc/lightdm/lightdm.conf .) :-
greeter-session=unity-greeter display-setup-script=/usr/bin/lightdmxrandr.sh session-setup-script=/usr/bin/lightdmxrandr.sh
and saved it. In theory this should have changed both the login screen resolution and desktop screen resolution to
1366x768 . But surprisingly this changed only the login screen resolution. The desktop resolution was not changed. Later I added the script to Startup applications and that changed my desktop resolution.
So I want to know why the edits I made to
lightdm.conf file(or rather the
50-ubuntu.conf file) did not affect my desktop resolution. Is this some kind of bug that has to be reported at launchpad or is it wrong to say that edits in lightdm will affect desktop screen?
PS:- In my opinion this is not just specific to Ubuntu 14.04.