Comment 3 for bug 909337

Revision history for this message
Nicolás Abel Carbone (nicocarbone) wrote :

Some follow up on the issue. I think I know where the problems is, and is related to switchable graphics.

Apparently, after resuming, the discrete GPU is ON, despite the fact that vga_switcheroo says it is OFF. Turning ON the discrete GPU, and turning it OFF again, solves the problem, reducing the power consumption to the values before suspend.

I created a script to be run after resume with the following lines:

#!/bin/sh

case "$1" in
    hibernate|suspend)
        ;;
    thaw|resume)
 echo ON > /sys/kernel/debug/vgaswitcheroo/switch
 sleep 45
 echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
        ;;
    *)
        ;;
esac

exit 0

With this workaround the problem is no present any more.

Should I file a bug on vga_switcheroo?