Dear Michael,

On Mon, 27 Jan 2014, Michael Stapelberg wrote:
> Kapil Hari Paranjape <ka...@imsc.res.in> writes:
> > On Sun, 26 Jan 2014, Michael Stapelberg wrote:
> > In fact, to test the setup, I did a "debootstrap" install of jessie,
> > followed by installing systemd-sysv, the kernel and kbd. (In other
> > words, a "bare-bones" install!)
> >
> > The "showkey" command still recognises the key as giving code "142" but
> > suspend does not work.
> Can you please provide the output of the following command?

Thanks for the info about how to debug this. I'm learning more about
systemd (and the input system) through this investigation!

> for dev in /dev/input/event*
> do
>   udevadm info -q all -n $dev
> done
>
> What you should see in there is a line saying TAGS=:power-switch:, which

Attached. I see four instances of this tag.

> You should also see messages stating “Watching system buttons on
> /dev/input/event3 (Power Button)” in the journal, emitted by logind.
> 
> Can you append the output of journalctl -u systemd-logind.service -b
> please?

Attached. Similarly four instances of "Watching system buttons" are to be
found.

In particular, I do see that there is a watcher for the sleep button.
Everything upto this point seems as it should be.

> In case this is not enough of a hint to debug and fix this, it’d also be
> good to provide a full strace output of logind (overwrite the ExecStart
> line to wrap logind in strace).

I'll do this next.

Regards,

Kapil.
--

P: /devices/platform/i8042/serio0/input/input0/event0
N: input/event0
S: input/by-path/platform-i8042-serio-0-event-kbd
E: DEVLINKS=/dev/input/by-path/platform-i8042-serio-0-event-kbd
E: DEVNAME=/dev/input/event0
E: DEVPATH=/devices/platform/i8042/serio0/input/input0/event0
E: DMI_VENDOR=Acer
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_PATH=platform-i8042-serio-0
E: ID_PATH_TAG=platform-i8042-serio-0
E: ID_SERIAL=noserial
E: MAJOR=13
E: MINOR=64
E: SUBSYSTEM=input
E: USEC_INITIALIZED=48537

P: /devices/platform/pcspkr/input/input5/event1
N: input/event1
S: input/by-path/platform-pcspkr-event-spkr
E: DEVLINKS=/dev/input/by-path/platform-pcspkr-event-spkr
E: DEVNAME=/dev/input/event1
E: DEVPATH=/devices/platform/pcspkr/input/input5/event1
E: ID_INPUT=1
E: ID_PATH=platform-pcspkr
E: ID_PATH_TAG=platform-pcspkr
E: ID_SERIAL=noserial
E: MAJOR=13
E: MINOR=65
E: SUBSYSTEM=input
E: USEC_INITIALIZED=54737

P: /devices/pci0000:00/0000:00:1b.0/input/input18/event10
N: input/event10
E: DEVNAME=/dev/input/event10
E: DEVPATH=/devices/pci0000:00/0000:00:1b.0/input/input18/event10
E: ID_INPUT=1
E: ID_PATH=pci-0000:00:1b.0
E: ID_PATH_TAG=pci-0000_00_1b_0
E: MAJOR=13
E: MINOR=74
E: SUBSYSTEM=input
E: USEC_INITIALIZED=61193

P: /devices/pci0000:00/0000:00:1b.0/sound/card0/input21/event11
N: input/event11
E: DEVNAME=/dev/input/event11
E: DEVPATH=/devices/pci0000:00/0000:00:1b.0/sound/card0/input21/event11
E: ID_INPUT=1
E: ID_PATH=pci-0000:00:1b.0
E: ID_PATH_TAG=pci-0000_00_1b_0
E: MAJOR=13
E: MINOR=75
E: SUBSYSTEM=input
E: USEC_INITIALIZED=66340

P: /devices/pci0000:00/0000:00:1b.0/sound/card0/input20/event12
N: input/event12
E: DEVNAME=/dev/input/event12
E: DEVPATH=/devices/pci0000:00/0000:00:1b.0/sound/card0/input20/event12
E: ID_INPUT=1
E: ID_PATH=pci-0000:00:1b.0
E: ID_PATH_TAG=pci-0000_00_1b_0
E: MAJOR=13
E: MINOR=76
E: SUBSYSTEM=input
E: USEC_INITIALIZED=66562

P: /devices/pci0000:00/0000:00:1b.0/sound/card0/input19/event13
N: input/event13
E: DEVNAME=/dev/input/event13
E: DEVPATH=/devices/pci0000:00/0000:00:1b.0/sound/card0/input19/event13
E: ID_INPUT=1
E: ID_PATH=pci-0000:00:1b.0
E: ID_PATH_TAG=pci-0000_00_1b_0
E: MAJOR=13
E: MINOR=77
E: SUBSYSTEM=input
E: USEC_INITIALIZED=66802

