This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

cvt xrandr gdm and lightdm

TheBullDog

Mon May 28, 2012 2:19:44 am

I used to add display video resolutions to earlier versions of Zorin by running CVT <horz> <vert>; then xrandr --newmode <pasting the resulting resolution information provided by CVT; then xrandr --addmode VGA1 <resolution_refreshrate>; then xrandr --output VGA1 --mode <resolution_refreshrate>. Then, I would edit /etc/gdm/init/Default and add the new mode(s), reboot, and my new modes would be there. Does anyone know how to save the modes added using xrandr under Zorin 6 rc (I suppose this would apply to any child of Ubuntu 12.04 for that matter). I could write a script to do it on each login, but there has to be an easier way. If no one knows, I'll dig on the internet, and if I find the answer (with the time I have available), I'll post it here. Thanks in advance.

TheBullDog

Mon May 28, 2012 9:14:53 am

Here's the interim solution I'm using at the moment. I have an Intel 915G video card and a Westinghouse L2046NV monitor. The preferred resolution is 1400x1050, not an option provided when I check Display settings.

I dropped to a terminal and ran $ CVT 1400 1050
CVT's output was Modeline "1400x1050_60.00" 121.75 1400 1488 1632 1864 1050 1053 1057 1089 -hsync +vsync

Then I ran $ xrandr --newmode "1400x1050_60.00" 121.75 1400 1488 1632 1864 1050 1053 1057 1089 -hsync +vsync using the info provided by CVT
Next I added the mode $ xrandr --addmode VGA1 1400x1050_60.00
And lastly, I ran $ xrandr --output VGA1 --mode 1400x1050_60.00

* In the past, I would have added my new mode info to /etc/gdm/init/Default, but since Ubuntu 12.04 isn't using gdm this go around, I'm using this temp solution:
I created a script to execute my xrandr commands:

#!/bin/bash
xrandr --newmode "1400x1050_60.00" 121.75 1400 1488 1632 1864 1050 1053 1057 1089 -hsync +vsync
xrandr --addmode VGA1 1400x1050_60.00
xrandr --output VGA1 --mode 1400x1050_60.00

Next, I saved the file as chgres.sh.

In a terminal, I went to the directory where I saved chgres.sh and made the script file executable by running
$ chmod -x filename

Then, I went to System Tools, Preferences, Startup Applications, and added chgres.sh to Startup Programs.

Although I'm still looking for a permanent solution, this will work for now.