Your message dated Wed, 12 Oct 2022 21:17:47 +0000
with message-id <e1oij6p-006da3...@fasolo.debian.org>
and subject line Bug#1021644: fixed in systemd 251.5-3
has caused the Debian Bug report #1021644,
regarding logind: OnExternalPower is confusedj
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1021644: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021644
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: systemd
Version: 251.5-1
Hi,
logind seems confused
# busctl get-property org.freedesktop.login1 /org/freedesktop/login1
org.freedesktop.login1.Manager OnExternalPower
b true
# /lib/systemd/systemd-ac-power --verbose
no
#
The system in question actually is running on battery. Both appear to be
using the on_ac_power() C function. When running strace on the latter
one can vaguely guess that on_ac_power() is actually run. When running
strace on logind however, the sendmsg call happens immediately after the
recvmsg call, so it seems like on_ac_power() is not actually run, but
the value is cached or something. During boot, the system in question
was on ac power.
Looking closer, I now guess that the issue is here:
https://sources.debian.org/src/systemd/251.5-2/src/login/logind-dbus.c/?hl=380#L380
Could it be that the function pointer is converted to boolean rather
than being called? I.e. could it be that the function should actually be
called?
-static BUS_DEFINE_PROPERTY_GET_GLOBAL(property_get_on_external_power, "b",
manager_is_on_external_power);
+static BUS_DEFINE_PROPERTY_GET_GLOBAL(property_get_on_external_power, "b",
manager_is_on_external_power());
Admittedly, I've not tested this, because restarting logind is so
annoying as it kills all login sessions. So this could be a red herring.
Helmut
--- End Message ---
--- Begin Message ---
Source: systemd
Source-Version: 251.5-3
Done: Michael Biebl <bi...@debian.org>
We believe that the bug you reported is fixed in the latest version of
systemd, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1021...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Michael Biebl <bi...@debian.org> (supplier of updated systemd package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Wed, 12 Oct 2022 17:01:05 +0200
Source: systemd
Architecture: source
Version: 251.5-3
Distribution: unstable
Urgency: medium
Maintainer: Debian systemd Maintainers
<pkg-systemd-maintain...@lists.alioth.debian.org>
Changed-By: Michael Biebl <bi...@debian.org>
Closes: 963135 1019510 1021579 1021644
Changes:
systemd (251.5-3) unstable; urgency=medium
.
* Update symbol versions for the v251 release
* ata_id: fix getting Response Code from SCSI Sense Data (Closes: #1021579)
* logind: do not emit beep in wall messages (Closes: #1019510)
* logind: remember our idle state and use it to detect idle level
transitions (Closes: #963135)
* logind: fix getting property OnExternalPower via D-Bus (Closes: #1021644)
Checksums-Sha1:
6a4d8cbe26f41dd46ffb6a54a7c3dda12089fa22 6242 systemd_251.5-3.dsc
07dd513cf9d47efe4db6bc7f919a78d1fc124e30 175788 systemd_251.5-3.debian.tar.xz
6fa774552a1ab777503d83c4c08af5fb2fa3ca90 10450 systemd_251.5-3_source.buildinfo
Checksums-Sha256:
251ec21208dc6d62dab366642183d833bc3922799d31465338208e5ed389263c 6242
systemd_251.5-3.dsc
613ac6f6f59287e463b64e95fb0f42262fb4e6cfcfffd4c86db7edf2faf4a8b2 175788
systemd_251.5-3.debian.tar.xz
562afea2652ba05ea3ffaec1b2832ab2ddccb1e933cb16c36f5a9f6f3d405efb 10450
systemd_251.5-3_source.buildinfo
Files:
14cfe52956e02a20ac9141b4ba3e8a3d 6242 admin optional systemd_251.5-3.dsc
efa80a2edb268307f3cc1fd95ddc77ab 175788 admin optional
systemd_251.5-3.debian.tar.xz
00c963d95af8c41d4df057941b127211 10450 admin optional
systemd_251.5-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAmNHH/kACgkQauHfDWCP
ItxjkA/8DEnkuk4I+43Pd6D1tbJT0HSI3Xsg2Uzj3flFvmTzwMh9TvmfMYNlsvO+
SvcBYktqUEnQzNqsGhXou63FYTI35keEfC0p7EH8Ory8FuRkOprOPCWpizj0QcDR
oruP05fkFJKPncDsU/zif967U16oPNEdegC2ib5kLwnZJn0gsnur8nnui9FGcza0
TywXewoxzuFhiVt0AD7OLjWGVj+W84FXy5LXi9tuXjtp6rUzQGWnydE25RxIkMul
3uQFKUtZ/HZnDkdaEZIxuuy79fKJCiYtY1rDQtPRWu8XC0AjD2F7PWeVshQL3Eb1
mGPRRJmQQAwAFE9MEgOPXCbEW7NNuOt5uHVe7PGBUcIiEs/WsGN+45DgM1mb7y0x
ANs4NX6pxrKLDubeBjbcHbwFRvtwtmBwqgZ01N5DoMSg8RCRl8RYUfQUMqILn2yq
w1xY/zfy+HaCm8Jny6uorfgLfm6S0r40+ylYusjYu61QgFTBWenbI0XvkEvAoP6f
N/n+oQgBqqaKpJsnYioZn7KiyGDlM1rV+pqXLF5s6agClpYFTw7rciiubvllyAWG
qOGUUHMerrisWq5mJmbzIQ9YZ08WcSAfKUXaqM8/xvgKoCFn8VZ+4/LLcDubHvLt
VCrfobCvYknkW3E0OwqfbAzTTJjmRMvW558q2Ghpl2YkKXfDHHg=
=HvrQ
-----END PGP SIGNATURE-----
--- End Message ---