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

Package: elogind; Reported by: dimas000@ya.ru; Done: Mark Hindley <mark@hindley.org.uk>; Maintainer for elogind is Mark Hindley <mark@hindley.org.uk>.

Message received at 423-done@bugs.devuan.org:


Received: (at 423-done) by bugs.devuan.org; 28 Apr 2020 18:20:04 +0000
Return-Path: <mark@hindley.org.uk>
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); Tue, 28 Apr 2020 18:20:04 +0000 (UTC)
Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 3D680F60B22
	for <423-done@bugs.devuan.org>; Tue, 28 Apr 2020 20:14:04 +0200 (CEST)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1jTUk5-0002sa-Kd; Tue, 28 Apr 2020 19:14:02 +0100
Received: (nullmailer pid 10329 invoked by uid 1000);
	Tue, 28 Apr 2020 18:14:00 -0000
Date: Tue, 28 Apr 2020 19:14:00 +0100
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
Message-ID: <20200428181400.GO31707@hindley.org.uk>
References: <20200412174349.0800f041@Ulf>
 <20200412181646.GD3725@hindley.org.uk>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="KDt/GgjP6HVcx58l"
Content-Disposition: inline
In-Reply-To: <20200412181646.GD3725@hindley.org.uk>
X-Debbugs-No-Ack: No Thanks
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org


--KDt/GgjP6HVcx58l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: 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

