From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:49587) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZfZT-0000vs-9G for guix-patches@gnu.org; Sat, 08 Jun 2019 13:56:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZfZS-00083S-Bg for guix-patches@gnu.org; Sat, 08 Jun 2019 13:56:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40125) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hZfZS-00083K-7r for guix-patches@gnu.org; Sat, 08 Jun 2019 13:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hZfZS-0003OK-4U for guix-patches@gnu.org; Sat, 08 Jun 2019 13:56:02 -0400 Subject: [bug#36141] [PATCH] installer: Unblock relevant rfkill switches. Resent-Message-ID: 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 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) 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 Date: Sat, 8 Jun 2019 19:55:05 +0200 Message-Id: <20190608175505.11162-1-me@tobias.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 36141@debbugs.gnu.org * 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