10-30-2021, 04:13 PM
I followed the
then
and it is seems finally that systemd doesn't handle the power button at all because of the file :
According to "udevadm monitor", the power button is not handled by udev too.
The previous fuser shows 3 processes : init, systemd-logind and phoc/phosh/gnome-session.
So it seems that the power button is definitely handled by the last one :
So seems like we will have to wait that phosh team implements the option...
Code:
cat /sys/devices/platform/gpio-keys/input/input0/event0/uevent
then
Code:
fuser /dev/input/event0
and it is seems finally that systemd doesn't handle the power button at all because of the file :
Code:
/etc/systemd/logind.conf.d/ignore-power-key.conf
[Login]
HandlePowerKey=ignore
According to "udevadm monitor", the power button is not handled by udev too.
The previous fuser shows 3 processes : init, systemd-logind and phoc/phosh/gnome-session.
So it seems that the power button is definitely handled by the last one :
Code:
/usr/bin/phoc -C /usr/share/phosh/phoc.ini -E bash -lc 'gnome-session --disable-acceleration-check --session=phosh --builtin'