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

X-Loop: owner@bugs.devuan.org
Subject: bug#423: elogind does not ship udev rules for power buttons handling
Reply-To: dimas000@ya.ru, 423@bugs.devuan.org
Resent-From: dimas <dimas000@ya.ru>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: Mark Hindley <mark@hindley.org.uk>
X-Loop: owner@bugs.devuan.org
Resent-Date: Sun, 12 Apr 2020 15:03:01 +0000
Resent-Message-ID: <handler.423.B.158670300714906@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 423
X-Devuan-PR-Package: elogind
X-Devuan-PR-Keywords: 
Received: via spool by submit@bugs.devuan.org id=B.158670300714906
          (code B); Sun, 12 Apr 2020 15:03:01 +0000
Received: (at submit) by bugs.devuan.org; 12 Apr 2020 14:50:07 +0000
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Sun, 12 Apr 2020 14:50:07 +0000 (UTC)
Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id F10BBF60C81
	for <submit@bugs.devuan.org>; Sun, 12 Apr 2020 16:43:51 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1024-bit key; unprotected) header.d=ya.ru header.i=@ya.ru header.b="gnIZbkIW";
	dkim-atps=neutral
Received: from mxback24o.mail.yandex.net (mxback24o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::75])
	by forward105o.mail.yandex.net (Yandex) with ESMTP id 4CF4E42007AB
	for <submit@bugs.devuan.org>; Sun, 12 Apr 2020 17:43:50 +0300 (MSK)
Received: from sas1-e20a8b944cac.qloud-c.yandex.net (sas1-e20a8b944cac.qloud-c.yandex.net [2a02:6b8:c14:6696:0:640:e20a:8b94])
	by mxback24o.mail.yandex.net (mxback/Yandex) with ESMTP id 7qGdgfGxDP-hn2G6Hkf;
	Sun, 12 Apr 2020 17:43:50 +0300
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1586702630;
	bh=jh1VXLVcpFav+YUZQuIF6U2oBv17xcKjGWRng+BLmXY=;
	h=Reply-To:Subject:To:From:Date:Message-ID;
	b=gnIZbkIWzAiy7oBH3mrRUv91mBg0ZDiDhJc5Dc+gFRbgg/wdx5xuCvu/L6ayPQSUg
	 CoZeYqjhmygsyIricwi/YI3Dkes2LdXwzRzIHK0+Y3B+nGslggxFoIAT8Q2ATe/1Aq
	 voNwXemXv9xtB6tlHaBcETIQ5Kd1dnRNkXS7vsL8=
Authentication-Results: mxback24o.mail.yandex.net; dkim=pass header.i=@ya.ru
Received: by sas1-e20a8b944cac.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id NO9PjNgoqi-hnW8cQpO;
	Sun, 12 Apr 2020 17:43:49 +0300
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(Client certificate not present)
Date: Sun, 12 Apr 2020 17:43:49 +0300
From: dimas <dimas000@ya.ru>
To: submit@bugs.devuan.org
Message-ID: <20200412174349.0800f041@Ulf>
X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=0.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,
	FREEMAIL_REPLYTO_END_DIGIT,RCVD_IN_DNSWL_NONE,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
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: Fri Apr 19 10:04:03 2024;