PDA

View Full Version : [gnome] Nvidia EN9600GT always starts in 800x600



qute
July 2nd, 2009, 08:56 PM
Hi

I just installed ubuntu and am pretty happy.
But every time I boot my X/Gnome start in 800x600 ?!
I try to use the gnome tool to change it, but it says I have to use nvidia's tool.
Fine. That works. Until NEXT time I boot.

Any ideas?

Bonus: I find it hard to hit the corners and edges of windows to resize. any themes or changes I can do?

Thanks

Jarkycat
July 2nd, 2009, 09:03 PM
Try the nvidia settings from a terminal(so changes will persist). Type in:

sudo nvidia-settings

Apply the new resolution and then click the 'Save to X Configuration file'

That should do it for ya.

qute
July 2nd, 2009, 10:12 PM
That is the tool I'm using.

I pressed the save button.


This should do it right??
$ cat /etc/X11/xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@crested) Sun Feb 1 20:25:37 UTC 2009

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

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

Section "Module"
Load "glx"
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 - 75.0
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9600 GT"
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" "1680x1050 +0+0; nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Jarkycat
July 2nd, 2009, 10:45 PM
That is the tool I'm using.

I pressed the save button.


Yes, it's the same tool but if you click it from the admin menu, it tends not have admin rights to actually write back the changes. Thats why I suggested doing it via the command line with 'sudo'. Or to run it while in root access.

Your configuration looks ok to me. Is it still reverting back to 800x600 now?

If so, the only other suggestion I have is to insert it manually into the screen section. So add the Subsection below to the first Screen... and assuming you're going for 1680x1050 resolution default.

for your xorg.conf:

Section "Screen"
Identifier "Default Screen"
Device "Configured Video Device"
Monitor "Configured Monitor"
DefaultDepth 24
SubSection "Display"
Modes "1680x1050_60.00"
EndSubSection
EndSection

qute
July 2nd, 2009, 11:10 PM
I added it.
I'll try it.

Thanks :)

qute
July 2nd, 2009, 11:23 PM
I added the change like you said, booted and it still boots in 800x600

I checked the file now and no change.
I thought maybe a process would overwrite the file xorg.conf.

Any other ideas?
Thanks for your help.

Jarkycat
July 2nd, 2009, 11:30 PM
Can you check one thing for me? I transposed numbers on the resolution earlier (eeek, sorry) so if you used the original posting number, it would have aborted the resolution attempt.

SubSection "Display"
Modes "1680x1050_60.00"
EndSubSection


Earlier I had 1650x1080 instead of the proper 1680x1050. So if you could check your xorg.conf to see if its correct... if not change it again and give it another reboot!

Jarkycat
July 2nd, 2009, 11:47 PM
I checked the file now and no change.
I thought maybe a process would overwrite the file xorg.conf.


Oh and when you're editing/changing the file, did you do it via root or sudo access?

The easiest why would be to enter

gksudo gedit /etc/X11/xorg.conf


just making sure :)

qute
July 3rd, 2009, 04:19 PM
Oh and when you're editing/changing the file, did you do it via root or sudo access?

The easiest why would be to enter

gksudo gedit /etc/X11/xorg.conf


just making sure :)

Okay, changed the numbers. Didn't work :-(

I do this command:
sudo vim /etc/X11/xorg.conf

The changes are still there.

One thing that confuses me:
There are 2 sections called "Screen". Is that okay?

Jarkycat
July 3rd, 2009, 04:38 PM
Yes, the two screen section are fine. It's just the way that xorg it -- I believe the identifier field separates the entries.

One more thing to try.

Lets go back to your original 2nd screen section and remove the nvidia-auto-select part.

So let's edit it and restart x once again.

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "1680x1050 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection


If that doesn't work, I'll have someone at home turn on my HTPC and I'll paste the contents of it's xorg.conf here.

qute
July 3rd, 2009, 08:46 PM
Hmmm, that didn't work.

You have the same gfx card?

Jarkycat
July 3rd, 2009, 08:54 PM
Yes, I have a 9600 GT hooked up to an LCD TV for media playback. It goes straight to 1280x720 per the xorg.conf adjustments.



# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@palmer) Sun Feb 1 20:21:04 UTC 2009

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

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

Section "Module"
Load "glx"
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 "DMI LCD Multi-Media Display"
HorizSync 31.5 - 80.0
VertRefresh 56.0 - 75.0
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9600 GT"
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" "1280x720 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

qute
July 3rd, 2009, 09:36 PM
Okay - X is in the correct resolution.

gdm starts up in the correct size. If I log in as a another user, the resolution is correct!

So it's something in gnome.
I moved these files from my user dir
drwx------ 5 qute qute 4096 2009-07-03 22:20 .gconf
drwx------ 2 qute qute 4096 2009-07-03 22:20 .gconfd
drwx------ 10 qute qute 4096 2009-07-03 22:16 .gnome2
drwx------ 2 qute qute 4096 2009-06-19 05:52 .gnome2_private
drwx------ 2 qute qute 4096 2009-06-19 05:52 .gvfs

It did not solve the problem :-(

I'm thinking of deleting my user and creating it again.
Any easier/better solution?

Jarkycat
July 3rd, 2009, 11:28 PM
Ok, if you ever did use the gnome display resolution app, you may have a config file for it.

Can you check the .config directory for a monitors.xml file?

~/.config/monitors.xml

If there is one there, you can try editing the width/height/refresh fields.

Or just erase it and relog in.

Hope thats it :)

qute
July 4th, 2009, 01:48 AM
Well, I tried KDE and like it more and it works, so I'll stick with it :-)

But I thank you for all the help.

zarbon
January 22nd, 2010, 05:53 AM
I had this problem and it turned out to be the monitors.xml file. I had changed the display before installing the nvidia drivers. Thanks, it was driving me crazy.