I was following @Alex's answer about my other question.
My GPU is GeForce GT 540M.
I installed bumblebee
and bumblebee-nvidia
packages. And reboot, i get this error :
none of the selected modes were compatible with the possible modes: Trying modes for CRTC 310 CRTC 310: trying mode 640x480@73Hz with output at 1920x1080@51Hz (pass 0) CRTC 310: trying mode 640x480@73Hz with output at 1920x1080@51Hz (pass 1)
and resolution reduced to 640*480 px. After that i uninstall bumblebee,
sudo apt-get remove bumblebee bumblebee-nvidia
And then, i followed this instructions for this error. They said, delete your monitors.xml
file. And i delete it. But it's not restored. There are only 1024x768 and 640x480 . My original resolution was 1920x1080.
I tried unity --reset
after this, i get Compiz closed unexpected error.
Tried to install latest NVIDIA drivers :
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current
Still there isn't 1920x1080 on Displays screen.
I want to restore my monitors.xml file and solve my problem.
UPDATE
I just reinstall my Compiz. Now i don't get COMPIZ error when unity --reset
Somehow your driver installation got screwed up which broke the nvidia kernel/Xorg driver combination:
Try purging the nvidia driver:
If the file
/usr/lib/x86_64-linux-gnu/xorg/x11-extra-modules/nvidia_drv.so
and/ or/usr/lib/i386-linux-gnu/xorg/x11-extra-modules/nvidia_drv.so
still exist, remove them too.If you have previously installed nvidia from nvidia.com, follow these If you've installed the driver from nvidia.com instructions. Finally, reinstall the nvidia drivers:
Reboot and everything should be working again.
Your laptop has a Nvidia GT 540M card which is most often an Optimus chip. However, it seems that your manufacturer has disabled the Intel iGPU and thereby disabled Optimus. This was detected by Bumblebee and therefore it refused to start at all. However, since this is not checked at installation of
bumblebee
and the nvidia driver is disabled, your desktop resolution got screwed up because it falls back to the VESA driver. This situation can be remedied by removingbumblebee
:As a note to other readers, for machines that do not have the iGPU disabled there might be a BIOS option controlling whether the Intel or Nvidia GPU should be used by default.
If anyone is coming here with Ubuntu 14.04 with Unity, one easy way to recreate your
monitors.xml
file is to just go to System Settings -> Displays -> click Apply