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.
Asked
Active
Viewed 5,551 times
2
Andrew
- 175
2 Answers
2
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>
Pilot6
- 92,041
0
Personally, I'd add your command xrandr --addmode DVI-0 1600x900 to list of Startup Applications, or create a .desktop file in ~/.config/autostart , so that the command runs on every login.
Sergiy Kolodyazhnyy
- 107,582