GNU bug report logs - #36141
[PATCH] installer: Unblock relevant rfkill switches.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Tobias Geerinckx-Rice <me@HIDDEN>; Keywords: patch; dated Sat, 8 Jun 2019 17:56:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 36141 <at> debbugs.gnu.org:


Received: (at 36141) by debbugs.gnu.org; 9 Jun 2019 00:20:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 08 20:20:55 2019
Received: from localhost ([127.0.0.1]:53939 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hZlZv-0001z7-93
	for submit <at> 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 <me@HIDDEN>) id 1hZlZr-0001yn-LL
 for 36141 <at> debbugs.gnu.org; Sat, 08 Jun 2019 20:20:53 -0400
Received: by tobias.gr (OpenSMTPD) with ESMTP id 045dc2d5
 for <36141 <at> 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@HIDDEN; 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 <at> debbugs.gnu.org>; Sun, 9 Jun 2019 00:20:40 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: 36141 <at> debbugs.gnu.org
Subject: Re: [bug#36141] [PATCH] installer: Unblock relevant rfkill switches.
References: <20190608175505.11162-1-me@HIDDEN> <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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#36141; Package guix-patches. Full text available.

Message received at 36141 <at> debbugs.gnu.org:


Received: (at 36141) by debbugs.gnu.org; 8 Jun 2019 18:14:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 08 14:14:50 2019
Received: from localhost ([127.0.0.1]:53681 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hZfre-0003pz-GE
	for submit <at> 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 <me@HIDDEN>) id 1hZfrb-0003pn-JW
 for 36141 <at> debbugs.gnu.org; Sat, 08 Jun 2019 14:14:49 -0400
Received: by tobias.gr (OpenSMTPD) with ESMTP id 51d58425
 for <36141 <at> 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@HIDDEN; 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 <at> debbugs.gnu.org>; Sat, 8 Jun 2019 18:14:42 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: 36141 <at> debbugs.gnu.org
Subject: Re: [bug#36141] [PATCH] installer: Unblock relevant rfkill switches.
References: <20190608175505.11162-1-me@HIDDEN>
In-reply-to: <20190608175505.11162-1-me@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#36141; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Jun 2019 17:55:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 08 13:55:46 2019
Received: from localhost ([127.0.0.1]:53669 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hZfZB-0003No-NP
	for submit <at> 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 <me@HIDDEN>) id 1hZfZ8-0003Nf-7W
 for submit <at> 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 <me@HIDDEN>) id 1hZfZ7-0000dx-6i
 for guix-patches@HIDDEN; 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 <me@HIDDEN>) id 1hZfZ1-0007i1-GG
 for guix-patches@HIDDEN; 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 <me@HIDDEN>) id 1hZfYs-0007ST-7s
 for guix-patches@HIDDEN; Sat, 08 Jun 2019 13:55:30 -0400
Received: by tobias.gr (OpenSMTPD) with ESMTP id 9fb9545b
 for <guix-patches@HIDDEN>; 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@HIDDEN; 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 <guix-patches@HIDDEN>; Sat, 8 Jun 2019 17:55:14 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] installer: Unblock relevant rfkill switches.
Date: Sat,  8 Jun 2019 19:55:05 +0200
Message-Id: <20190608175505.11162-1-me@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 <m.othacehe@HIDDEN>
+;;; Copyright © 2019 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;;
 ;;; 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





Acknowledgement sent to Tobias Geerinckx-Rice <me@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#36141; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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