Hello guys,<br><div class="gmail_quote"><br>I&#39;ve prepared a patch based on my findings for the bbswitch module<br>(<a href="https://github.com/Lekensteyn/acpi-stuff/tree/master/bbswitch" target="_blank">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 &lt;&lt;&lt;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 &lt;&lt;&lt;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>A second patch to make the device stay off after suspend is in progress.<br><br>Regards,<br>Peter<br>
</div><br>