On 2020-03-23 at 12:22:09 Samuel Sieb wrote:

> On 3/23/20 9:29 AM, Erik P. Olsen wrote:
> > According to man logind.conf HandleLidSwitch=suspend is default. This does 
> > not happen
> > when I close the lid of my Lenovo T580. Directly setting 
> > HandleLidSwitch=suspend has
> > no effect either.
> > 
> > Am I missing something or is it a bug?  
> 
> There's an override in Gnome, but if you don't know about that, then 
> it's unlikely that you changed it.
> If you watch the logs do you see anything about the lid switch getting 
> detected?

I don't use Gnome.

> 
> If you do "less /proc/bus/input/devices", is there an entry for the lid 
> switch?  Mine looks like:
> I: Bus=0019 Vendor=0000 Product=0005 Version=0000
> N: Name="Lid Switch"
> P: Phys=PNP0C0D/button/input0
> S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input1
> U: Uniq=
> H: Handlers=event1
> B: PROP=0
> B: EV=21
> B: SW=1

Yes, I have this entry.

> 
> # evtest /dev/input/event1
> Input driver version is 1.0.1
> Input device ID: bus 0x19 vendor 0x0 product 0x5 version 0x0
> Input device name: "Lid Switch"
> Supported events:
>    Event type 0 (EV_SYN)
>    Event type 5 (EV_SW)
>      Event code 0 (SW_LID) state 0
> Properties:
> Testing ... (interrupt to exit)
> Event: time 1584991242.526727, type 5 (EV_SW), code 0 (SW_LID), value 1
> Event: time 1584991242.526727, -------------- SYN_REPORT ------------
> Event: time 1584991245.994142, type 5 (EV_SW), code 0 (SW_LID), value 0
> Event: time 1584991245.994142, -------------- SYN_REPORT ------------

[erik@Erik-PC ~]$ sudo evtest /dev/input/event1
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x5 version 0x0
Input device name: "Lid Switch"
Supported events:
  Event type 0 (EV_SYN)
  Event type 5 (EV_SW)
    Event code 0 (SW_LID) state 0
Properties:
Testing ... (interrupt to exit)

But I don't see any event.

-- 
Erik P. Olsen - Copenhagen, Denmark
Fedora 31/64 bit Linux xfce Claws-Mail POP3 Gramps 5.1.2 Bacula 9.4.4
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to