GNU bug report logs - #32166
GNOME Settings panel for Bluetooth dysfunctional

Previous Next

Package: guix;

Reported by: Taylan Kammer <taylanbayirli <at> gmail.com>

Date: Sun, 15 Jul 2018 19:35:04 UTC

Severity: normal

Merged with 52829

Done: Mathieu Othacehe <othacehe <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32166 in the body.
You can then email your comments to 32166 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#32166; Package guix. (Sun, 15 Jul 2018 19:35:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Taylan Kammer <taylanbayirli <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 15 Jul 2018 19:35:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Taylan Kammer <taylanbayirli <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: GNOME Settings panel for Bluetooth dysfunctional
Date: Sun, 15 Jul 2018 23:34:05 +0200
I've got Bluetooth running by adding (bluetooth-service) to my list of
services and connecting my devices via 'bluetoothctl', which are now
fully functional, yet the GNOME Settings panel for Bluetooth still says
it couldn't find Bluetooth and asks me to insert a Bluetooth dongle.

It doesn't bother me much since after trusting/pairing my devices, they
now connect automatically after a reboot, but it's an inconvenience
nevertheless.


Taylan




Information forwarded to bug-guix <at> gnu.org:
bug#32166; Package guix. (Mon, 23 Jul 2018 13:01:01 GMT) Full text and rfc822 format available.

Message #8 received at 32166 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Taylan Kammer <taylanbayirli <at> gmail.com>
Cc: 32166 <at> debbugs.gnu.org
Subject: Re: bug#32166: GNOME Settings panel for Bluetooth dysfunctional
Date: Mon, 23 Jul 2018 14:59:51 +0200
Taylan Kammer <taylanbayirli <at> gmail.com> skribis:

> I've got Bluetooth running by adding (bluetooth-service) to my list of
> services and connecting my devices via 'bluetoothctl', which are now
> fully functional, yet the GNOME Settings panel for Bluetooth still says
> it couldn't find Bluetooth and asks me to insert a Bluetooth dongle.

Wild guess: could it be that we’re missing a .service D-Bus file or a
polkit file for whatever deals with Bluetooth in GNOME?  Does the
Settings panel or D-Bus or polkit leave any messages?

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#32166; Package guix. (Mon, 04 Nov 2019 02:47:02 GMT) Full text and rfc822 format available.

Message #11 received at 32166 <at> debbugs.gnu.org (full text, mbox):

From: Ben Sturmfels <ben <at> sturm.com.au>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: Taylan Kammer <taylanbayirli <at> gmail.com>, 32166 <at> debbugs.gnu.org
Subject: Re: bug#32166: GNOME Settings panel for Bluetooth dysfunctional
Date: Mon, 04 Nov 2019 13:45:54 +1100
[Message part 1 (text/plain, inline)]
On Mon, 23 Jul 2018, Ludovic Courtès wrote:

> Taylan Kammer <taylanbayirli <at> gmail.com> skribis:
>
>> I've got Bluetooth running by adding (bluetooth-service) to my list of
>> services and connecting my devices via 'bluetoothctl', which are now
>> fully functional, yet the GNOME Settings panel for Bluetooth still says
>> it couldn't find Bluetooth and asks me to insert a Bluetooth dongle.
>
> Wild guess: could it be that we’re missing a .service D-Bus file or a
> polkit file for whatever deals with Bluetooth in GNOME?  Does the
> Settings panel or D-Bus or polkit leave any messages?

When I install bluetooth-service and click the "Bluetooth" item in GNOME
settings, the following lines are added to /var/log/messages:

Nov  4 13:39:29 localhost dbus-daemon[471]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.126" (uid=1000 pid=1976 comm="/gnu/store/9imb9ffn8rkrp0bijlcxnvx496wl510n-gnome-") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination=":1.139" (uid=0 pid=2886 comm="/gnu/store/052b2lxw9d4qypr8gsv71f0zn8qljvax-bluez-")
Nov  4 13:39:29 localhost dbus-daemon[471]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.126" (uid=1000 pid=1976 comm="/gnu/store/9imb9ffn8rkrp0bijlcxnvx496wl510n-gnome-") interface="org.bluez.AgentManager1" member="RegisterAgent" error name="(unset)" requested_reply="0" destination=":1.139" (uid=0 pid=2886 comm="/gnu/store/052b2lxw9d4qypr8gsv71f0zn8qljvax-bluez-")

On a side note, given that Bluetooth is listed in GNOME settings, perhaps
bluetooth-service should also be added to %desktop-services? It's
included by default in Trisquel.

Regards,
Ben
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#32166; Package guix. (Mon, 04 Nov 2019 02:59:02 GMT) Full text and rfc822 format available.

Message #14 received at 32166 <at> debbugs.gnu.org (full text, mbox):

From: Ben Sturmfels <ben <at> sturm.com.au>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: Taylan Kammer <taylanbayirli <at> gmail.com>, 32166 <at> debbugs.gnu.org
Subject: Re: bug#32166: GNOME Settings panel for Bluetooth dysfunctional
Date: Mon, 04 Nov 2019 13:58:02 +1100
[Message part 1 (text/plain, inline)]
On Mon, 04 Nov 2019, Ben Sturmfels wrote:

> On a side note, given that Bluetooth is listed in GNOME settings, perhaps
> bluetooth-service should also be added to %desktop-services? It's
> included by default in Trisquel.

The other non-obvious thing about installing bluetooth-service is that
bluetoothd fails to run until dbus-system has been restarted, though
there's no error that explains this. I ended up restarting the machine
as running `herd restart dbus-system` crashed GNOME.

