From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 21 09:04:48 2020 Received: (at 39203-done) by debbugs.gnu.org; 21 Jan 2020 14:04:48 +0000 Received: from localhost ([127.0.0.1]:46640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itu96-0001zK-Qf for submit@debbugs.gnu.org; Tue, 21 Jan 2020 09:04:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itu92-0001z4-AZ for 39203-done@debbugs.gnu.org; Tue, 21 Jan 2020 09:04:44 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1itu8x-0007es-6W; Tue, 21 Jan 2020 09:04:35 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=34476 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1itu8w-00043c-6I; Tue, 21 Jan 2020 09:04:34 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Jesse Gibbons Subject: Re: bug#39203: GNOME desktop is not displaying battery status References: <6c6290d0d8cf7d9262dc91a10fdffcffc5a1ef0f.camel@gmail.com> <7d07d7034cad899c04f014ec4e6c068d5c74a71d.camel@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 =?utf-8?Q?Pluvi=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 21 Jan 2020 15:04:32 +0100 In-Reply-To: <7d07d7034cad899c04f014ec4e6c068d5c74a71d.camel@gmail.com> (Jesse Gibbons's message of "Mon, 20 Jan 2020 15:01:32 -0700") Message-ID: <875zh4ewi7.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39203-done Cc: 39203-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Jesse, Jesse Gibbons skribis: > It looks like the problem was introduced in > df45af90413906b18710d8c51c44afd5b92d6db6 when upower was updated to > version 99.11. I also expect it is related to gnome-tweaks, which is > out of date. > > I'm going to see if updating gnome-tweaks fixes it. If so, I'll send an > update patch. If not, we can determine if it's worth reverting upower. Fixed in 5dc6d5ce9997e4caf66d154f91c3695e02e5386f! Below are the notes I took as I was debugging this. Thanks for your report, Ludo=E2=80=99. Actually upowerd fails to start and /var/log/messages here has things like: --8<---------------cut here---------------start------------->8--- dbus-daemon[429]: [system] Activating service name=3D'org.freedesktop.UPowe= r' requested by ':1.48' (uid=3D989 pid=3D822 comm=3D"/gnu/store/lcn1flxr0z5= 75jmv2m2p6hgzn3caf6x2-gnome-") (using servicehelper) dbus-daemon[429]: [system] Failed to activate service 'org.freedesktop.UPow= er': timed out (service_start_timeout=3D25000ms) --8<---------------cut here---------------end--------------->8--- I attached =E2=80=98strace=E2=80=99 to dbus-daemon and then launched =E2=80= =98upower=E2=80=99 to cause it to attempt to start upowered. At some point, the gdbus thread of upowerd makes a =E2=80=98RequestName=E2=80=99 RPC, and the reply of dbus-da= emon is: --8<---------------cut here---------------start------------->8--- 429 sendmsg(30, {msg_name=3DNULL, msg_namelen=3D0, msg_iov=3D[{iov_base= =3D"l\3\1\1\205\0\0\0\t\0\0\0m\0\0\0\6\1s\0\5\0\0\0:1.68\0\0\0\4\1s\0'\0\0\= 0org.freedesktop.DBus.Error.AccessDenied\0\5\1u\0\f\0\0\0\10\1g\0\1s\0\0\7\= 1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0", iov_len=3D128}, {iov_base=3D"\2= 00\0\0\0Connection \":1.68\" is not allowed to own the service \"org.freede= sktop.UPower\" due to security policies in the configuration file\0", iov_l= en=3D133}], msg_iovlen=3D2, msg_controllen=3D0, msg_flags=3D0}, MSG_NOSIGNA= L --8<---------------cut here---------------end--------------->8--- Indeed, upower no longer shows up in /etc/dbus-1/system-local.conf. That=E2=80=99s because the relevant files are now in share/dbus-1 instead of etc/dbus-1 where our =E2=80=98dbus-configuration-directory=E2=80=99 procedu= re looks for them. I traced it back to: https://cgit.freedesktop.org/upower/commit/?id=3D18457c99b68786cd729b3157= 23d680e6860d9cfa