You are not logged in.
Fresh installed Arch. Installed on two devices: Desktop Computer and HP ProBook 440 G5 laptop. Facing the problem with invoking an action on pressing POWER button on both of devices.
journalctl says:
systemd-logind[429]: Power key pressed.
But no action is performed, no matter what action you set in KDE/Plasma's Power Management dialog, on the same time on laptop the LID action works ok and laptop going to suspend as it is configured in options (when you close laptop cover).
systemctl <suspend|hibernate|poweroff> is working ok from my non-root user, but it is not convinient to type something instead of simple pressing a power button...
What do?
SOLVED by pacman -Syu
Last edited by sincomil (2018-03-01 08:16:44)
Offline
Further investigations lead me to that actually Power Devil take control on Power Button. This can be checked with systemd-inhibit --list command.
$ systemd-inhibit --list
Who: UPower (UID 0/root, PID 801/upowerd)
What: sleep
Why: Pause device polling
Mode: delay
Who: PowerDevil (UID 1000/user, PID 796/org_kde_powerde)
What: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch <= **** HERE IT IS!!! ****
Why: KDE handles power events
Mode: block
Who: Telepathy (UID 1000/user, PID 892/mission-control)
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
Who: NetworkManager (UID 0/root, PID 442/NetworkManager)
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
Who: Блокировщик экрана (UID 1000/user, PID 753/ksmserver)
What: sleep
Why: Обеспечивает блокировку экрана при переходе в ждущий или спящий режим
Mode: delay
5 inhibitors listed.
So should I blame Power Devil for not working core function and create a bug report on upstream or there exist another way to get MOAR debug information?
Last edited by sincomil (2018-02-14 14:17:41)
Offline
Going further:
Found that Power Button got own event device /dev/input/event2
$ journalctl -b | grep buttons
Feb 15 10:10:25 kuran systemd-logind[438]: Watching system buttons on /dev/input/event2 (Power Button)
Feb 15 10:10:25 kuran systemd-logind[438]: Watching system buttons on /dev/input/event1 (Lid Switch)
Feb 15 10:10:25 kuran systemd-logind[438]: Watching system buttons on /dev/input/event0 (Sleep Button)
Feb 15 10:10:25 kuran systemd-logind[438]: Watching system buttons on /dev/input/event8 (Logitech USB Keyboard)
Feb 15 10:10:25 kuran systemd-logind[438]: Watching system buttons on /dev/input/event10 (Logitech USB Keyboard)
Feb 15 10:10:25 kuran systemd-logind[438]: Watching system buttons on /dev/input/event3 (AT Translated Set 2 keyboard)
Feb 16 11:02:03 kuran systemd-logind[438]: Watching system buttons on /dev/input/event2 (Power Button)
Feb 16 11:02:03 kuran systemd-logind[438]: Watching system buttons on /dev/input/event0 (Sleep Button)
Feb 16 11:02:03 kuran systemd-logind[438]: Watching system buttons on /dev/input/event1 (Lid Switch)
Feb 16 11:02:03 kuran systemd-logind[438]: Watching system buttons on /dev/input/event10 (Logitech USB Keyboard)
Feb 16 11:02:03 kuran systemd-logind[438]: Watching system buttons on /dev/input/event8 (Logitech USB Keyboard)
Feb 16 11:02:03 kuran systemd-logind[438]: Watching system buttons on /dev/input/event3 (AT Translated Set 2 keyboard)
But there is no according udi for Power Button event device in solid-hardware5 list output, does it matter?
Does output below should contain a line for my /dev/input/event2
$ solid-hardware5 list
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:046D:C018.0004/input/input25'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:046D:C018.0004/input/input25/event11'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:046D:C018.0004/input/input25/mouse1'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2.1/2-2.1:1.0/net/enp0s20f0u2u1'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-2/i2c-SYNA3064:00/0018:06CB:8265.0001/input/input15'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-2/i2c-SYNA3064:00/0018:06CB:8265.0001/input/input15/event7'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-2/i2c-SYNA3064:00/0018:06CB:8265.0001/input/input15/mouse0'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/net/enp1s0'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1c.5/0000:02:00.0/net/wlp2s0'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/hwC0D0'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/hwC0D2'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/pcmC0D0c'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/pcmC0D0p'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/pcmC0D10p'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/pcmC0D3p'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/pcmC0D7p'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/pcmC0D8p'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/pcmC0D9p'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/controlC0'
udi = '/org/kde/solid/udev/sys/devices/platform/i8042/serio3/input/input41'
udi = '/org/kde/solid/udev/sys/devices/platform/i8042/serio3/input/input41/event22'
udi = '/org/kde/solid/udev/sys/devices/platform/i8042/serio3/input/input41/mouse2'
udi = '/org/kde/solid/udev/sys/devices/platform/serial8250/tty/ttyS0'
udi = '/org/kde/solid/udev/sys/devices/platform/serial8250/tty/ttyS1'
udi = '/org/kde/solid/udev/sys/devices/platform/serial8250/tty/ttyS2'
udi = '/org/kde/solid/udev/sys/devices/platform/serial8250/tty/ttyS3'
udi = '/org/kde/solid/udev/sys/devices/system/cpu/cpu0'
udi = '/org/kde/solid/udev/sys/devices/system/cpu/cpu1'
udi = '/org/kde/solid/udev/sys/devices/system/cpu/cpu2'
udi = '/org/kde/solid/udev/sys/devices/system/cpu/cpu3'
udi = '/org/kde/solid/udev/sys/devices/system/cpu/cpu4'
udi = '/org/kde/solid/udev/sys/devices/system/cpu/cpu5'
udi = '/org/kde/solid/udev/sys/devices/system/cpu/cpu6'
udi = '/org/kde/solid/udev/sys/devices/system/cpu/cpu7'
udi = '/org/kde/solid/udev/sys/devices/virtual/net/lo'
udi = '/org/kde/solid/udev/sys/devices/virtual/sound/timer'
udi = '/org/freedesktop/UDisks2/block_devices/loop5'
udi = '/org/freedesktop/UDisks2/block_devices/loop4'
udi = '/org/freedesktop/UDisks2/block_devices/loop3'
udi = '/org/freedesktop/UDisks2/block_devices/dm_2d2'
udi = '/org/freedesktop/UDisks2/block_devices/dm_2d1'
udi = '/org/freedesktop/UDisks2/block_devices/dm_2d0'
udi = '/org/freedesktop/UDisks2/block_devices/loop2'
udi = '/org/freedesktop/UDisks2/block_devices/loop1'
udi = '/org/freedesktop/UDisks2/block_devices/loop0'
udi = '/org/freedesktop/UDisks2/block_devices/nvme0n1p2'
udi = '/org/freedesktop/UDisks2/block_devices/nvme0n1p1'
udi = '/org/freedesktop/UDisks2/block_devices/nvme0n1'
udi = '/org/freedesktop/UDisks2/block_devices/sdb'
udi = '/org/freedesktop/UDisks2/block_devices/sda'
udi = '/org/freedesktop/UDisks2/block_devices/loop7'
udi = '/org/freedesktop/UDisks2/block_devices/loop6'
udi = '/org/freedesktop/UDisks2/drives/Generic_MassStorageClass_000000001533_1'
udi = '/org/freedesktop/UDisks2/drives/INTEL_SSDPEKKF256G7H_BTPY71560FSN256D'
udi = '/org/freedesktop/UDisks2/drives/Generic_MassStorageClass_000000001533'
udi = '/org/freedesktop/UPower'
udi = '/org/freedesktop/UPower/devices/line_power_AC'
udi = '/org/freedesktop/UPower/devices/battery_BAT0'
udi = '/org/kde/fstab'
Offline
Problem was accidentally solved with one of last updates, can't figure out what package update solved this isssue, because was done with pacman -Syu
Last edited by sincomil (2018-03-01 13:11:57)
Offline