From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CDEkL+gC1GHnHgAAgWs5BA (envelope-from ) for ; Tue, 04 Jan 2022 09:18:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kKPWJ+gC1GEHEAAAG6o9tA (envelope-from ) for ; Tue, 04 Jan 2022 09:18:48 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0A1E71E9CC for ; Tue, 4 Jan 2022 09:18:48 +0100 (CET) Received: from localhost ([::1]:47428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4f1r-0002ym-51 for larch@yhetil.org; Tue, 04 Jan 2022 03:18:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4f1A-0002wD-PC for bug-guix@gnu.org; Tue, 04 Jan 2022 03:18:13 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4f18-0006hd-KT for bug-guix@gnu.org; Tue, 04 Jan 2022 03:18:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n4f18-0005Oc-HZ for bug-guix@gnu.org; Tue, 04 Jan 2022 03:18:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52829: bug#32166: GNOME Settings panel for Bluetooth dysfunctional Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 04 Jan 2022 08:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52829 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 52829@debbugs.gnu.org Received: via spool by 52829-submit@debbugs.gnu.org id=B52829.164128427320719 (code B ref 52829); Tue, 04 Jan 2022 08:18:02 +0000 Received: (at 52829) by debbugs.gnu.org; 4 Jan 2022 08:17:53 +0000 Received: from localhost ([127.0.0.1]:36969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4f0z-0005O2-Fd for submit@debbugs.gnu.org; Tue, 04 Jan 2022 03:17:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4f0w-0005Ni-DI; Tue, 04 Jan 2022 03:17:51 -0500 Received: from [2001:470:142:3::e] (port=41606 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4f0r-0006fs-5L; Tue, 04 Jan 2022 03:17:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=JJBCTnU8HiKuwrnL73H8wZZMwGLaklKEtmnMfOuM/fo=; b=T85ZVDSK7r857NrVcyu2 dURM8dGvjl/wihHu/DO7Y2edf6nVpOlYooPPwl1JUNGl+DZsyrLoSRw66d85jgJP4nYyljMQ2wdnT EogGH4HrifXIqpXOI7kXwaKcJTHy5M3Ki2QH3w4us69ieVgukZKTuRjDr1Ua3v+mfOj3Nk7llYzJu i55cqDWPSNecwOWZ0GQFGjiYC5qytG0AM9P/9kolKv59c9V85sc3YlaX2OM4ETJCxdMGLcIhXz2Sx /mSDwrSlGAHx8yPjHnoxDSf71nkBjxrvGH1642RKM2zoDxlqUwJpV7NVraNyCfWAxMEdhZT9CY0Xb bt/8zxYtKDc6lA==; Received: from [2a01:e0a:19b:d9a0:2f3b:16f2:b776:3ef9] (port=50984 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4f0r-0005Rq-3x; Tue, 04 Jan 2022 03:17:45 -0500 From: Mathieu Othacehe References: <87mtkl3mkk.fsf@gnu.org> Date: Tue, 04 Jan 2022 09:17:43 +0100 In-Reply-To: <87mtkl3mkk.fsf@gnu.org> (Mathieu Othacehe's message of "Mon, 27 Dec 2021 19:54:51 +0100") Message-ID: <875yqz29ug.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 32166@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641284328; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=JJBCTnU8HiKuwrnL73H8wZZMwGLaklKEtmnMfOuM/fo=; b=DMuts1xc0rh69CquOFCdBUcC+IFYkKOyLF9PbZdyy7U4oLfaxsD5XUGnE2VVDKOQzMzwHu oD2kV2A0/qkYc+PY7/NpJv9wZttI1hN+pKbdHrJpAgeNSqjYwg7NHr04x1jo2AMHSCYk3f bX0Y9GCHtMpKbknVBUZxmnIoOXcmtx2tJMjIo9lvvYFQ0QZtoAjTgkQ6QPXGvGwnWPD8eg fAj/wwy3w84uexAq0i3vysFf9zxxP6XvLEGLIwrKboPs6g+nDS+xPRLjhhaI1k1JIrVC/g vi3Ngo6G9K0+m6TXwPs4m4WZ6CAFAXN+QJSQ8NmKOh0wSKYFbsQ3A0a4JcIevA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641284328; a=rsa-sha256; cv=none; b=Ptap1p8ycINdLFUDRRwYwMAQmA0b4UPcop4vyCNnb5n2feJ1k45Pt2+adRL+fA4kvS1REr 1brHw6kqaS5x1Vu5lSRKdsITKcmk27pLDCa7La2fVD/4JIOHNs+TZgvkGcTV3/X1/SovdL O3fUj2Zmc8bQz1BoRDhV2+SQ5y7uRB3y6dXMGUaV/1ZxyWUbe7qeFYBSyE2lWv1WkGV9Ir KpqRLegWyDKn3ikV5IKteGRZNzswkBo7oP0Mjbaml7OQq7Y5Pz8SWORR6MaVAR7+mIpBLF oXW7+3/o41xdYNGw8YzkkQ56Mo+9fgq/e96Bsg1JcUI6Ix7Jp37Mt6nWZwBn3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=T85ZVDSK; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=T85ZVDSK; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0A1E71E9CC X-Spam-Score: -5.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: hS3tLOlatukO --=-=-= Content-Type: text/plain 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@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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-gnome-settings-daemon-Fix-udev-directory.patch >From 8ba28c5b1fe65c469bb0ce041f43159f9f136202 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe 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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-services-gnome-Add-udev-rules.patch >From fb60e647dcd92e294c33fdb4293f6c69290d260f Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Mon, 3 Jan 2022 20:22:02 +0100 Subject: [PATCH 2/2] services: gnome: Add udev rules. Fixes: . * 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 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 --=-=-=--