From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#39203: GNOME desktop is not displaying battery status Date: Tue, 21 Jan 2020 15:04:32 +0100 Message-ID: <875zh4ewi7.fsf@gnu.org> References: <6c6290d0d8cf7d9262dc91a10fdffcffc5a1ef0f.camel@gmail.com> <7d07d7034cad899c04f014ec4e6c068d5c74a71d.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39967) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itu9Q-0007Hd-9M for bug-guix@gnu.org; Tue, 21 Jan 2020 09:05:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itu9O-0007tH-TB for bug-guix@gnu.org; Tue, 21 Jan 2020 09:05:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40668) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itu9O-0007tD-Pl for bug-guix@gnu.org; Tue, 21 Jan 2020 09:05:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1itu9O-0001zv-KU for bug-guix@gnu.org; Tue, 21 Jan 2020 09:05:02 -0500 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <7d07d7034cad899c04f014ec4e6c068d5c74a71d.camel@gmail.com> (Jesse Gibbons's message of "Mon, 20 Jan 2020 15:01:32 -0700") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Jesse Gibbons Cc: 39203-done@debbugs.gnu.org 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