If you’re running Ubuntu Maverick with Nvidia Official drivers, and your screen messed up at starting up and shutting down the system. You can try following method to fix the problem.
Step 1: First, open up a terminal window from Applications -> Accessories menu. Run this command to install preparing tools:
Then, use following command to get a list of supported screen resolution modes (800×600 16bits, 1280×1024 24bits 1024×768 16bits, etc…).
Step 2: Now, let’s start editing the /etc/default/grub file:
Find following section and change it looks like this:
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash nomodeset video=uvesafb:mode_option=1920×1200-24,mtrr=3,scroll=ywrap”
GRUB_CMDLINE_LINUX=””# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo’
#GRUB_GFXMODE=1920×1200
Here, change 1920×1200-24 (1920*12004 24bits) to yours screen resolution and it must be listed in the output of sudo hwinfo –framebuffer
Step 3: Run this command:
Add following line into the end and save it.
remember to replace 1920×1200-24
Step 4:Finally, execute following commands and then restart your machine.
sudo update-grub2
sudo update-initramfs -u
Another way to fix this issue through StartUpManager