Ubuntu – xrandr not saving settings permanetly in Ubuntu 14.04

atigraphicsresolutionscreenxrandr

I just installed Ubuntu. I am new to Linux, so I will need this explained in pretty basic terms please. I have two monitors. I use a AMD R7 2xx graphics card. I haven't installed the AMD drivers but don't know if I need to or not. In terminal I used the command xrandr --addmode DVI-0 1600x900 to add that resolution to my second monitor. It works fine until I restart the computer. I read something about needing to change a xorg file in /etc/X11, but that directory doesn't exist on my computer. Not sure what to do.

Best Answer

You can add

display-setup-script=<your_xrandr_command>

to /etc/lightdm/lightdm.conf in [seat defaults] section.

This will ensure it starts before you login into the system.

It also can be done in xorg.conf file, or better in a new file in

/usr/share/X11/xorg.conf.d/<50-some_name.conf>

Related Question