A Day Later, Hybrid Graphics On Linux Does More

The second version of Airlie's "switcheroo" code as it's called brought support for powering up and powering down the GPUs. For Intel GPUs this means putting it in a D3 suspended state while for Mobility Radeon GPUs it actually cuts the power to the graphics processor so that it is completely off. The third version of switcheroo then brought reworked probing methods so that no DMI list is used but now looks for an ATPX method. The fourth (and final, for now) version of this patch delivers on compatibility with more systems. Turning on and off the unused GPU is as easy as writing "ON" or "OFF" to /sys/kernel/debug/vgaswitcheroo/switch.
The fourth version of David Airlie's switcheroo patch can be found in his FreeDesktop.org folder. Additionally, he has provided new comments on this work via his blog. Right now this code supports ATI/ATI and Intel/ATI GPU combos, but David mentions on his blog that the Nouveau driver should already be detecting the DSM method that it likely uses for the NVIDIA GPU switching, so it really shouldn't be too difficult to wire it up.
11 Comments