--KDt/GgjP6HVcx58l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="elogind_243.7-2_amd64.changes"

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 28 Apr 2020 11:22:51 +0100
Source: elogind
Binary: elogind elogind-dbgsym libelogind-dev libelogind-dev-doc libelogind0 libelogind0-dbgsym libpam-elogind libpam-elogind-dbgsym
Architecture: source amd64 all
Version: 243.7-2
Distribution: unstable
Urgency: medium
Maintainer: Mark Hindley <mark@hindley.org.uk>
Changed-By: Mark Hindley <mark@hindley.org.uk>
Description:
 elogind    - user, seat and session management daemon
 libelogind-dev - user, seat and session management library (development files)
 libelogind-dev-doc - user, seat and session management library (development documentat
 libelogind0 - user, seat and session management library
 libpam-elogind - elogind PAM module
Closes: 423
Changes:
 elogind (243.7-2) unstable; urgency=medium
 .
   * Include 70-power-switch.rules (closes: #423).
   * Add breaks/replaces for Debian's udev which also ships the same file.
Checksums-Sha1:
 7034ab39b60cd4a50a1555c921bf2b8537e262d6 2444 elogind_243.7-2.dsc
 f1f4ed2b06cb7e3df8ac9be97aa6de4d3e45f1d3 8108 elogind_243.7-2.debian.tar.xz
 2dc03498d785bf57609e44973790a6cc1e097a1d 1963284 elogind-dbgsym_243.7-2_amd64.deb
 1464975ff2dbb8c99ceffb9a4b52f8137bdfc1e7 9513 elogind_243.7-2_amd64.buildinfo
 31dd6ba350b2d5c2a12f7b644896459aab5fe4b7 569372 elogind_243.7-2_amd64.deb
 e33e627587babdae2289631ff6c60ec108899425 226256 libelogind-dev-doc_243.7-2_all.deb
 5f3810c9b4c43b93fee867dd4c74d183be4b0371 24528 libelogind-dev_243.7-2_amd64.deb
 aebd6f3a5cedf0bf4e087cafcf40a467d0a8cd3d 1061616 libelogind0-dbgsym_243.7-2_amd64.deb
 32b4d66031a1b5a467cf976369d68e3eae3cdf6f 228648 libelogind0_243.7-2_amd64.deb
 bbd1f2d1392ff9d1db90ab8453bac1c8b9c2b32a 848048 libpam-elogind-dbgsym_243.7-2_amd64.deb
 91c67389ffd66d77bfa585d322c5b474104eb96b 140880 libpam-elogind_243.7-2_amd64.deb
Checksums-Sha256:
 f4ed70996f16e082c747f6d9193095bdce99ecc99cf29c6547f343cec52ddc46 2444 elogind_243.7-2.dsc
 8fba26d545e8b1810fc5f534b038014eb5005d0a702094d4acf417413db5aac7 8108 elogind_243.7-2.debian.tar.xz
 74a59b2266ca5a267d92d9724f7f3661713863347ccda76252829a7ac401fbe8 1963284 elogind-dbgsym_243.7-2_amd64.deb
 878cb7f84792f7a44ae1230bbf37954faf7839c5c5ff4c8062119510677672e2 9513 elogind_243.7-2_amd64.buildinfo
 cf8352da47e09e08d73f5e6b803d7a5cf3367e7fe5dbda6abd6914fcd54498a2 569372 elogind_243.7-2_amd64.deb
 5a5a82b45af36e25a5f58d225af3261932cf9a57a0145cb1ea1b45534c3aac51 226256 libelogind-dev-doc_243.7-2_all.deb
 34d9afed6820c3e6225cf7ee00c0d33ba675eaca454628fa7b36a22c10d84277 24528 libelogind-dev_243.7-2_amd64.deb
 09f3bf67fb0a2547acac34654f6c98a1c184bd055622855d4644b02c278a83f4 1061616 libelogind0-dbgsym_243.7-2_amd64.deb
 48f13be823abbda00ea36354a1ec69b3b43787be0061308e5d2c83663ae5e7db 228648 libelogind0_243.7-2_amd64.deb
 0438c2922a8d514a5dc6329ef8e2a23bb2bcca0cb8fe59f8a5ba831c4c16fe39 848048 libpam-elogind-dbgsym_243.7-2_amd64.deb
 370a82feed0ee6da881fa4473e86f3826589af4b8029b54bf2da7cf0ac244b54 140880 libpam-elogind_243.7-2_amd64.deb
Files:
 8e18e40fbabce211c8faa737cce137c2 2444 admin optional elogind_243.7-2.dsc
 489c9b1e420c3553878cb288be0d2ad2 8108 admin optional elogind_243.7-2.debian.tar.xz
 86569cb25f93bbccfd4244f1d9badcab 1963284 debug optional elogind-dbgsym_243.7-2_amd64.deb
 fde4c9b03da5e1450b6a83106aa800ce 9513 admin optional elogind_243.7-2_amd64.buildinfo
 105d38a4877905cd83f09969c6eb88e8 569372 admin optional elogind_243.7-2_amd64.deb
 f8c5ecd580048d821d8c462967a7b66d 226256 doc optional libelogind-dev-doc_243.7-2_all.deb
 17ed35f6abca8d3f6831495c77682216 24528 libdevel optional libelogind-dev_243.7-2_amd64.deb
 5d6ff5834bfa27ff8d0bf73d9bcd70ac 1061616 debug optional libelogind0-dbgsym_243.7-2_amd64.deb
 dea461e20b4a97e74a68219ccd2efa9b 228648 libs optional libelogind0_243.7-2_amd64.deb
 a3bd27df42b713a557eb9ade78fb015b 848048 debug optional libpam-elogind-dbgsym_243.7-2_amd64.deb
 1c3e1b369badfad42ec2a5b0ac013558 140880 admin optional libpam-elogind_243.7-2_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEUGwVpCsK9aCoVCPu0opFvzKH1kkFAl6oBbgACgkQ0opFvzKH
1kn4HA//c2fHE4GRWzEL3A5XS13ER0x6cf219ZzAIPz6CjFQPaC7MRLb9SBfwgUi
RAJxUARcBA7rTg0e8ah1CccrnFogCKwbCGgjDBRoe+iKFWF1ZhxSOiUOZvjCqcZT
97+NT+wLEFkVBXCo84ameAIFTZBA8rfcXc7Zct5wI4NjXdbr1s0GMXMy3wbDStKe
4o4Bc5U74jJn0SpDFaqtFIvnWpTMuuERIqRzJ6cX/pmwhB6br7F9Z/U0IHYQXWI5
T+QGmlkQqMvi3WebudZWXcfuNegBugIOni/QCguQ9d+NZqbzNH+d7NqCNKxHsN0+
tB1PsYQFZW3w8JJDNGxvriE2danUMgjkTS7QTG0nQnBfn+3I50U/RO3q8YoE9P9x
p8y8/HR+gGD/63BVwWfZzkucBJ3hd0Dsg9WeOmvclx6bTp5e5bXt3zRNXTqW56oG
qvWadjJ81tmVjMxLayl7ms/Sb7X8jdpw5BY9/KCtVHnGAIq39qH2FdTKLSEC31iB
0DsHr9HqKc6UGVWHF2gVLrYw0Y26dEEVqxdprrRLr1oZzX6hOIwmPqsdPAwOJv4v
c2A/5MZNmbHGrYm9WiHNMpyTx2HFH9X3oJ6xipRhp7+x0lX+Ey8cbZbg16fy5aPI
VpaUa0PbFg4jbw6UsaI/9YGMjKN/zR15mmE5eHMv6tu+AaRxjJs=
=xgef
-----END PGP SIGNATURE-----

--KDt/GgjP6HVcx58l--

Notification sent to dimas000@ya.ru:
bug acknowledged by developer. Full text available.
Reply sent to Mark Hindley <mark@hindley.org.uk>:
You have taken responsibility. Full text available.

Message received at 423@bugs.devuan.org:


Received: (at 423) by bugs.devuan.org; 12 Apr 2020 18:20:03 +0000
Return-Path: <mark@hindley.org.uk>
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 18:20:03 +0000 (UTC)
Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 8A216F60C27
	for <423@bugs.devuan.org>; Sun, 12 Apr 2020 20:16:52 +0200 (CEST)
Received: from apollo.hindleynet ([192.168.1.3] helo=apollo)
	by mx.hindley.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1jNhA0-0003Jp-TJ; Sun, 12 Apr 2020 19:16:49 +0100
Received: from mark by apollo with local (Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1jNh9y-0000LM-Ty; Sun, 12 Apr 2020 19:16:46 +0100
Date: Sun, 12 Apr 2020 19:16:46 +0100
From: Mark Hindley <mark@hindley.org.uk>
To: dimas000@ya.ru, 423@bugs.devuan.org
Subject: Re: bug#423: elogind does not ship udev rules for power buttons
 handling
Message-ID: <20200412181646.GD3725@hindley.org.uk>
References: <20200412174349.0800f041@Ulf>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20200412174349.0800f041@Ulf>
X-Debbugs-No-Ack: No Thanks
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

On Sun, Apr 12, 2020 at 05:43:49PM +0300, dimas wrote:
> Package: elogind
> Version: 241.4-2

Thanks for this.

> 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

I will queue this for the next upload.

Mark

Information forwarded to devuan-bugs@lists.dyne.org:
bug#423; Package elogind. Full text available.

Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 12 Apr 2020 14:50:07 +0000
Return-Path: <dimas000@ya.ru>
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
Subject: elogind does not ship udev rules for power buttons handling
Message-ID: <20200412174349.0800f041@Ulf>
Reply-To: dimas000@ya.ru
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

Acknowledgement sent to dimas000@ya.ru:
New bug report received and forwarded. Copy sent to Mark Hindley <mark@hindley.org.uk>. Full text available.
Report forwarded to devuan-bugs@lists.dyne.org, Mark Hindley <mark@hindley.org.uk>:
bug#423; Package elogind. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Wed, 8 Jul 2020 00:39:01 UTC