Hibernate bricks the machine if a discrete GPU was disabled via
echo IGD > /sys/kernel/debug/vgaswitcheroo/switch
The freeze and thaw handler lacks checking the GPU power state,
as suspend and resume do.
This patch add the checks and fix this issue.
Signed-off-by: chr[]
---
I got an old MacBoo
Reviewed-by: Lyude Paul
I will push to drm-misc in a moment, thank you for the patch!
On Tue, 2025-03-04 at 22:08 +0100, chr[] wrote:
> Hibernate bricks the machine if a discrete GPU was disabled via
>
> echo IGD > /sys/kernel/debug/vgaswitcheroo/switch
>
> The freeze and thaw handler lacks ch