====== 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