Devuan bug report logs - #423
elogind does not ship udev rules for power buttons handling

version graph

Package: elogind; Maintainer for elogind is Mark Hindley <mark@hindley.org.uk>; Source for elogind is src:elogind.

Reported by: dimas000@ya.ru

Date: Sun, 12 Apr 2020 15:03:01 UTC

Severity: normal

Found in version 241.4-2

Fixed in version 243.7-2

Done: Mark Hindley <mark@hindley.org.uk>

Full log


🔗 View this message in rfc822 format

MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
X-Loop: owner@bugs.devuan.org
From: "Devuan bug Tracking System" <owner@bugs.devuan.org>
To: dimas000@ya.ru
Subject: bug#423 closed by Mark Hindley <mark@hindley.org.uk> (Re:
 bug#423: elogind does not ship udev rules for power buttons handling)
Message-ID: <handler.423.D423.158809800412326.notifdone@bugs.devuan.org>
References: <20200428181400.GO31707@hindley.org.uk>
 <20200412174349.0800f041@Ulf>
X-Devuan-PR-Message: they-closed 423
X-Devuan-PR-Package: elogind
Reply-To: 423@bugs.devuan.org
Date: Tue, 28 Apr 2020 18:33:04 +0000
Content-Type: multipart/mixed; boundary="----------=_1588098784-12391-1"
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the elogind package:

#423: elogind does not ship udev rules for power buttons handling

It has been closed by Mark Hindley <mark@hindley.org.uk>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mark Hindley <mark@hindley.org.uk> by
replying to this email.


-- 
423: https://bugs.devuan.org/cgi/bugreport.cgi?bug=423
Devuan Bug Tracking System
Contact owner@bugs.devuan.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mark Hindley <mark@hindley.org.uk>
To: dimas000@ya.ru, 423-done@bugs.devuan.org
Subject: Re: bug#423: elogind does not ship udev rules for power buttons handling
Date: Tue, 28 Apr 2020 19:14:00 +0100
[Message part 3 (text/plain, inline)]
Version: 243.7-2

On Sun, Apr 12, 2020 at 07:16:46PM +0100, Mark Hindley wrote:
> I will queue this for the next upload.

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

Mark
[elogind_243.7-2_amd64.changes (text/plain, attachment)]
[Message part 5 (message/rfc822, inline)]
From: dimas <dimas000@ya.ru>
To: submit@bugs.devuan.org
Subject: elogind does not ship udev rules for power buttons handling
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

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat Apr 20 10:54:12 2024;