Screen Resolution struck in Ubuntu

I installed Ubuntu 6.06 from a live CD. After I configured internet, lots of packages got updated. Not sure which one corrupted the settings, but my screen resolution changed to 640x480. I tried System->Preferences->Screen Resolution. But no higher resolution was listed there. I remember using xconfig or something similar in past. But no such commands were available. Google gave me the answer. We need to manually edit the /etc/X11/xorg.conf file.

Earlier the Screen section had

SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection

I changed it to:
SubSection "Display"
Depth 24
Modes "1024x768"
ViewPort 0 0
EndSubSection

Having only one resolution mode and only one Depth, makes it the default one. Additionaly I've to add the ViewPort (not sure why it was needed). Now the screen is back to normal resolution :-)

[Update 8-Nov-06] The ViewPort is not needed. Resolution is fine without it. But after upgrading to Edgy, the resolution went back to 640x480. Either simply adding an empty line at the end of the xorg.conf file or executing a "sudo touch /etc/X11/xorg.conf" and then restarting X (Ctrl+Alt+Backspace), will bring the resolution back to normal. Quirky Linux :-(

Related links:
Ubuntu Titbits
Eclipse in Ubuntu
Putty in Ubuntu
Auto Login in Ubuntu
Configure DSL in Ubuntu

Posted in Labels: |

0 comments: