#8137 HIGH Not Tri: Backlight does not turn off when the lid is closed and the laptop suspended automatically
Zarro Boogs per Child
bugtracker at laptop.org
Wed Sep 10 11:51:29 EDT 2008
#8137: Backlight does not turn off when the lid is closed and the laptop suspended
automatically
----------------------+-----------------------------------------------------
Reporter: benzea | Owner: cjb
Type: defect | Status: new
Priority: high | Milestone: Not Triaged
Component: kernel | Version: not specified
Resolution: | Keywords: relnote
Next_action: design | Verified: 0
Blockedby: | Blocking:
----------------------+-----------------------------------------------------
Comment(by dsaxena):
Replying to [comment:8 cjb]:
> To reiterate what I'm asking for from the kernel:
>
> * When entering "idle-suspend" mode, I want a lid close transition
after the suspend to wake us and deliver the event to userspace so that we
can turn off the backlight.
> * When entering "sleep" mode (through a power button press), I want a
lid close transition to be totally ignored and for the laptop to stay
asleep.
>
> Since both of these modes are just seen as a suspend by the kernel, we
would need a signalling method for userspace to tell the kernel which type
of suspend is about to happen, so that it can reprogram the GPIO lid
transition triggers appropriately.
I don't think we need a new suspend mode for the kernel, we just need to
export the LID wakeup-event to user space to enable/disable. This is
theoretically available in
/sys/devices/platform/lid/power/wakeup, I just need to connect it to low
level driver
bits in olpc-pm.c.
(Long term, everything in /sys/power/wakeup_events needs to be replaced by
the proper /sys/devices/<foo>/power/wakeup file).
--
Ticket URL: <http://dev.laptop.org/ticket/8137#comment:10>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list