From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: disable software blocking of wifi? Date: Sat, 6 Apr 2019 22:27:14 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:49416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCruS-0001J8-SI for help-guix@gnu.org; Sat, 06 Apr 2019 16:27:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCruR-0005Mk-JP for help-guix@gnu.org; Sat, 06 Apr 2019 16:27:28 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:38731) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hCruR-0005Lk-9v for help-guix@gnu.org; Sat, 06 Apr 2019 16:27:27 -0400 Received: by mail-ed1-x534.google.com with SMTP id q14so8351547edr.5 for ; Sat, 06 Apr 2019 13:27:27 -0700 (PDT) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: znavko@tutanota.com Cc: Help Guix Hello, ezt =C3=ADrta (id=C5=91pont: 2019. =C3=A1pr. 5., P, 1= 5:57): > > Hello! I am creating my own config. I've disabled networkmanager-service-= type, configured wpa-supplicant (but have not yet configured dhcpcd, cause = it needs networking service). > Guix reconfigures my system normally. > > But during boot there is a message: rfkill: WLAN soft blocked > And that is why wpa-supplicant fails: > > # reboot > # dhclient -v wlp2s0 > Internet Systems Consortium DHCP Client 4.4.1 > Copyright 2004-2018 Internet Systems Consortium. > All rights reserved. > For info, please visit https://www.isc.org/software/dhcp/ > > RTNETLINK answers: Operation not possible due to RF-kill > Listening on LPF/wlp2s0/xx:xx:xx:xx:55 > Sending on LPF/wlp2s0/xx:xx:xx:xx:55 > Sending on Socket/fallback > DHCPREQUEST for 192.168.1.33 on wlp2s0 to 255.255.255.255 port 67 > send_packet: Network is down > dhclient.c:2762: Failed to send 300 byte long packet over wlp2s0 interfac= e. > receive_packet failed on wlp2s0: Network is down > ^C > > # ifconfig > lo Link encap:Local Loopback > inet addr:127.0.0.1 Bcast:0.0.0.0 Mask:255.0.0.0 > UP LOOPBACK RUNNING MTU:65536 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:0 TX bytes:0 > > # rfkill list all > 0: ideapad_wlan: Wireless LAN > Soft blocked: yes > Hard blocked: no > 1: ideapad_bluetooth: Bluetooth > Soft blocked: yes > Hard blocked: no > 2: phy0: Wireless LAN > Soft blocked: yes > Hard blocked: no > > # rfkill unblock wifi > > # herd restart wpa-supplicant > # dhclient -v wlp2s0 > > > So I need manually unblock wifi and restart wpa-supplicant, but it's not = coveinent. > > I tried this lines as I've got from here https://superuser.com/questions/= 819547/how-do-i-stop-rfkill-module-from-hardblocking-my-wifi-without-rfkill= -command : > > > (kernel-arguments '("modprobe.blacklist=3Dpcspkr,snd_pcsp,wmi,pata_acpi" > "modprobe.options.rfkill.master_switch_mode=3D2" > "modprobe.options.rfkill.default_state=3D1")) > > But adding 'wmi,pata_acpi ' but not helped. If add ideapad_laptop to bla= cklist, then rfkill does not see interfaces wlan and bluetooth. > > # lsmod | grep -e wmi -e acpi > wmi 32768 1 ideapad_laptop > > > How to prevent rfkill blocking of wlan? It should not just block it, unless somthing is requesting it to do so. Do you have any related errors or warnings earlier? Also, can you provide some hardware details? It also seems to be possible to work around this, by running the rfkill command from a service before wpa-supplicant, but that feels very much like a hack to me. Best regards, g_bor