[Wayland-bugs] [Bug 102959] Unintended suspend
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Sep 25 06:00:38 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=102959
Peter Hutterer <peter.hutterer at who-t.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |NOTOURBUG
--- Comment #3 from Peter Hutterer <peter.hutterer at who-t.net> ---
(In reply to Paviluf from comment #2)
> (In reply to Peter Hutterer from comment #1)
> > libinput doesn't do anything with suspend, the only thing it does is that it
> > disables the touchpad when a lid switch event is received. see
> > http://who-t.blogspot.com/2017/02/libinput-and-lid-switch-events.html for an
> > explanation.
>
> Suspend is triggered (by systemd it seem) because libinput detect a lid
> event in the first place, right ?
no. systemd and libinput simply listen to the same kernel device. The switch
event is delivered to both, each handle it in their own way. Whether libinput
(or anything else) is around doesn't matter for this particular bug.
even with WRITE_OPEN libinput *never* writes a lid close event, those always
come from the hardware.
> > What does evemu-record on the device show in this case? Does it show an open
> > + close event?
>
> It will be hard to know since it only happened once in 10 days since I test
> the John Lewis firmware.
right. In that case I'll close this bug here because the best we could do (if
the firmware is indeed confirmed to be broken) is the WRITE_OPEN approach
outlined above. If the lid state doesn't match the hardware state that is
either a kernel or ACPI bug. If the lid state matches but the suspend/resume
behaviour does not match, then that's a systemd bug.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170925/885db6bd/attachment.html>
More information about the wayland-bugs
mailing list