Friday, February 26, 2016

xorg - Resolution stuck at 1024x768



In an attempt to fix some minor issues with the splash screen, I ran this script: http://www.webupd8.org/2010/10/script-to-fix-ubuntu-plymouth-for.html



Big mistake. My resolution is now stuck at 1024x768 (the screen is 1280x900). I can't change it through the Monitors settings, and either there's lots of old guides out there or my Xorg config doesn't exist. I tried running the cleanup version of the "fix script" but nothing changed. Oh and the graphics settings are also at minimum all of a sudden.



I also tried all sorts of dpkg --reconfigures, no luck there either.



alexander@natty:~$ xrandr 

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 800 x 600, current 1024 x 768, maximum 1024 x 768
default connected 1024x768+0+0 0mm x 0mm
1024x768 61.0*
800x600 61.0


What this script does:





  1. In /etc/default/grub




    1. replace



      GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"



      with



      GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option='$resolution',mtrr=3,scroll=ywrap"



    2. set GRUB_GFXMODE=$resolution


  2. In /etc/initramfs-tools/modules

    1. add uvesafb mode_option=$resolution mtrr=3 scroll=ywrap


  3. In /etc/initramfs-tools/conf.d/splash

    1. add FRAMEBUFFER=y





Reverse whatever it actually did do, and do this:



 sudo update-grub2
sudo update-initramfs -u

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...