nVidia Optimus and Linux

Power management

modprobe bbswitch
echo OFF > /proc/acpi/bbswitch

OpenGL

Start:

modprobe nvidia-current
modprobe nvidia-current-uvm
echo ON > /proc/acpi/bbswitch
/etc/init.d/bumblebeed start
cat /proc/acpi/bbswitch

primusrun your_opengl_application

Stop:

rmmod nvidia-current-uvm
rmmod nvidia-current
rmmod nvidia-uvm
rmmod nvidia
/etc/init.d/bumblebeed stop
echo OFF > /proc/acpi/bbswitch
cat /proc/acpi/bbswitch

OpenCL

apt-get install nvidia-opencl-common nvidia-opencl-dev nvidia-opencl-icd
primusrun your_opencl_application
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki