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 own 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 Series SoC Transaction Register (rev 0e) 00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/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 Series 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 Series Power Control Unit (rev 0e) 00:1f.3 SMBus: Intel Corporation Atom Processor E3800 Series SMBus Controller (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/8168/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_hda_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_hda_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_hda_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_hwdep,snd_hda_intel,snd_hda_codec,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,virtio_blk,virtio_net virtio_ring 32768 6 virtio_rng,virtio_console,virtio_balloon,virtio_pci,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 April 6, 2019 8:27 PM, "Gábor Boskovits" <[email protected]> wrote: > Hello, > > <[email protected]> ezt írta (időpont: 2019. ápr. 5., P, 15: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 interface. >> 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=pcspkr,snd_pcsp,wmi,pata_acpi" >> "modprobe.options.rfkill.master_switch_mode=2" >> "modprobe.options.rfkill.default_state=1")) >> >> But adding 'wmi,pata_acpi ' 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 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
