Professional Documents
Culture Documents
Linux NVidia Optimus on ThinkPad W520/W530 with external monitor finally solved | scyth's blog
1/4
8/30/2014
Linux NVidia Optimus on ThinkPad W520/W530 with external monitor finally solved | scyth's blog
Configure bumblebee
Few more things are needed in order to get this running, and Ill cover it now. First, youll need to
edit /etc/bumblebee/bumblebee.conf and find and change these params, so they look like:
KeepUnusedXServer=true
Driver=nvidia
KernelDriver=nvidia-331
PMMethod=none (find this one in two locations in the file)
Next, edit /etc/bumblebee/xorg.conf.nvidia and make it look like this:
Section "ServerLayout"
Identifier
"Layout0"
EndSection
Section "Device"
Identifier
Driver
VendorName
BusID
Option
Option
EndSection
"DiscreteNvidia"
"nvidia"
"NVIDIA Corporation"
"PCI:01:00:0"
"ProbeAllGpus" "false"
"NoLogo" "true"
Intel-virtual-output tool
First, you will need latest xf86-video-intel driver installed (2.99). Ubuntu 13.10 comes with it, so
you dont need to update driver in that case. However, what made all of this possible is the latest
release of intel-virtual-output tool, which comes bundled with xf86-video-intel driver source. But,
ubuntus package does not bundle it, and we need to compile it from source. One MAJOR thing to
note here is: DO NOT compile it from ubuntus deb-src package. That package is old, and current
release has some major fixes for the tool that we will actually need in order to have everything
working properly. So lets do it:
http://www.unixreich.com/blog/2013/linux-nvidia-optimus-on-thinkpad-w520w530-with-external-monitor-finally-solved/
2/4
8/30/2014
Linux NVidia Optimus on ThinkPad W520/W530 with external monitor finally solved | scyth's blog
./autogen.sh
cd tools
make
sudo cp intel-virtual-output /usr/bin/
sudo chmod +x /usr/bin/intel-virtual-output
Oh, and now that precious moment weve all been waiting for
Now, connect your external monitor to VGA or DisplayPort, and run this:
modprobe bbswitch
optirun true
intel-virtual-output
And youre done! What the above two commands did is, they fired up nvidia card in the
background so that we can use its external ports or rendering, and started another X server in the
background which runs on nvidia card. However, all your apps are still rendered via Intel card, but
can be proxied to external monitor. Just open up KDE System Settings -> Display and Monitor,
and youll see 2 monitors as you normally would, and you can place them in any position you like.
Same goes for Unitys settings.
You might notice a small lag here and there (nothing of major importance), but thats been worked
on and future kernel and driver releases will improve that situation.
3.
http://www.unixreich.com/blog/2013/linux-nvidia-optimus-on-thinkpad-w520w530-with-external-monitor-finally-solved/
3/4
8/30/2014
Linux NVidia Optimus on ThinkPad W520/W530 with external monitor finally solved | scyth's blog
www.unixreich.com
http://www.unixreich.com/blog/2013/linux-nvidia-o
ptimus-on-thinkpad-w520w530-with-external-monitor-fi
nally-solved/
http://goo.gl/ffgS
http://www.unixreich.com/blog/2013/linux-nvidia-optimus-on-thinkpad-w520w530-with-external-monitor-finally-solved/
4/4