From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 08 13:55:46 2019 Received: (at submit) by debbugs.gnu.org; 8 Jun 2019 17:55:46 +0000 Received: from localhost ([127.0.0.1]:53669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hZfZB-0003No-NP for submit@debbugs.gnu.org; Sat, 08 Jun 2019 13:55:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:59479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hZfZ8-0003Nf-7W for submit@debbugs.gnu.org; Sat, 08 Jun 2019 13:55:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49496) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZfZ7-0000dx-6i for guix-patches@gnu.org; Sat, 08 Jun 2019 13:55:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZfZ1-0007i1-GG for guix-patches@gnu.org; Sat, 08 Jun 2019 13:55:39 -0400 Received: from tobias.gr ([80.241.217.52]:46192) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hZfYs-0007ST-7s for guix-patches@gnu.org; Sat, 08 Jun 2019 13:55:30 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 9fb9545b for ; Sat, 8 Jun 2019 17:55:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=2018; i=me@tobias.gr; bh=HtOmQ1bgV rZe7Nl/sFibUwy1SPNl/hRlst71XzUoy5k=; b=PJACwtTgya8NHNtL/JCatLH8M 904qDMyv/GouPQRUS+ycZ63HLWb/fZ5KpyjFpHjJdfknxCE1lCJhqEoqd1DnZw0i LKN5fNmkLK3C3pQK6RdZ1cavNYBPBOBwWo9PIDg97Zjf8bnlxc0DpkkSrglS6/HH 6AITrryb7aJaGI3VzlMKM1Z/fHkqGU5zKVCgzEloqe4/Y8DHzihhNlZGfR5qEVPy HecgJ60YVf9MviaWtFYYwd6uNcL2b9Dm1aH5bTxjUQzLK5aUDtBQaFhCuGG8Z+nN 59afGT403HuS73YId0l+JFnZvoB35ghLcfgKDQA8U+pJbAe4cpHz1mIpTtc6Q== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 937f7ef2 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sat, 8 Jun 2019 17:55:14 +0000 (UTC) From: Tobias Geerinckx-Rice To: guix-patches@gnu.org Subject: [PATCH] installer: Unblock relevant rfkill switches. Date: Sat, 8 Jun 2019 19:55:05 +0200 Message-Id: <20190608175505.11162-1-me@tobias.gr> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.241.217.52 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit 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: -2.4 (--) * gnu/installer/connman.scm (connman-enable-technology): Call ‘rfkill’ to (soft-)unblock a wireless technology before enabling it. --- Guix, Scanning for Wi-Fi networks on a Dell Latitude E6400 shows nothing before running ‘rfkill unblock all’ on another VT. Do this automatically, and more specifically. K-regs, T G-R gnu/installer/connman.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/installer/connman.scm b/gnu/installer/connman.scm index 7f47b9af77..0c72aaf2a1 100644 --- a/gnu/installer/connman.scm +++ b/gnu/installer/connman.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018 Mathieu Othacehe +;;; Copyright © 2019 Tobias Geerinckx-Rice ;;; ;;; This file is part of GNU Guix. ;;; @@ -236,7 +237,12 @@ list so that each keys of a given technology are gathered in a separate list." (define (connman-enable-technology technology) "Enable the given TECHNOLOGY." - (let ((type (technology-type technology))) + (let* ((type (technology-type technology)) + (connman-rfkill-types `(("bluetooth" . "bluetooth") + ("wifi" . "wlan"))) + (rfkill-type (assoc-ref connman-rfkill-types type))) + (when rfkill-type + (system* "rfkill" "unblock" rfkill-type)) (connman "enable" type))) (define (connman-disable-technology technology) -- 2.21.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 08 14:14:50 2019 Received: (at 36141) by debbugs.gnu.org; 8 Jun 2019 18:14:50 +0000 Received: from localhost ([127.0.0.1]:53681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hZfre-0003pz-GE for submit@debbugs.gnu.org; Sat, 08 Jun 2019 14:14:50 -0400 Received: from tobias.gr ([80.241.217.52]:46862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hZfrb-0003pn-JW for 36141@debbugs.gnu.org; Sat, 08 Jun 2019 14:14:49 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 51d58425 for <36141@debbugs.gnu.org>; Sat, 8 Jun 2019 18:14:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=oiy9Sdzx1qaPg6ozzLsnar 6WezV3SAQpDhxzqnY6nco=; b=g2JQ7DBkoRZA7EokpPlrJRyTBOPoef4+5Rf9oH K8WYV6BvFhWLUrgDS8ham6OzDOoWKl0gmbhN8Djdhn3gGwIEer0zglEEVblg3o2m hJjvUCSIfxvtZCL2HySDSPh4ha53TJK/4/3hnu8AnZ+xEw00cYz2JJXVGsuI6c3i KNxg0vRIIdogoBhnNC18R8su1fx80L2YV1cbCRGX+xja4J34lhkc+SiZFCEg3wZi MXs0Zs9XuboLuEUdwXsoNjkKDyOuiQFSWZq/SZllM7/WwT/5ECrfja9Vn/ODUXU3 2SVE0rRDyLi5AG54xjaiNx+LiTxHupoidt7d/towWiukNWXw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id edde0dc8 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <36141@debbugs.gnu.org>; Sat, 8 Jun 2019 18:14:42 +0000 (UTC) From: Tobias Geerinckx-Rice To: 36141@debbugs.gnu.org Subject: Re: [bug#36141] [PATCH] installer: Unblock relevant rfkill switches. References: <20190608175505.11162-1-me@tobias.gr> In-reply-to: <20190608175505.11162-1-me@tobias.gr> Date: Sat, 08 Jun 2019 20:14:40 +0200 Message-ID: <87tvd054hb.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36141 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 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Oh=E2=80=A6 Tobias Geerinckx-Rice wrote: > + (connman-rfkill-types `(("bluetooth" . "bluetooth") > + ("wifi" . "wlan"))) > + (rfkill-type (assoc-ref connman-rfkill-types type))) Turns out that util-linux allows =E2=80=98wifi=E2=80=99 as a special alias = for=20 =E2=80=98wlan=E2=80=99: // only result for =E2=80=98grep -riw wifi=E2=80=99: static const struct rfkill_type_str rfkill_type_strings[] =3D { { .type =3D RFKILL_TYPE_ALL, .name =3D "all" }, { .type =3D RFKILL_TYPE_WLAN, .name =3D "wlan", .desc =3D "Wireless LAN" }, { .type =3D RFKILL_TYPE_WLAN, .name =3D "wifi" }, /* alias */ =E2=80=A6so we could drop connman-rfkill-types completely and rely on that= =20 (undocumented!) quirk. Of course I don't believe we should, but now you know as much as I=20 do :-) Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXPv7EQAKCRANsP+IT1Vt edCGAQDa0tEXNbh6ez7Q8BthA4w5ZVmmn+Wa1CfJ9dx2ExFBcgEAvuXKXOUVWSSz m+Pwo6YY02+ANCRI4KLXWMnnb3S31w0= =CIoT -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 08 20:20:55 2019 Received: (at 36141) by debbugs.gnu.org; 9 Jun 2019 00:20:55 +0000 Received: from localhost ([127.0.0.1]:53939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hZlZv-0001z7-93 for submit@debbugs.gnu.org; Sat, 08 Jun 2019 20:20:55 -0400 Received: from tobias.gr ([80.241.217.52]:47432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hZlZr-0001yn-LL for 36141@debbugs.gnu.org; Sat, 08 Jun 2019 20:20:53 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 045dc2d5 for <36141@debbugs.gnu.org>; Sun, 9 Jun 2019 00:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=X2i9cAqIZgMJsTTYsECKSR 1uXqPrFSwsO76i8vG8Lu0=; b=UBstCEEzNiJGedB0xFS46fNRRvG4EFLACjP5x+ KlKmdt9oHRau4lXJL+QXsEJZ0RLPmXfufN0x790+yPeCFQ+DGfTqKch9VpADuWk2 ukBg6VBg5tL7O8O39cqt4IB2brNPuIJq4YFgB/nhuXsfCPID5NGD9CPxWstkaZTY vKeQvzpe/tfIf5V24l5Q1GR8WJN6a+6zr1UC0oXWQ3yU26KfqyICRmlza2qxUSJh Tv0bMjsG9lw51Uk3YQdEH5mAgVKeXIDFVlor5iAzKhXT1XRs+uetVnGhbKBr1tue C389SyGejSdibpKRIgInkNSnIxnQMRZg3MQFdguJrcXof6Qw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 61946530 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <36141@debbugs.gnu.org>; Sun, 9 Jun 2019 00:20:40 +0000 (UTC) From: Tobias Geerinckx-Rice To: 36141@debbugs.gnu.org Subject: Re: [bug#36141] [PATCH] installer: Unblock relevant rfkill switches. References: <20190608175505.11162-1-me@tobias.gr> <87tvd054hb.fsf@nckx> In-reply-to: <87tvd054hb.fsf@nckx> Date: Sun, 09 Jun 2019 02:20:39 +0200 Message-ID: <87pnnn623s.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36141 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 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Tobias Geerinckx-Rice wrote: > [hokum] Never mind, there's something else going on here. connmanctl=20 handles (blindly clobbers, even) rfkill for you. Perhaps I lost a=20 race. Possibly due to this machine's 3 Wi-Fi cards. Still, something's not right. To be continued=E2=80=A6 Sorry for my noise, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXPxQ1wAKCRANsP+IT1Vt eYKQAP97Uf9WB2Hou58eGCeytwrMwX6N1UZdLCJBIUS/zD3srAEA408y9dTLoJqB Mb1Oy/ncJ9lwkwVqXCsb+e5AKUi+6g4= =sZf/ -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 03 15:35:05 2021 Received: (at 36141-done) by debbugs.gnu.org; 3 Aug 2021 19:35:05 +0000 Received: from localhost ([127.0.0.1]:41550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB0Bt-0003u1-3d for submit@debbugs.gnu.org; Tue, 03 Aug 2021 15:35:05 -0400 Received: from mail-qk1-f171.google.com ([209.85.222.171]:42829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB0Bq-0003tT-NE for 36141-done@debbugs.gnu.org; Tue, 03 Aug 2021 15:35:03 -0400 Received: by mail-qk1-f171.google.com with SMTP id o13so461212qkk.9 for <36141-done@debbugs.gnu.org>; Tue, 03 Aug 2021 12:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=vwq3o6LBvxrHVSdWFMUle+g406nY2NJyYT4AFhdvCV8=; b=jX6k0yBfy+7tYIvMNIWwc292jOU/Ept71TQeNpgPlHaqD0V0sJsAblDVaTrczA+bdE NcM/85gAsd0I03rI/pIA7YPhzJ0nZ1oC06BaXQgT91NZsp4TcVUD2OUyDEsaFnzb7jlC 5QI0OglPo9dzhe9taV+t1oaILA3Gu8ohL9615huAaOl4tqN4Uw4bVzic8YnYixgaRDrD eeyuqpTv5v1yNH93Uw/+XrTUzQEobKFZuH/tSvoH+jAEt29oGFz0OpOV6bTgTMp7zu4z 4ScvLZJme7NnOjn1ky3AUaucaU4tVf+FSrf8vGCCRUxtrBFdAm+NqlgHzBTu3vohj/tN ooYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=vwq3o6LBvxrHVSdWFMUle+g406nY2NJyYT4AFhdvCV8=; b=L35ZO9RGPO/HaFOo0f4kwzF93RWmwZlylp7I8eXZ8P/yfAU5Jo+NWU8DQVVkUW6O2v 5r1CFHIiu8SF9//05MhH4IsTyTP2MKx+cqUEKs9Ow+DawUFgR7rZK8d45cjfLrBcHyTq cPhSPjbnSs6AcPh1WhVSfDZnAxah2byxjCe0jevnEeBJ1L11VdzDHzTRz+Rd8TNmoUYV Ie83EC0Cc8C5a3wcSWa0yNzfofIONwvByBl3nsOiboHfjLn6FihlCG/AcUUnkW0ACvtQ jptIxSBDkcCJNUb42X77ITrIaWpKsEY4j59J8VTQrfQFCIci0YYlb1G8PUcN6lE3p9QP aa/g== X-Gm-Message-State: AOAM532bWzbXeBI9XySVKivBX8ZTTpws2GCzjS7ExN24sjYpdXVtrRmW FB3PawcF+sk58MjNvH77V/PevpP/GBmC9G4T X-Google-Smtp-Source: ABdhPJzWp9dC+pbbc92092MXClXplVziO0xTXrga0I7/CSFXUTMbtWUwNRW8UZSjP+Ol8HjFd3SqmQ== X-Received: by 2002:a37:8407:: with SMTP id g7mr22427371qkd.123.1628019297074; Tue, 03 Aug 2021 12:34:57 -0700 (PDT) Received: from hurd (dsl-10-129-132.b2b2c.ca. [72.10.129.132]) by smtp.gmail.com with ESMTPSA id i4sm7951410qka.130.2021.08.03.12.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 12:34:56 -0700 (PDT) From: Maxim Cournoyer To: Tobias Geerinckx-Rice Subject: Re: bug#36141: [PATCH] installer: Unblock relevant rfkill switches. References: <20190608175505.11162-1-me@tobias.gr> <87tvd054hb.fsf@nckx> <87pnnn623s.fsf@nckx> Date: Tue, 03 Aug 2021 15:34:55 -0400 In-Reply-To: <87pnnn623s.fsf@nckx> (Tobias Geerinckx-Rice's message of "Sun, 09 Jun 2019 02:20:39 +0200") Message-ID: <87y29i8gps.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36141-done Cc: 36141-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: -1.0 (-) Hi Tobias, Tobias Geerinckx-Rice writes: > Tobias Geerinckx-Rice wrote: >> [hokum] > > Never mind, there's something else going on here. connmanctl handles > (blindly clobbers, even) rfkill for you. Perhaps I lost a race. > Possibly due to this machine's 3 Wi-Fi cards. > > Still, something's not right. To be continued=E2=80=A6 > > Sorry for my noise, > > T G-R I'll close this one, but feel free to open a bug if you stumble upon a problem in this area again. Thanks, Maxim From unknown Fri Jun 13 11:37:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 01 Sep 2021 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator