Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot get NVidia Optimus running on Lenovo W530
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
daniel4230877
n00b
n00b


Joined: 25 Jul 2013
Posts: 31

PostPosted: Sat Jul 27, 2013 8:09 am    Post subject: Cannot get NVidia Optimus running on Lenovo W530 Reply with quote

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
View user's profile Send private message
Uzytkownik
Guru
Guru


Joined: 31 Oct 2004
Posts: 391
Location: Munich, DE

PostPosted: Sun Jul 28, 2013 7:29 am    Post subject: Reply with quote

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
View user's profile Send private message
daniel4230877
n00b
n00b


Joined: 25 Jul 2013
Posts: 31

PostPosted: Tue Jul 30, 2013 4:40 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum