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 23:21:00 +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]:35100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCskV-00049K-Cp for help-guix@gnu.org; Sat, 06 Apr 2019 17:21:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCskT-0004SN-CJ for help-guix@gnu.org; Sat, 06 Apr 2019 17:21:15 -0400 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]:37381) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hCskS-0004Qp-Vc for help-guix@gnu.org; Sat, 06 Apr 2019 17:21:13 -0400 Received: by mail-ed1-x543.google.com with SMTP id l20so905913edv.4 for ; Sat, 06 Apr 2019 14:21:12 -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@disroot.org Cc: Help Guix Hello, ezt =C3=ADrta (id=C5=91pont: 2019. =C3=A1pr. 6., Szo, = 23:04): > > rfkill list all > 0: ideapad_wlan: Wireless LAN > Soft blocked: no > Hard blocked: no > 1: phy0: Wireless LAN > Soft blocked: no > Hard blocked: no > 2: ideapad_bluetooth: Bluetooth > Soft blocked: yes > Hard blocked: no > > Thanks. I looked a bit around, and some seems to be solving by blacklisting ideapad_laptop (which I see loaded) acer-wmi (I don't see this loaded). Could you try blacklisting ideapad_laptop, and see if it helps? > April 6, 2019 8:49 PM, "G=C3=A1bor Boskovits" wrote= : > > > Hello, > > > > ezt =C3=ADrta (id=C5=91pont: 2019. =C3=A1pr. 6., S= zo, 22:36): > > > >> Yes. This is my hardware. Yes, I do think about writing my own service= unlocking wifi. But I have a > >> thought that it will be impossible to start wpa-supplicant after my ow= n service, on shepherd it > >> will be kind of hack. I seek guru's support. > >> > >> $ lspci > >> 00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Se= ries SoC Transaction Register > >> (rev 0e) > >> 00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z3= 6xxx/Z37xxx Series Graphics & > >> Display (rev 0e) > >> 00:13.0 SATA controller: Intel Corporation Atom Processor E3800 Series= SATA AHCI Controller (rev > >> 0e) > >> 00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx= /Z37xxx Series Trusted > >> Execution Engine (rev 0e) > >> 00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx S= eries High Definition Audio > >> Controller (rev 0e) > >> 00:1c.0 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI = Express Root Port 1 (rev 0e) > >> 00:1c.2 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI = Express Root Port 3 (rev 0e) > >> 00:1c.3 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI = Express Root Port 4 (rev 0e) > >> 00:1d.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx= Series USB EHCI (rev 0e) > >> 00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Ser= ies Power Control Unit (rev > >> 0e) > >> 00:1f.3 SMBus: Intel Corporation Atom Processor E3800 Series SMBus Con= troller (rev 0e) > >> 02:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless= Network Adapter (rev 01) > >> 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8= 168/8411 PCI Express Gigabit > >> Ethernet Controller (rev 10) > >> > >> $ lsmod > >> Module Size Used by > >> ccm 20480 9 > >> fuse 114688 2 > >> snd_hda_codec_hdmi 57344 1 > >> snd_hda_codec_conexant 24576 1 > >> snd_hda_codec_generic 77824 1 snd_hda_codec_conexant > >> ledtrig_audio 16384 2 snd_hda_codec_generic,snd_hda_codec_conexant > >> intel_rapl 24576 0 > >> intel_soc_dts_thermal 20480 0 > >> intel_soc_dts_iosf 20480 1 intel_soc_dts_thermal > >> intel_powerclamp 20480 0 > >> coretemp 20480 0 > >> kvm 651264 0 > >> irqbypass 16384 1 kvm > >> punit_atom_debug 16384 0 > >> cmdlinepart 16384 0 > >> rtsx_usb_ms 24576 0 > >> intel_spi_platform 16384 0 > >> intel_spi 24576 1 intel_spi_platform > >> memstick 20480 1 rtsx_usb_ms > >> rtsx_usb_sdmmc 28672 0 > >> spi_nor 45056 1 intel_spi > >> mtd 65536 3 cmdlinepart,intel_spi > >> iTCO_wdt 16384 0 > >> iTCO_vendor_support 16384 1 iTCO_wdt > >> crct10dif_pclmul 16384 1 > >> crc32_pclmul 16384 0 > >> arc4 16384 2 > >> uvcvideo 94208 0 > >> ath9k 155648 0 > >> videobuf2_vmalloc 20480 1 uvcvideo > >> videobuf2_memops 20480 1 videobuf2_vmalloc > >> ath9k_common 24576 1 ath9k > >> videobuf2_v4l2 24576 1 uvcvideo > >> ath9k_hw 479232 2 ath9k_common,ath9k > >> joydev 24576 0 > >> ghash_clmulni_intel 16384 0 > >> cryptd 24576 1 ghash_clmulni_intel > >> videobuf2_common 45056 2 videobuf2_v4l2,uvcvideo > >> ath 32768 3 ath9k_common,ath9k,ath9k_hw > >> videodev 204800 3 videobuf2_v4l2,uvcvideo,videobuf2_common > >> i915 1548288 13 > >> media 49152 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common > >> rtsx_usb 24576 2 rtsx_usb_sdmmc,rtsx_usb_ms > >> usbmouse 16384 0 > >> usbkbd 16384 0 > >> mac80211 839680 1 ath9k > >> input_leds 16384 0 > >> ath3k 24576 0 > >> hci_uart 122880 0 > >> btusb 49152 0 > >> cec 45056 1 i915 > >> btqca 20480 1 hci_uart > >> btrtl 20480 2 hci_uart,btusb > >> btbcm 16384 2 hci_uart,btusb > >> snd_hda_intel 45056 6 > >> btintel 24576 2 hci_uart,btusb > >> bluetooth 561152 7 btrtl,btqca,btintel,hci_uart,btbcm,ath3k,btusb > >> drm_kms_helper 167936 1 i915 > >> snd_hda_codec 135168 4 > >> snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hd= a_intel > >> psmouse 151552 0 > >> ideapad_laptop 36864 0 > >> snd_hda_core 86016 5 > >> snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hd= a_intel,snd_hda_codec > >> serio_raw 20480 0 > >> lpc_ich 24576 0 > >> r8169 81920 0 > >> cfg80211 692224 4 ath9k_common,ath9k,ath,mac80211 > >> i2c_i801 32768 0 > >> sparse_keymap 16384 1 ideapad_laptop > >> realtek 20480 0 > >> drm 430080 9 drm_kms_helper,i915 > >> wmi 32768 1 ideapad_laptop > >> snd_hwdep 20480 1 snd_hda_codec > >> i2c_algo_bit 16384 1 i915 > >> fb_sys_fops 16384 1 drm_kms_helper > >> syscopyarea 16384 1 drm_kms_helper > >> snd_pcm 106496 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hd= a_core > >> snd_timer 40960 1 snd_pcm > >> sysfillrect 16384 1 drm_kms_helper > >> sysimgblt 16384 1 drm_kms_helper > >> snd 86016 20 > >> snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hw= dep,snd_hda_intel,snd_hda_code > >> ,snd_timer,snd_pcm > >> ecdh_generic 28672 1 bluetooth > >> video 45056 2 ideapad_laptop,i915 > >> soundcore 16384 1 snd > >> i2c_hid 28672 0 > >> mei_txe 24576 0 > >> rfkill_gpio 16384 0 > >> mei 106496 1 mei_txe > >> pwm_lpss_platform 16384 0 > >> pwm_lpss 16384 1 pwm_lpss_platform > >> mac_hid 16384 0 > >> virtio_rng 16384 0 > >> virtio_console 32768 0 > >> virtio_net 53248 0 > >> virtio_blk 20480 0 > >> virtio_balloon 24576 0 > >> virtio_pci 24576 0 > >> virtio 16384 6 virtio_rng,virtio_console,virtio_balloon,virtio_pci,vir= tio_blk,virtio_net > >> virtio_ring 32768 6 virtio_rng,virtio_console,virtio_balloon,virtio_pc= i,virtio_blk,virtio_net > >> isci 143360 0 > >> libsas 86016 1 isci > >> scsi_transport_sas 40960 2 isci,libsas > >> pata_atiixp 16384 0 > >> nls_iso8859_1 16384 0 > >> wp512 36864 0 > >> serpent_generic 32768 0 > >> xts 16384 0 > >> dm_crypt 40960 0 > >> hid_apple 16384 0 > >> hid_generic 16384 0 > >> usbhid 53248 0 > >> hid 135168 4 i2c_hid,usbhid,hid_apple,hid_generic > >> uas 24576 0 > >> usb_storage 69632 1 uas > >> ahci 40960 2 > >> libahci 32768 1 ahci > > > > Could you also share the output of: > > > > rfkill list all > > > >> April 6, 2019 8:27 PM, "G=C3=A1bor Boskovits" wr= ote: > >> > >> Hello, > >> > >> ezt =C3=ADrta (id=C5=91pont: 2019. =C3=A1pr. 5.,= P, 15:57): > >> > >> Hello! I am creating my own config. I've disabled networkmanager-servi= ce-type, configured > >> wpa-supplicant (but have not yet configured dhcpcd, cause it needs net= working 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 inter= face. > >> 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 n= ot coveinent. > >> > >> I tried this lines as I've got from here > >> https://superuser.com/questions/819547/how-do-i-stop-rfkill-module-fro= m-hardblocking-my-wifi-without > >> rfkill-command : > >> > >> (kernel-arguments '("modprobe.blacklist=3Dpcspkr,snd_pcsp,wmi,pata_acp= i" > >> "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 b= lacklist, 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