Screen backlight is OFF when resuming from suspend with vgaswitcheroo controlled cards
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux |
Confirmed
|
Medium
|
|||
linux (Ubuntu) |
Incomplete
|
Medium
|
Unassigned |
Bug Description
Using vgaswitcheroo to disable the integrate or discrete card could lead to some troubles when resuming from suspension (to RAM or disk as well). Basically, the computer monitor backlight could be not be turned on again when resuming from suspension.
To me it happens this:
- I disable the integrated card
- Suspend
- Resume: no monitor backlight is on
At this point doing what mentioned below fix the issue, but it must be done by SSH or by memory :):
echo DIGD > /sys/kernel/
echo OFF > /sys/kernel/
So, the easiest and clean fix should be to add a sleep.d script something like:
#!/bin/sh
if [ -e /sys/kernel/
case "$1" in
hibernate|
echo ON > /sys/kernel/
;;
thaw|resume)
echo OFF > /sys/kernel/
;;
esac
fi
This would fix the issue for vgaswitcheroo users and won't touch the others.
Changed in linux: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
Changed in pm-utils (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
no longer affects: | pm-utils (Ubuntu) |
Status changed to 'Confirmed' because the bug affects multiple users.