PDA

View Full Version : [ubuntu] Screen Resolution Changes on reload/boot



karthik_jce
April 3rd, 2009, 02:56 AM
Hi,

I have an Acer (AL1916W) monitor with Nvidia graphics card. It was working fine initially, but suddenly whenever I boot my pc or do a restart, the resolution changes to 1200x768, wereas the resolution I set was 1440x900.

When I go to System-->Administration-->Nvidia X server settings and change the resolution to 1440x900, then it changes to 1440x900 and words fine till I restart.

Attaching the /etc/X11/xorg.conf file along with this.


# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@palmer) Mon Nov 3 08:46:46 UTC 2008

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder63) Tue Nov 4 14:07:17 PST 2008

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection

Section "ServerFlags"
Option "Xinerama" "0"
EndSection

Section "InputDevice"

# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Acer AL1916W"
HorizSync 30.0 - 83.0
VertRefresh 55.0 - 75.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 7300 SE/7200 GS"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "1440x900 +0+0; nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

rschaack
May 8th, 2009, 10:35 PM
I have the same problem I have configured my screen by firing up nvidia-settings as root and saving the settings via the GUI to xorg.conf. Everything works fine after I exit the graphical utility until I login to ubuntu again.

I have even made a small tweak to xorg.conf so that the login screen has the correct resolution (2048x1152), but after the login when screen is cleared the resolution reduces back to 1400x900, this can be seen by the fact that the mouse pointer increases in size even before the desktop loads.

>>xorg.conf

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "ServerFlags"
Option "Xinerama" "0"
EndSection

Section "InputDevice"

# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"

# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Samsung SyncMaster"
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 60.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "UseFBDev" "true"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9400 GT"
Screen 0
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Configured Video Device"
Monitor "Configured Monitor"
DefaultDepth 24
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "2048x1152 +0+0"
SubSection "Display"
Depth 24
Virtual 2048 1152
Modes "2048x1152" "1400x900" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Anyone got any ideas how I can make the 2048x1152 res stick?

Nicksha
June 11th, 2009, 05:52 PM
I had the same problem, and this worked for me:

- in ~/.config/monitors.xml change the appropriate values (width, height and rate);
- also, in GConf (Applications->System->GConf or gconf-editor in terminal) under desktop->gnome->screen->default->0 change the values to your liking;
- restart X to see if it worked:)

Actually, I did step No.2 first, and it didn't help, so maybe it's not necessary, but I've added it here, just in case.

momist
October 23rd, 2009, 11:38 PM
Thanks Nicksha, that worked for me too. :)