View previous topic :: View next topic |
Author |
Message |
daniel4230877 n00b

Joined: 25 Jul 2013 Posts: 29
|
Posted: Sat Jul 27, 2013 8:09 am Post subject: Cannot get NVidia Optimus running on Lenovo W530 |
|
|
I have tried for the past few days to get optimus running on my Thinkpad W530. I have Intel HD4000 and NVIDIA K1000M. /dev/nvidia0 does exist. When I run /etc/init.d/vgl restart I get the error: xauth: file list does not exist |
|
Back to top |
|
 |
Uzytkownik Guru

Joined: 31 Oct 2004 Posts: 399 Location: Bay Area, US
|
Posted: Sun Jul 28, 2013 7:29 am Post subject: |
|
|
Have you tried to use x11-misc/bumblebee? I have no problems with it (ok - the virtualgl stopped working on multilib with steam so I switched to x11-misc/primus).
Regarding lack of /dev/nvidia0 - it would indicate that a) nvidia driver is not loaded or b) something's else is wrong with initialization. Could you check if nvidia module is loaded (lsmod | grep nvidia)[/url]? _________________ I've probably left my head... somwhere. Please wait untill I find it. |
|
Back to top |
|
 |
daniel4230877 n00b

Joined: 25 Jul 2013 Posts: 29
|
Posted: Tue Jul 30, 2013 4:40 am Post subject: |
|
|
Uzytkownik wrote: | Have you tried to use x11-misc/bumblebee? I have no problems with it (ok - the virtualgl stopped working on multilib with steam so I switched to x11-misc/primus).
Regarding lack of /dev/nvidia0 - it would indicate that a) nvidia driver is not loaded or b) something's else is wrong with initialization. Could you check if nvidia module is loaded (lsmod | grep nvidia)[/url]? |
I was actually able to fix it. Also /dev/nvidia0 DID exist. What I had to do to enable optirun to work (I plan to switch to primus soon) was to edit the file /etc/conf.d/vgl The issue was that the vgl service wouldn't start, so the bumblebee service couldn't start at boot. Since I was using lightdm what I did was commented the common case line and uncommented the lightdm line. Then a simple /etc/init.d/vgl restart and /etc/init.d/bumblebee restart fixed the problem.
So if the vgl service (or bumblebee, because bumblebee depends on vgl) returns an error like xauth: file list does not exist, what you need to do is edit /etc/conf.d/vgl and comment the line XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var\S*auth\S*' | cut -d ' ' -f 2)" and uncomment the line for your display manager. After that either restarting the services or rebooting will fix it. I hope this helps someone, it took me over five hours to find this info. |
|
Back to top |
|
 |
|