On 10/23/2014 09:58 PM, Michael Biebl wrote:
> Am 24.10.2014 um 04:19 schrieb Michael Biebl:
>
>> For some reason, you seem to be getting acpi events which trigger the
>> suspend request in logind. This might be a buggy ACPI implementation
>> like in [1].
>
> To further debug this, you might install the "evtest" package and run
> the evtest binary as root.
> Please post the shown list
> You might get an entry like "/dev/input/event1: Lid Switch"
I do have this.
> If you select that event number (1), do you get any lid switch events
> event though the lid is not closed or when the lid switch is closed?
> Do you have other input devices which generate the SW_LID event?
> You can try them one by one.
Sure. I am not familiar with this tool so I am not sure what I am
looking at currently. Thus, here is what I did:
* I tested the Lid Switch by closing and opening the lid; the screen
turns off then back on again.
* I tested the Sleep Button; nothing happened
* I tested Power Button 3; nothing happened
* I tested Power Button 4; result below.
Do I need to remove those entries I put in /etc/systemd/logind.conf? I
worry if I do remove them, then I won't get a good test...
root@Senta:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: AT Translated Set 2 keyboard
/dev/input/event1: Lid Switch
/dev/input/event2: Sleep Button
/dev/input/event3: Power Button
/dev/input/event4: Power Button
/dev/input/event5: Video Bus
/dev/input/event6: PC Speaker
/dev/input/event7: HDA Digital PCBeep
/dev/input/event8: SynPS/2 Synaptics TouchPad
Select the device event number [0-8]: 1
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)
Properties:
Testing ... (interrupt to exit)
Event: time 1414121647.010196, type 5 (EV_SW), code 0 (SW_LID), value 0
Event: time 1414121647.010196, -------------- EV_SYN ------------
^C
root@Senta:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: AT Translated Set 2 keyboard
/dev/input/event1: Lid Switch
/dev/input/event2: Sleep Button
/dev/input/event3: Power Button
/dev/input/event4: Power Button
/dev/input/event5: Video Bus
/dev/input/event6: PC Speaker
/dev/input/event7: HDA Digital PCBeep
/dev/input/event8: SynPS/2 Synaptics TouchPad
Select the device event number [0-8]: 2
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x3 version 0x0
Input device name: "Sleep Button"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 142 (KEY_SLEEP)
Properties:
Testing ... (interrupt to exit)
^C
root@Senta:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: AT Translated Set 2 keyboard
/dev/input/event1: Lid Switch
/dev/input/event2: Sleep Button
/dev/input/event3: Power Button
/dev/input/event4: Power Button
/dev/input/event5: Video Bus
/dev/input/event6: PC Speaker
/dev/input/event7: HDA Digital PCBeep
/dev/input/event8: SynPS/2 Synaptics TouchPad
Select the device event number [0-8]: 3
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x1 version 0x0
Input device name: "Power Button"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 116 (KEY_POWER)
Properties:
Testing ... (interrupt to exit)
^C
root@Senta:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: AT Translated Set 2 keyboard
/dev/input/event1: Lid Switch
/dev/input/event2: Sleep Button
/dev/input/event3: Power Button
/dev/input/event4: Power Button
/dev/input/event5: Video Bus
/dev/input/event6: PC Speaker
/dev/input/event7: HDA Digital PCBeep
/dev/input/event8: SynPS/2 Synaptics TouchPad
Select the device event number [0-8]: 4
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x1 version 0x0
Input device name: "Power Button"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 116 (KEY_POWER)
Properties:
Testing ... (interrupt to exit)
Event: time 1414121702.744549, type 1 (EV_KEY), code 116 (KEY_POWER),
value 1
Event: time 1414121702.744549, -------------- EV_SYN ------------
Event: time 1414121702.744566, type 1 (EV_KEY), code 116 (KEY_POWER),
value 0
Event: time 1414121702.744566, -------------- EV_SYN ------------
^C
root@Senta:~#
Thanks!
Attachment:
signature.asc
Description: OpenPGP digital signature