Regards,
Ben
[signature.asc (application/pgp-signature, inline)]

Merged 32166 52829. Request was from Liliana Marie Prikler <liliana.prikler <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 27 Dec 2021 20:37:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#32166; Package guix. (Tue, 04 Jan 2022 08:18:02 GMT) Full text and rfc822 format available.

Message #19 received at 32166 <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <othacehe <at> gnu.org>
To: 52829 <at> debbugs.gnu.org
Cc: 32166 <at> debbugs.gnu.org
Subject: Re: bug#32166: GNOME Settings panel for Bluetooth dysfunctional
Date: Tue, 04 Jan 2022 09:17:43 +0100
[Message part 1 (text/plain, inline)]
Hello,

> Using the bluetooth-service and blueman, I can manage to connect to
> bluetooth devices. However, the "Bluetooth" section in the GNOME
> settings reports: "No Bluetooth Found", as can be seen in the attached
> capture.

Took me some times to figure it out, but the attached patches do fix the
issue. In short, gnome-settings-daemon needs a RW access to
/dev/rfkill.

It installs an udev rule to add an uaccess tag to the /dev/rfkill
device. Then elogind takes care of modifying the file ACL accordingly.

Two things were broken:

1. The gnome-settings-daemon udev path was wrong.

2. The gnome service didn't registered the udev rules installed by the
gnome-settings-daemon.

I now have, as intended:

--8<---------------cut here---------------start------------->8---
mathieu <at> meije ~$ getfacl /dev/rfkill 
getfacl: Removing leading '/' from absolute path names
# file: dev/rfkill
# owner: root
# group: root
user::rw-
user:mathieu:rw-
group::rw-
mask::rw-
other::r--
--8<---------------cut here---------------end--------------->8---

Thanks,

Mathieu
[0001-gnu-gnome-settings-daemon-Fix-udev-directory.patch (text/x-patch, inline)]
From 8ba28c5b1fe65c469bb0ce041f43159f9f136202 Mon Sep 17 00:00:00 2001
From: Mathieu Othacehe <othacehe <at> gnu.org>
Date: Mon, 3 Jan 2022 20:21:11 +0100
Subject: [PATCH 1/2] gnu: gnome-settings-daemon: Fix udev directory.

* gnu/packages/gnome.scm (gnome-settings-daemon)[arguments]
{#:configure-flags}: Fix the udev directory.
---
 gnu/packages/gnome.scm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index f7f00100b3..a472e66358 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -5577,8 +5577,7 @@ (define-public gnome-settings-daemon
        #:glib-or-gtk? #t
        #:configure-flags
        (list (string-append "-Dudev_dir="
-                            (assoc-ref %outputs "out")
-                            "/lib/udev/rules.d/")
+                            (assoc-ref %outputs "out") "/lib/udev")
              "-Dsystemd=false"
              ;; Otherwise, the RUNPATH will lack the final path component.
              (string-append "-Dc_link_args=-Wl,-rpath="
-- 
2.34.0

[0002-services-gnome-Add-udev-rules.patch (text/x-patch, inline)]
From fb60e647dcd92e294c33fdb4293f6c69290d260f Mon Sep 17 00:00:00 2001
From: Mathieu Othacehe <othacehe <at> gnu.org>
Date: Mon, 3 Jan 2022 20:22:02 +0100
Subject: [PATCH 2/2] services: gnome: Add udev rules.

Fixes: <https://issues.guix.gnu.org/32166>.

* gnu/services/desktop.scm (gnome-packages, gnome-udev-rules): New procedures.
(gnome-polkit-settings): Use the gnome-packages procedure.
(gnome-desktop-service-type): Add an udev service extension.
---
 gnu/services/desktop.scm | 28 ++++++++++++++++++++--------
 1 file changed, 20 insertions(+), 8 deletions(-)

diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index c6761ca784..c2ee3a3d80 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -868,22 +868,34 @@ (define-record-type* <gnome-desktop-configuration> gnome-desktop-configuration
   gnome-desktop-configuration?
   (gnome gnome-package (default gnome)))
 
-(define (gnome-polkit-settings config)
-  "Return the list of GNOME dependencies that provide polkit actions and
-rules."
+(define (gnome-packages config packages)
+  "Return the list of GNOME dependencies from CONFIG which names are part of
+the given PACKAGES list."
   (let ((gnome (gnome-package config)))
     (map (lambda (name)
            ((package-direct-input-selector name) gnome))
-         '("gnome-settings-daemon"
-           "gnome-control-center"
-           "gnome-system-monitor"
-           "gvfs"))))
+         packages)))
+
+(define (gnome-udev-rules config)
+  "Return the list of GNOME dependencies that provide udev rules."
+  (gnome-packages config '("gnome-settings-daemon")))
+
+(define (gnome-polkit-settings config)
+  "Return the list of GNOME dependencies that provide polkit actions and
+rules."
+  (gnome-packages config
+                  '("gnome-settings-daemon"
+                    "gnome-control-center"
+                    "gnome-system-monitor"
+                    "gvfs")))
 
 (define gnome-desktop-service-type
   (service-type
    (name 'gnome-desktop)
    (extensions
-    (list (service-extension polkit-service-type
+    (list (service-extension udev-service-type
+                             gnome-udev-rules)
+          (service-extension polkit-service-type
                              gnome-polkit-settings)
           (service-extension profile-service-type
                              (compose list
-- 
2.34.0


bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 03 Feb 2022 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 72 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.