I stopped lightdm using 'service stop lightdm'
Then enabled nvidia-graphics using 'sudo prime-select nvidia'
I edited /etc/X11/xorg.conf to look like this (exactly):
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "UseDisplayDevice" "none"
EndSection
Then made it un-editeable by any process using:
chattr +i xorg.conf
Note: if you want to make it editable again, just use
chattr -i xorg.conf
Then, I disabled a component of Nvidia called gpu-manager
by commenting out all the lines in /etc/init/gpu-manager.conf
Then restarted X using `service start lightdm'.
to retrun to the intel GPU, re-enable gpu-manager
, make xorg.conf
editeable again, activate intel mode using sudo prime-select intel
and restart X using service lightdm start
.
Summarized from Solving the Ubuntu 14.04 – NVIDIA 346 – nvidia-prime black screen issue.
apt-get --purge remove nvidia-36
. I'm up now, how do iIinstall NVIDIA?? – nyxee Sep 08 '15 at 00:35