From patchwork Sat Jun 8 17:55:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Geerinckx-Rice X-Patchwork-Id: 14264 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1663B17063; Sat, 8 Jun 2019 18:56:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 13B4216430 for ; Sat, 8 Jun 2019 18:56:07 +0100 (BST) Received: from localhost ([::1]:59706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZfZV-0000wU-S5 for patchwork@mira.cbaines.net; Sat, 08 Jun 2019 13:56:05 -0400 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 X-Loop: help-debbugs@gnu.org Subject: [bug#36141] [PATCH] installer: Unblock relevant rfkill switches. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 Jun 2019 17:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36141 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36141@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156001654613013 (code B ref -1); Sat, 08 Jun 2019 17:56:01 +0000 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 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 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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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)