Sunday, October 24, 2010

Broken Ubuntu 10.10

I have just upgraded my desktop to Ubuntu 10.10 after I have tried it on my laptop. Unfortunately, it wasn't that smooth this time. It seems the nVidia driver for my GeForce MX card is very broken in the new version. I do manage to get the graphical interface back after using the generic driver rather than the propriety driver.

Since I am using a KVM switch, the DPMS didn't quite get detected properly and I were left with this nasty 1024x768@60Hz resolution. One thing that I had kept complaining is how nasty of Linux to configure simple thing as resolution. After a few search, I finally found this blog which describes the use of xrandr to set a custom resolution. After a few attempt, I finally get my 1152x864@70Hz resolution back. Here is the link to the blog if you have a similar problem. Good luck!



By the way, here are the commands I used.

  1. cvt 1152 864 75

  2. xrandr --newmode "1152x864_70.00" 96.75 1152 1224 1344 1536 864 867 871 902 -hsync +vsync

  3. xrandr --verbose --addmode VGA-1 "1152x864_70.00"

  4. xrandr --output VGA-1 --mode "1152x864_70.00"


The changes above is temporary, to make it permanent, you have two options:
1) store these lines onto a file called ~/.xprofile on your home directory to make them permanent for a particular user
2) Modify the /etc/gdm/Init/Default file, and add the lines after right after the

PATH=/usr/bin:$PATH
OLD_IFS=$IFS

p.s. instead of adding the lines directly to the Default file, I chose to create a CustomResolution file with permission sets to 555 , and placed this file in my /usr/local/sbin folder, and called this file from the Default.

1 comment:

Garfield said...

Finally fixed my resolution problem by removing the nouveau driver

apt-get purge xserver-xorg-video-nouveau

And modify my xorg.conf file as following

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@palmer) Fri Apr 9 10:35:18 UTC 2010

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

Section "Files"
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"
# HorizSync source: xconfig, VertRefresh source: xconfig
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-0"
HorizSync 30.0 - 110.0
VertRefresh 50.0 - 150.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce4 MX 440 with AGP8X"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "1152x864_70 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection


p.s. to get the modeline, I used the cvt

cvt 1152 864 75 >> xorg.conf