Can't save screen resolution setting.
Posted
by
Searock
on Super User
See other posts from Super User
or by Searock
Published on 2010-07-19T19:40:04Z
Indexed on
2011/01/01
15:56 UTC
Read the original article
Hit count: 291
ubuntu-10.04
|screen-resolution
Hi,
My screen resolution in windows and previous version of Ubuntu (9.04) was 1152 x 864.
But in Ubuntu 10.04 it gives me an option of 1024 x 786 and 1360 x 786.
I have some how managed to add 1152x684 resolution by using xrandr command.
searock@searock-desktop:~$ cvt 1152 864
1152x864 59.96 Hz (CVT 1.00M3) hsync: 53.78 kHz; pclk: 81.75 MHz Modeline "1152x864_60.00" 81.75 1152 1216 1336 1520 864 867 871 897 -hsync +vsync
searock@searock-desktop:~$ xrandr --newmode "1152x864_60.00" 81.75 1152 1216 1336 1520 864 867 871 897 -hsync +vsync
searock@searock-desktop:~$ xrandr --addmode S-video 1152x864
xrandr: cannot find output "S-video"
searock@searock-desktop:~$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1360x768 59.8
1024x768 60.0*
800x600 60.3 56.2
848x480 60.0
640x480 59.9 59.9
1152x864_60.00 (0x124) 81.0MHz
h: width 1152 start 1216 end 1336 total 1520 skew 0 clock 53.3KHz
v: height 864 start 867 end 871 total 897 clock 59.4Hz
searock@searock-desktop:~$ xrandr --addmode VGA1 1152x864_60.00
But the problem is when ever I restart my computer I get this message.
Could not apply the stored configuration for the monitors. Could not find a suitable configuration of screens.
And then it comes back to 1024 x 786
My graphic card details : Intel(R) 82945G Express Chipset Family.
Is there any way I can fix this once for all ?
Thanks.
Edit 1 : rumtscho has suggested me to modify xorg.conf file. But I am not sure what HorizSync means? is it Horizontal frequency ?
My monitor model is Acer v173.
Here's my specification.
So what should be HorizSync and VertRefresh ?
Edit 2 :
I have edited my Xorg.conf file as follows :
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 30-80
VertRefresh 55-75
EndSection
then I added the resolution and restarted my computer and still I am facing the same problem.
Is there something that I am missing?
Edit 3 : For now I have edited /etc/gdm/Init/Default(gdm startup scripts) to include following xrandr commands, just below line initctl -q emit login-session-start DISPLAY_MANAGER=gdm
xrandr --newmode "1152x864_60.00" 81.75 1152 1216 1336 1520 864 867 871 897 -hsync +vsync
xrandr --addmode VGA1 1152x864_60.00<br/>
xrandr -s 1152x864_60.00
This has solved my problem, but this commands have increased my computer's boot time.
I think I will have to edit xorg file properly.
Edit 4 : Instead of adding this files to gdm startup scripts I have created a shell script and added it to startup (System -> Preference -> Startup Applications)
#!/bin/bash
xrandr --newmode "1152x864_60.00" 81.75 1152 1216 1336 1520 864 867 871 897 -hsync +vsync
xrandr --addmode VGA1 1152x864_60.00
xrandr -s 1152x864_60.00
And don't forget to add execution rights. (Right Click -> Properties -> Permission -> Allow executing file as program)
© Super User or respective owner