Hello guys,<br><br>I've prepared a patch based on my findings for the bbswitch module<br>(<a href="https://github.com/Lekensteyn/acpi-stuff/tree/master/bbswitch">https://github.com/Lekensteyn/acpi-stuff/tree/master/bbswitch</a>). This adds a proper<br>
check whether a _DSM function is supported or not and make OFF / ON for<br>vga_switcheroo work for nVidia Optimus models. The patch is based against the<br>mainline kernel.<br><br>It has been tested on my Clevo B7130 laptop running kernel 3.2 which has a GT425M<br>
dGPU:<br># cat /sys/kernel/debug/vgaswitcheroo/switch<br>0:IGD:+:Pwr:0000:00:02.0<br>1:DIS: :Pwr:0000:01:00.0<br># tee /sys/kernel/debug/vgaswitcheroo/switch <<<OFF<br>OFF<br># cat /sys/kernel/debug/vgaswitcheroo/switch<br>
0:IGD:+:Pwr:0000:00:02.0<br>1:DIS: :Off:0000:01:00.0<br># tee /sys/kernel/debug/vgaswitcheroo/switch <<<ON<br>ON<br># cat /sys/kernel/debug/vgaswitcheroo/switch<br>0:IGD:+:Pwr:0000:00:02.0<br>1:DIS: :Pwr:0000:01:00.0<br>
<br>The iGPU/dGPU LEDS on the keyboard also change as a result.<br><br>Regards,<br>Peter<br>