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.
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 suspend) debug/vgaswitch eroo/switch debug/vgaswitch eroo/switch
hibernate|
;;
thaw|resume)
echo ON > /sys/kernel/
sleep 45
echo OFF > /sys/kernel/
;;
*)
;;
esac
exit 0
With this workaround the problem is no present any more.
Should I file a bug on vga_switcheroo?