P: /devices/pci0000:00/0000:00:1d.7/usb5/5-3/5-3:1.0/input/input6/event2
N: input/event2
S: input/by-id/usb-Chicony_Electronics_Co.__Ltd._WebCam-event-if00
S: input/by-path/pci-0000:00:1d.7-usb-0:3:1.0-event
E: 
DEVLINKS=/dev/input/by-id/usb-Chicony_Electronics_Co.__Ltd._WebCam-event-if00 
/dev/input/by-path/pci-0000:00:1d.7-usb-0:3:1.0-event
E: DEVNAME=/dev/input/event2
E: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb5/5-3/5-3:1.0/input/input6/event2
E: ID_BUS=usb
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_MODEL=WebCam
E: ID_MODEL_ENC=WebCam
E: ID_MODEL_ID=b209
E: ID_PATH=pci-0000:00:1d.7-usb-0:3:1.0
E: ID_PATH_TAG=pci-0000_00_1d_7-usb-0_3_1_0
E: ID_REVISION=8257
E: ID_SERIAL=Chicony_Electronics_Co.__Ltd._WebCam
E: ID_TYPE=video
E: ID_USB_DRIVER=uvcvideo
E: ID_USB_INTERFACES=:0e0100:0e0200:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=Chicony_Electronics_Co.__Ltd.
E: ID_VENDOR_ENC=Chicony\x20Electronics\x20Co.\x2c\x20Ltd.
E: ID_VENDOR_ID=04f2
E: MAJOR=13
E: MINOR=66
E: SUBSYSTEM=input
E: USEC_INITIALIZED=79563

P: /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input9/event3
N: input/event3
E: DEVNAME=/dev/input/event3
E: DEVPATH=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input9/event3
E: DMI_VENDOR=Acer
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_PATH=acpi-PNP0C0C:00
E: ID_PATH_TAG=acpi-PNP0C0C_00
E: MAJOR=13
E: MINOR=67
E: SUBSYSTEM=input
E: TAGS=:power-switch:
E: USEC_INITIALIZED=49748

P: /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input10/event4
N: input/event4
E: DEVNAME=/dev/input/event4
E: DEVPATH=/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input10/event4
E: DMI_VENDOR=Acer
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_PATH=acpi-PNP0C0E:00
E: ID_PATH_TAG=acpi-PNP0C0E_00
E: MAJOR=13
E: MINOR=68
E: SUBSYSTEM=input
E: TAGS=:power-switch:
E: USEC_INITIALIZED=52455

P: /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input11/event5
N: input/event5
E: DEVNAME=/dev/input/event5
E: DEVPATH=/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input11/event5
E: ID_INPUT=1
E: ID_PATH=acpi-PNP0C0D:00
E: ID_PATH_TAG=acpi-PNP0C0D_00
E: MAJOR=13
E: MINOR=69
E: SUBSYSTEM=input
E: TAGS=:power-switch:
E: USEC_INITIALIZED=54583

P: /devices/LNXSYSTM:00/LNXPWRBN:00/input/input12/event6
N: input/event6
E: DEVNAME=/dev/input/event6
E: DEVPATH=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input12/event6
E: DMI_VENDOR=Acer
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_PATH=acpi-LNXPWRBN:00
E: ID_PATH_TAG=acpi-LNXPWRBN_00
E: MAJOR=13
E: MINOR=70
E: SUBSYSTEM=input
E: TAGS=:power-switch:
E: USEC_INITIALIZED=56748

P: /devices/virtual/input/input14/event7
N: input/event7
E: DEVNAME=/dev/input/event7
E: DEVPATH=/devices/virtual/input/input14/event7
E: DMI_VENDOR=Acer
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: MAJOR=13
E: MINOR=71
E: SUBSYSTEM=input
E: USEC_INITIALIZED=13026

P: /devices/virtual/input/input15/event8
N: input/event8
E: DEVNAME=/dev/input/event8
E: DEVPATH=/devices/virtual/input/input15/event8
E: ID_INPUT=1
E: ID_INPUT_ACCELEROMETER=1
E: MAJOR=13
E: MINOR=72
E: SUBSYSTEM=input
E: USEC_INITIALIZED=15197

P: /devices/platform/i8042/serio2/input/input8/event9
N: input/event9
S: input/by-path/platform-i8042-serio-2-event-mouse
E: DEVLINKS=/dev/input/by-path/platform-i8042-serio-2-event-mouse
E: DEVNAME=/dev/input/event9
E: DEVPATH=/devices/platform/i8042/serio2/input/input8/event9
E: ID_INPUT=1
E: ID_INPUT_TOUCHPAD=1
E: ID_PATH=platform-i8042-serio-2
E: ID_PATH_TAG=platform-i8042-serio-2
E: ID_SERIAL=noserial
E: MAJOR=13
E: MINOR=73
E: SUBSYSTEM=input
E: USEC_INITIALIZED=6584

-- Logs begin at Thu 2014-01-30 03:18:49 UTC, end at Thu 2014-01-30 03:19:04 
UTC. --
Jan 30 03:18:55 bhatke systemd[1]: Starting Login Service...
Jan 30 03:18:55 bhatke systemd[1]: Started Login Service.
Jan 30 03:18:55 bhatke systemd-logind[556]: New seat seat0.
Jan 30 03:18:55 bhatke systemd-logind[556]: Watching system buttons on 
/dev/input/event6 (Power Button)
Jan 30 03:18:55 bhatke systemd-logind[556]: Watching system buttons on 
/dev/input/event3 (Power Button)
Jan 30 03:18:55 bhatke systemd-logind[556]: Watching system buttons on 
/dev/input/event5 (Lid Switch)
Jan 30 03:18:55 bhatke systemd-logind[556]: Watching system buttons on 
/dev/input/event4 (Sleep Button)
Jan 30 03:19:04 bhatke systemd-logind[556]: New session c1 of user root.

Reply via email to