From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: disable software blocking of wifi? Date: Fri, 5 Apr 2019 15:52:56 +0200 (CEST) Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_62841_1894751320.1554472376565" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCPKr-00013L-4n for help-guix@gnu.org; Fri, 05 Apr 2019 09:56:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCPHD-0005Ma-Ix for help-guix@gnu.org; Fri, 05 Apr 2019 09:53:05 -0400 Received: from w1.tutanota.de ([81.3.6.162]:65398) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCPHB-0005Dq-CS for help-guix@gnu.org; Fri, 05 Apr 2019 09:53:03 -0400 Received: from w2.tutanota.de (unknown [192.168.1.163]) by w1.tutanota.de (Postfix) with ESMTP id 8BA66FA009D for ; Fri, 5 Apr 2019 13:52:56 +0000 (UTC) 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: Help Guix ------=_Part_62841_1894751320.1554472376565 Content-Type: multipart/alternative; boundary="----=_Part_62842_2126027901.1554472376565" ------=_Part_62842_2126027901.1554472376565 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello! I am creating my own config. I've disabled networkmanager-service-ty= pe, configured wpa-supplicant (but have not yet configured dhcpcd, cause it= needs networking service).=20 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=C2=A0=C2=A0 LPF/wlp2s0/xx:xx:xx:xx:55 Sending on=C2=A0=C2=A0 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 interface. receive_packet failed on wlp2s0: Network is down ^C # ifconfig lo=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Link encap:Local Loopback =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 inet addr:127.0.0.1= =C2=A0 Bcast:0.0.0.0=C2=A0 Mask:255.0.0.0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 UP LOOPBACK RUNNING= =C2=A0 MTU:65536=C2=A0 Metric:1 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 RX packets:0 errors:= 0 dropped:0 overruns:0 frame:0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TX packets:0 errors:= 0 dropped:0 overruns:0 carrier:0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 collisions:0 txqueue= len:1000 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 RX bytes:0=C2=A0 TX = bytes:0 # rfkill list all 0: ideapad_wlan: Wireless LAN =C2=A0=C2=A0=C2=A0 Soft blocked: yes =C2=A0=C2=A0=C2=A0 Hard blocked: no 1: ideapad_bluetooth: Bluetooth =C2=A0=C2=A0=C2=A0 Soft blocked: yes =C2=A0=C2=A0=C2=A0 Hard blocked: no 2: phy0: Wireless LAN =C2=A0=C2=A0=C2=A0 Soft blocked: yes =C2=A0=C2=A0=C2=A0 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 co= veinent. I tried this lines as I've got from here https://superuser.com/questions/81= 9547/how-do-i-stop-rfkill-module-from-hardblocking-my-wifi-without-rfkill-c= ommand : =C2=A0(kernel-arguments '("modprobe.blacklist=3Dpcspkr,snd_pcsp,wmi,pata_ac= pi" =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "modprobe.options.rfkill.mast= er_switch_mode=3D2" =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "modprobe.options.rfkill.defa= ult_state=3D1")) But adding 'wmi,pata_acpi=C2=A0 ' but not helped. If add ideapad_laptop to = blacklist, then rfkill does not see interfaces wlan and bluetooth. # lsmod | grep -e wmi -e acpi wmi=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 32768=C2=A0 1 ideapad_laptop How to prevent rfkill blocking of wlan? ------=_Part_62842_2126027901.1554472376565 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello! I am creating my own config. I've disabled netwo= rkmanager-service-type, configured wpa-supplicant (but have not yet configu= red dhcpcd, cause it needs networking service).
Guix reconfigures my system normally.

<= /div>
But during boot there is a message: rfkill: WLAN s= oft blocked
And that is why wpa-supplicant fai= ls:

# reboot
=
# dhclient -v wlp2s0






 (kernel-arguments '("modprob= e.blacklist=3Dpcspkr,snd_pcsp,wmi,pata_acpi"
         &n= bsp;           "modprobe.= options.rfkill.master_switch_mode=3D2"
          &n= bsp;          "modprobe.option= s.rfkill.default_state=3D1"))

=
But adding 'wmi,pata_acpi  ' but not helped. If ad= d ideapad_laptop to blacklist, then rfkill does not see interfaces wlan and= bluetooth.

# lsmod | grep -e wmi -e acpi
wmi        &nbs= p;           32768  = 1 ideapad_laptop


How to prevent rfkill bl= ocking of wlan?
------=_Part_62842_2126027901.1554472376565-- ------=_Part_62841_1894751320.1554472376565 Content-Type: text/x-scheme; charset=us-ascii; name=config-wpa-2.scm Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=config-wpa-2.scm ;;this is znavko's cute config (use-modules (gnu) (gnu system nss) (gnu system locale) ;;for locale-definition (gnu services desktop) ;;(gnu services dns) ;;for dnsmasq (srfi srfi-1) ;;for remove function (gnu services networking) ;;for remove ntp (gnu services avahi) ;;for remove avahi (gnu services xorg) ;;(gnu services databases);;for postgres (gnu packages admin) ;;for wpa_supplicant ) (use-service-modules desktop) (use-package-modules certs gnome) ;;(define %redundant-linux-modules '("pcspkr" "snd_pcsp")) (operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8") (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda"))) (file-systems (cons (file-system (device "/dev/sda1") (mount-point "/") (type "ext4")) %base-file-systems)) (swap-devices '("/dev/sda2")) (users (cons* (user-account (name "bob") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/bob")) (user-account (name "mom") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/mom")) %base-user-accounts)) ;; This is where we specify system-wide packages. (packages (cons* nss-certs ;for HTTPS access gvfs ;for user mounts wpa-supplicant isc-dhcp %base-packages)) (services (cons* ;;(service postgresql-service-type) (service xfce-desktop-service-type) ;;(service dhcpd-service-type ;; (dhcpd-configuration ;; (config-file (local-file "/etc/dhcpcd.conf")) ;; (interfaces '("wlp2s0")))) (modify-services (remove (lambda (service) (eq? (service-kind service) ntp-service-type)) (remove (lambda (service) (eq? (service-kind service) avahi-service-type)) (remove (lambda (service) (eq? (service-kind service) bluetooth-service)) (remove (lambda (service) (eq? (service-kind service) network-manager-service-type)) ;;(modify-services (modify-services (modify-services %desktop-services (slim-service-type config => (slim-configuration (xorg-configuration (xorg-configuration (extra-config '("Section \"InputClass\" Identifier \"touchpad\" Driver \"libinput\" MatchIsTouchpad \"on\" Option \"Tapping\" \"on\" EndSection") ))))) ) ;end of modify-services 4th (wpa-supplicant-service-type config => (wpa-supplicant-configuration (interface "wlp2s0") (config-file "/etc/wpa_supplicant/wpa_supplicant.conf"))) ) ;end of modify-services 3rd ;;) ;end of modify-services 2nd ) ;end of removenetwork-manager-configuration ) ;end of remove bluetooth-service-type ) ;end of remove avahi ) ;end of remove ntp (elogind-service-type c => (elogind-configuration (handle-lid-switch 'ignore))) );;end of modify-services 1st desktop-services ));;end of services ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss) (kernel-arguments '("modprobe.blacklist=pcspkr,snd_pcsp")) ;(kernel-arguments ; (list (string-append "modprobe.blacklist=" ; (apply comma-separated ; %redundant-linux-modules)))) );;end of operating-system ------=_Part_62841_1894751320.1554472376565--