Subject: elogind does not ship udev rules for power buttons handling

From: dimas <[email-masked]>
Date: Sun, 12 Apr 2020 17:43:49 +0300

Package: elogind
Version: 241.4-2

hello! recently i noticed that my system (running sysvinit with
elogind+lightdm+xfce) does not react on power button when pressed in tty (while
xfce handles one just fine, opening its own shutdown dialog). my attempts to
narrow down the problem led me to man logind.conf, that says
> Only input devices with the "power-switch" udev
> tag will be watched for key/lid switch events.
> HandlePowerKey= defaults to "poweroff".
i got curious who sets this tag. grep'ed /lib/udev/ with no success and then
went googling. my searches ended up at this file, being a part of systemd
sources:
https://github.com/systemd/systemd/blob/5b987a4e3e98f30b324ce75e07116ea8908bdf44/src/login/70-power-switch.rules
after creating same one in /etc/udev/rules.d/ everything works, machine handles
power button in both tty and X.
thus, the actual problem is just lack ov that file under /lib/udev/rules.d in
elogind package. this seems to be devuan-specific, since upstream github source
contains the required file (slightly different version, though):
https://github.com/elogind/elogind/blob/master/src/login/70-power-switch.rules

please include this one into package so that elogind can handle power buttons
properly

---

From: Mark Hindley <[email-masked]>
Date: Sun, 12 Apr 2020 19:16:46 +0100

> Version: 241.4-2

Thanks for this.

> please include this one into package so that elogind can handle power buttons

I will queue this for the next upload.

Mark

---

From: Mark Hindley <[email-masked]>
Date: Tue, 28 Apr 2020 19:14:00 +0100

Version: 243.7-2

> I will queue this for the next upload.

Fixed today in version 243.7-2, built for unstable.

Mark