[Ubuntu 14.04 64bit]
After switching between Intel / NVIDIA graphics and the different NVIDIA drivers I am now suddenly stuck with the Intel GPU. It used to be no problem at all switching between the two - I cannot say for sure what is suddenly causing the issue. I think the last thing I did was switching to the "X.Org X server" driver - then something broke. The switching was part of me trying to troubleshoot issues with setting up a secondary screen.
Every time I try to switch to NVIDIA I get this very expressive error message and then it switches back to Intel :/
I could use some assistance with troubleshooting or suggestions on what to try.
So far I (un/re)installed the various packages "nvidia-settings" / "nvidia-current" / "nvidia-current-updates" / "nvidia-331" / "nvidia-331-updates". To no avail.
> lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107GLM [Quadro K2000M] (rev a1)
/etc/apt/sources.list: may be found at pastebin.com
Regarding suggestion by Qasim:
raffael@raffael-GT60~> sudo prime-select nvidia
[sudo] password for raffael:
Error: alternatives are not set up properly
Error: nvidia mode can't be enabled
raffael@raffael-GT60~> sudo prime-select intel
Error: alternatives are not set up properly
Error: intel mode can't be enabled
Regarding 2nd suggestion by Qasim:
sudo apt-get purge nvidia*
[reboot]
sudo apt-get install nvidia-319-updates nvidia-settings-319-updates nvidia-prime
[reboot]
[tried to switch to NVIDIA]
Weird thing is - this actually worked the first time !? Then I switched back to Intel - log off/on - Switched back to NVIDIA - log off/on -> system crashed - error as described above.
Regarding suggestion by Louis Matthijssen:
raffael@raffael-GT60:~$ sudo update-alternatives --set /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf /usr/lib/nvidia-331-updates-prime/ld.so.conf
update-alternatives: error: alternative name (/etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf) must not contain '/' and spaces
raffael@raffael-GT60:~$ ls -la /usr/lib/nvidia-331-updates-prime
total 44
drwxr-xr-x 2 root root 4096 Mai 2 22:45 .
drwxr-xr-x 196 root root 32768 Mai 3 10:57 ..
-rw-r--r-- 1 root root 0 Apr 4 11:50 alt_ld.so.conf
-rw-r--r-- 1 root root 60 Apr 4 11:50 ld.so.conf
Repeated algo twice - didn't work again :/
Now it seems to work:
raffael@raffael-GT60:~$ sudo update-alternatives --set x86_64-linux-gnu_gl_conf /usr/lib/nvidia-331-updates-prime/ld.so.conf
update-alternatives: using /usr/lib/nvidia-331-updates-prime/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in manual mode
raffael@raffael-GT60:~$ sudo update-alternatives --set i386-linux-gnu_gl_conf /usr/lib/nvidia-331-updates-prime/alt_ld.so.conf
update-alternatives: using /usr/lib/nvidia-331-updates-prime/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in manual mode
Afterwards I could switch to NVIDIA - but wasn't offered the extended "NVIDIA X Server Settings" - will reboot now and see what happens. Follow up: It switched back to Intel after reboot and cannot switch to NVIDIA as usual. To me it seems that your method, Louis, tricks the OS into believing it uses NVIDIA while this is actually not the case.
As you get the following error:
You may try to set the alternatives yourself.
When I switch to Intel I see:
When I switch to NVIDIA I see:
So you could try this to switch to Intel:
Obviously you should replace 331 by your own version.
Now you could try a few things to trigger the switch:
Log out and log in again
to restart the X server as you normally would do
Reboot your whole PC
for the same purpose of the above
Execute
sudo prime-select nvidia
as your alternatives are now set for Intel, I hope this will also fix any other settings so that everything is as it should be again (obviously you should still restart the X server)
I hope that I've interpreted the error right.
Also, you could use
prime-select query
to check which card is currently selected, and fix the alternatives for that card (for example NVIDIA) as you may somehow have set alternatives for the other card (for example Intel), but the tool is still thinking that you're using the other card (for example NVIDIA), thus giving an error saying that the alternatives are not set up properly.I think I've found a workaround at least.
It's all about
update-alternatives
.I've noticed that both
and
returns list containing
/usr/lib/i386-linux-gnu/mesa/ld.so.conf
or similar.Somehow after every reboot
/usr/lib/i386-linux-gnu/mesa/ld.so.conf
was set as choosen even if I've changed it before manually.I tried changing the order on that list, but finally the solution was to remove it by
and
That should be enough.
If not, set both 'i386' and 'x86_64' to the same option by
and
Reboot afterwards.
You can always restore it to original state by
and
Hope that it will also work for You.
what worked for me , I am still trying to find his post. I had so many i was viewing:
Here, this is what worked for me:
I tried:
And rebooted, with no changes. So I tried:
Reboot. Still, no changes, and the same blank error message in nvidia-settings when I try to switch to me nvidia card.
I tried switching manually, using
sudo prime-switch nvidia
, and configuration info was updated. I tried again, and nvidia-settings asked me to log out and log back in and...voilà! I've got it working!In my case, it appeared that before being able to switch using nvidia-settings UI, I had to manually switch first as superuser, so as to generate the proper configuration!
Good thing I tried that, or I'd still be tinkering about, installing other drivers! Hope this proves useful to someone else!
follow pre answers, this is the way how I get it right on my linux mint 17.2.
first I do:
select the one with 'nvidia-prime':
then restart:
I've had a problem that looked the same, and the answer was that I still had
bumblebee-nvidia
installed.Notice that you're purging "everything NVIDIA" with
sudo apt-get purge nvidia*
, and the package above doesn't match that wildcard.So, run command:
Then reboot, then install the relevant
nvidia-xxx
,nvidia-settings
andnvidia-prime
packages (I'm currently using the version 340.24 from xorg-edgers).Now during this installation you should see the relevant
update-alternatives
messages about the*gnu_gl_conf
files.I found the solution.
I'm not sure what exactly was the problem, but this issue seems to have disappeared on a fresh install of 16.04. Perhaps they updated the dependencies properly in it? I'm not sure.
But I can personally confirm that this is no longer an issue in 16.04. I used to have the EXACT same issue in 14.04. But now with 16.04 it is no longer an issue.