-1

I installed Nvidia drivers using the official method and also as advised here by Rexford.

I still ended up with a black/blank screen. Addidtinally, i couldnt uninstall using apt-get purge nvidia*under ctrl-alt-f1. I've definitely read and redownloaded many times.

sudo dkms autoinstall gives no output

glxinfo says unable to open display

lsof | grep nvidia show nvidia is available

modprobe -R nvidia shows the installed nvidia_346

lspci -vnn | grep -I VGA -A 12 shows kernel driver in use: i915 but also shows my graphics card clearly.

Any ideas??

nyxee
  • 367

1 Answers1

0

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.

nyxee
  • 367
  • There was a minor hiccup, window menus disappeared (which I noticed thanks to having startup window programs) and the unity launcher disappeared too. I realised that stopping and starting lightdm solved the issue until my next reboot. When I made lightdm default via sudo dpkg-reconfigure lightdm the issue looks sooved permanently. I had previously deleted ~/config/dconf but the problem had re-surfaced many hours later. – nyxee Sep 09 '15 at 15:37