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?

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

# 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 ------------

(I have suspend disabled for my lid switch.)
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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/users@lists.fedoraproject.org

Reply via email to