« Shifting Linux Gears | Main | Gadflies »

Fixing Goofed Nvidia in Ubuntu

I am very impressed with Ubuntu 10.04. Except for the fact that I was greeted with blank screen from the install CD, and had to get around that by booting with the nomodest option. See details here.

Anyhow, somehow, my desktop got ugly. Instead of my razor-sharp 1680x1050, I was topped out at 1360x768. That might be fine on my old 19" widescreen, but not on my gorgeous Samsung 24".

The problem proved to be amazingly perplexing. Several times in the course of editing /etc/X11/xorg.conf, I fubarred things badly enough that X wouldn't even start.

Finally, a solution was found. I found an xorg.conf online that restored every resolution. Click to continue, and I'll share it with you.

# nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig: version 1.0 (buildmeister@builder26) Thu Feb 14 18:13:41 PST 2008

# xorg.conf (xorg 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.
#
# 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"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
Identifier "Default Layout"
Screen 0 "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

Section "Files"
EndSection

Section "Module"
Load "glx"
Load "v4l"
Load "dbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "HP f2105"
VendorName "Generic LCD Display"
ModelName "LCD Panel 1680x1050"
HorizSync 31.5 - 65.5
VertRefresh 56.0 - 65.0
Gamma 1
# ModeLine "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
# ModeLine "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
ModeLine "1280x768@60" 80.1 1280 1344 1480 1680 768 769 772 795 -hsync +vsync
ModeLine "1280x720@60" 74.5 1280 1336 1472 1664 720 721 724 746 -hsync +vsync
ModeLine "1280x800@60" 83.5 1280 1344 1480 1680 800 801 804 828 -hsync +vsync
ModeLine "1440x900@60" 106.5 1440 1520 1672 1904 900 901 904 932 -hsync +vsync
ModeLine "1600x1024@60" 136.4 1600 1704 1872 2144 1024 1025 1028 1060 -hsync +vsync
ModeLine "1680x1050@60" 147.1 1680 1784 1968 2256 1050 1051 1054 1087 -hsync +vsync
EndSection

Section "Device"
Identifier "nVidia Corporation C51 [GeForce 6150 LE]"
Driver "nvidia"
VendorName "NVIDIA"
BoardName "NVIDIA GeForce 6 Series"
Screen 0
EndSection

Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation C51 [GeForce 6150 LE]"
Monitor "HP f2105"
DefaultDepth 24
Option "DRI" "true"
# Option "NoLogo" "True"
Option "RenderAccel" "True"
Option "Coolbits" "1"
# Option "TwinView" "True"
Option "AllowDDCCI" "True"
# Option "BackingStore" "True"
# Option "DamageEvents" "True"
# Option "TripleBuffer" "True"
# Option "UseEvents" "False"
# Option "MetaModes" "nvidia-auto-select, nvidia-auto-select"
Option "NvAGP" "1"
# Option "TwinViewOrientation" "Clone"
# Option "TVStandard" "NTSC-M"
# Option "TVOutFormat" "COMPOSITE"
Option "AddARGBGLXVisuals" "True"
SubSection "Display"
# Virtual 1680 1050
Depth 24
# Modes "1680x1050@60" "1600x1024@60" "1440x900@60" "1280x800@60" "1280x720@60" "1280x768@60" "800x600@56"
EndSubSection
EndSection

Hope this helps someone! If so, please leave a comment.

TrackBack

TrackBack URL for this entry:
http://www.baldguyweb.com/mt/mt-tb.cgi/814

Comments (2)

David Ogg:

thanks

OMIGOD I LOVE U! That helped me when i set the hertz from auto to 60(1), now its razor-sharp 1680x1050. thanks alot, i was seeking for such this the whole day! :-)

Post a comment


Get emailed notifications of new articles!
NOTE: I will not sell any email addresses I receive, and will not send any unsolicited emails, either. If you sign up for new article notifications, that is ALL you will receive, and you can cancel at any time. You have my word.
--Ron Enderland

Enter your email address:

About

This page contains a single entry from the blog posted on May 30, 2010 7:49 AM.

The previous post in this blog was Shifting Linux Gears.

The next post in this blog is Gadflies.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 4.261