#5703 HIGH 8.2.0 (: Lid switch detection is unreliable.
Zarro Boogs per Child
bugtracker at laptop.org
Wed Jul 30 16:34:05 EDT 2008
#5703: Lid switch detection is unreliable.
-------------------------+--------------------------------------------------
Reporter: cjb | Owner: dilinger
Type: defect | Status: new
Priority: high | Milestone: 8.2.0 (was Update.2)
Component: kernel | Version:
Resolution: | Keywords: power
Next_action: never set | Verified: 0
Blockedby: | Blocking: 6590
-------------------------+--------------------------------------------------
Comment(by dsaxena):
Replying to [comment:16 wmb at firmworks.com]:
> I don't think we can distinguish between 2 edges (close open) and 3
edges (close open close) without using pin readback.
>
I've redone the patch my lid detect patch to use the readback (attached).
It currently does a udelay(100) which is not the nicest thing; however,
lid/close open is in the suspend/resume path and is not going to block
anything else important from running. I can do an tasklet/workqueue
approach too as a test.
If we go with the of not using the pos and neg edge detect, I'm not sure
we can implement what CJB wants in #7536, which is that when we hit the
power button to go to sleep, and then hit the power button, we don't want
to wake up on lid close. Let me percolate on the proposal a bit more.
--
Ticket URL: <http://dev.laptop.org/ticket/5703#comment:17>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list