From mboxrd@z Thu Jan 1 00:00:00 1970 From: znavko@disroot.org Subject: Re: disable software blocking of wifi? Date: Sat, 06 Apr 2019 20:36:04 +0000 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]:50958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCs2y-0003Ci-Ub for help-guix@gnu.org; Sat, 06 Apr 2019 16:36:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCs2x-0007kc-5y for help-guix@gnu.org; Sat, 06 Apr 2019 16:36:16 -0400 Received: from knopi.disroot.org ([178.21.23.139]:52192) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCs2w-0007dK-8x for help-guix@gnu.org; Sat, 06 Apr 2019 16:36:15 -0400 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: =?utf-8?B?R8OhYm9yIEJvc2tvdml0cw==?= , znavko@tutanota.com Cc: Help Guix Yes. This is my hardware. Yes, I do think about writing my own service un= locking wifi. But I have a thought that it will be impossible to start wp= a-supplicant after my own service, on shepherd it will be kind of hack. I= seek guru's support.=0A=0A$ lspci=0A00:00.0 Host bridge: Intel Corporati= on Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 0e)= =0A00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z3= 6xxx/Z37xxx Series Graphics & Display (rev 0e)=0A00:13.0 SATA controller:= Intel Corporation Atom Processor E3800 Series SATA AHCI Controller (rev = 0e)=0A00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36= xxx/Z37xxx Series Trusted Execution Engine (rev 0e)=0A00:1b.0 Audio devic= e: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition = Audio Controller (rev 0e)=0A00:1c.0 PCI bridge: Intel Corporation Atom Pr= ocessor E3800 Series PCI Express Root Port 1 (rev 0e)=0A00:1c.2 PCI bridg= e: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 3 = (rev 0e)=0A00:1c.3 PCI bridge: Intel Corporation Atom Processor E3800 Ser= ies PCI Express Root Port 4 (rev 0e)=0A00:1d.0 USB controller: Intel Corp= oration Atom Processor Z36xxx/Z37xxx Series USB EHCI (rev 0e)=0A00:1f.0 I= SA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Co= ntrol Unit (rev 0e)=0A00:1f.3 SMBus: Intel Corporation Atom Processor E38= 00 Series SMBus Controller (rev 0e)=0A02:00.0 Network controller: Qualcom= m Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)=0A03:00.0 Et= hernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI = Express Gigabit Ethernet Controller (rev 10)=0A=0A$ lsmod=0AModule = Size Used by=0Accm 20480 9=0Afuse = 114688 2=0Asnd_hda_codec_hdmi 57344 1=0Asnd_hda_codec_con= exant 24576 1=0Asnd_hda_codec_generic 77824 1 snd_hda_codec_conex= ant=0Aledtrig_audio 16384 2 snd_hda_codec_generic,snd_hda_codec= _conexant=0Aintel_rapl 24576 0=0Aintel_soc_dts_thermal 20= 480 0=0Aintel_soc_dts_iosf 20480 1 intel_soc_dts_thermal=0Aintel_po= werclamp 20480 0=0Acoretemp 20480 0=0Akvm = 651264 0=0Airqbypass 16384 1 kvm=0Apunit_atom_deb= ug 16384 0=0Acmdlinepart 16384 0=0Artsx_usb_ms = 24576 0=0Aintel_spi_platform 16384 0=0Aintel_spi 2= 4576 1 intel_spi_platform=0Amemstick 20480 1 rtsx_usb_ms= =0Artsx_usb_sdmmc 28672 0=0Aspi_nor 45056 1 inte= l_spi=0Amtd 65536 3 cmdlinepart,intel_spi=0AiTCO_wdt = 16384 0=0AiTCO_vendor_support 16384 1 iTCO_wdt=0Acrct1= 0dif_pclmul 16384 1=0Acrc32_pclmul 16384 0=0Aarc4 = 16384 2=0Auvcvideo 94208 0=0Aath9k = 155648 0=0Avideobuf2_vmalloc 20480 1 uvcvideo=0Avideobuf2_m= emops 20480 1 videobuf2_vmalloc=0Aath9k_common 24576 1 = ath9k=0Avideobuf2_v4l2 24576 1 uvcvideo=0Aath9k_hw = 479232 2 ath9k_common,ath9k=0Ajoydev 24576 0=0Aghash_cl= mulni_intel 16384 0=0Acryptd 24576 1 ghash_clmulni_i= ntel=0Avideobuf2_common 45056 2 videobuf2_v4l2,uvcvideo=0Aath = 32768 3 ath9k_common,ath9k,ath9k_hw=0Avideodev = 204800 3 videobuf2_v4l2,uvcvideo,videobuf2_common=0Ai915 = 1548288 13=0Amedia 49152 4 videodev,videobuf2_v4l2= ,uvcvideo,videobuf2_common=0Artsx_usb 24576 2 rtsx_usb_sdm= mc,rtsx_usb_ms=0Ausbmouse 16384 0=0Ausbkbd = 16384 0=0Amac80211 839680 1 ath9k=0Ainput_leds = 16384 0=0Aath3k 24576 0=0Ahci_uart 1228= 80 0=0Abtusb 49152 0=0Acec 45056 1= i915=0Abtqca 20480 1 hci_uart=0Abtrtl = 20480 2 hci_uart,btusb=0Abtbcm 16384 2 hci_uart,btusb= =0Asnd_hda_intel 45056 6=0Abtintel 24576 2 hci_= uart,btusb=0Abluetooth 561152 7 btrtl,btqca,btintel,hci_uart= ,btbcm,ath3k,btusb=0Adrm_kms_helper 167936 1 i915=0Asnd_hda_codec= 135168 4 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_c= odec_hdmi,snd_hda_intel=0Apsmouse 151552 0=0Aideapad_lapto= p 36864 0=0Asnd_hda_core 86016 5 snd_hda_codec_generi= c,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec= =0Aserio_raw 20480 0=0Alpc_ich 24576 0=0Ar8= 169 81920 0=0Acfg80211 692224 4 ath9k_com= mon,ath9k,ath,mac80211=0Ai2c_i801 32768 0=0Asparse_keymap = 16384 1 ideapad_laptop=0Arealtek 20480 0=0Adrm = 430080 9 drm_kms_helper,i915=0Awmi = 32768 1 ideapad_laptop=0Asnd_hwdep 20480 1 snd_hda_codec= =0Ai2c_algo_bit 16384 1 i915=0Afb_sys_fops 16384 1= drm_kms_helper=0Asyscopyarea 16384 1 drm_kms_helper=0Asnd_pc= m 106496 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,= snd_hda_core=0Asnd_timer 40960 1 snd_pcm=0Asysfillrect = 16384 1 drm_kms_helper=0Asysimgblt 16384 1 drm_kms_= helper=0Asnd 86016 20 snd_hda_codec_generic,snd_hda_c= odec_conexant,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,sn= d_timer,snd_pcm=0Aecdh_generic 28672 1 bluetooth=0Avideo = 45056 2 ideapad_laptop,i915=0Asoundcore 16384 = 1 snd=0Ai2c_hid 28672 0=0Amei_txe 24576 0= =0Arfkill_gpio 16384 0=0Amei 106496 1 mei_= txe=0Apwm_lpss_platform 16384 0=0Apwm_lpss 16384 1 p= wm_lpss_platform=0Amac_hid 16384 0=0Avirtio_rng = 16384 0=0Avirtio_console 32768 0=0Avirtio_net 53= 248 0=0Avirtio_blk 20480 0=0Avirtio_balloon 24576 = 0=0Avirtio_pci 24576 0=0Avirtio 16384 6 vir= tio_rng,virtio_console,virtio_balloon,virtio_pci,virtio_blk,virtio_net=0A= virtio_ring 32768 6 virtio_rng,virtio_console,virtio_balloon,= virtio_pci,virtio_blk,virtio_net=0Aisci 143360 0=0Alibs= as 86016 1 isci=0Ascsi_transport_sas 40960 2 isci,l= ibsas=0Apata_atiixp 16384 0=0Anls_iso8859_1 16384 0= =0Awp512 36864 0=0Aserpent_generic 32768 0=0Axt= s 16384 0=0Adm_crypt 40960 0=0Ahid_app= le 16384 0=0Ahid_generic 16384 0=0Ausbhid = 53248 0=0Ahid 135168 4 i2c_hid,usbhid,hid_= apple,hid_generic=0Auas 24576 0=0Ausb_storage = 69632 1 uas=0Aahci 40960 2=0Alibahci = 32768 1 ahci=0A=0A=0A=0AApril 6, 2019 8:27 PM, "G=C3=A1bor Boskovits"= wrote:=0A=0A> Hello,=0A> =0A> ezt =C3=ADrta (id=C5=91pont: 2019. =C3=A1pr. 5., P, 15:57):=0A> =0A>> H= ello! I am creating my own config. I've disabled networkmanager-service-t= ype, configured=0A>> wpa-supplicant (but have not yet configured dhcpcd, = cause it needs networking service).=0A>> Guix reconfigures my system norm= ally.=0A>> =0A>> But during boot there is a message: rfkill: WLAN soft bl= ocked=0A>> And that is why wpa-supplicant fails:=0A>> =0A>> # reboot=0A>>= # dhclient -v wlp2s0=0A>> Internet Systems Consortium DHCP Client 4.4.1= =0A>> Copyright 2004-2018 Internet Systems Consortium.=0A>> All rights re= served.=0A>> For info, please visit https://www.isc.org/software/dhcp=0A>= > =0A>> RTNETLINK answers: Operation not possible due to RF-kill=0A>> Lis= tening on LPF/wlp2s0/xx:xx:xx:xx:55=0A>> Sending on LPF/wlp2s0/xx:xx:xx:x= x:55=0A>> Sending on Socket/fallback=0A>> DHCPREQUEST for 192.168.1.33 on= wlp2s0 to 255.255.255.255 port 67=0A>> send_packet: Network is down=0A>>= dhclient.c:2762: Failed to send 300 byte long packet over wlp2s0 interfa= ce.=0A>> receive_packet failed on wlp2s0: Network is down=0A>> ^C=0A>> = =0A>> # ifconfig=0A>> lo Link encap:Local Loopback=0A>> inet addr:127.0.0= .1 Bcast:0.0.0.0 Mask:255.0.0.0=0A>> UP LOOPBACK RUNNING MTU:65536 Metric= :1=0A>> RX packets:0 errors:0 dropped:0 overruns:0 frame:0=0A>> TX packet= s:0 errors:0 dropped:0 overruns:0 carrier:0=0A>> collisions:0 txqueuelen:= 1000=0A>> RX bytes:0 TX bytes:0=0A>> =0A>> # rfkill list all=0A>> 0: idea= pad_wlan: Wireless LAN=0A>> Soft blocked: yes=0A>> Hard blocked: no=0A>> = 1: ideapad_bluetooth: Bluetooth=0A>> Soft blocked: yes=0A>> Hard blocked:= no=0A>> 2: phy0: Wireless LAN=0A>> Soft blocked: yes=0A>> Hard blocked: = no=0A>> =0A>> # rfkill unblock wifi=0A>> =0A>> # herd restart wpa-supplic= ant=0A>> # dhclient -v wlp2s0=0A>> =0A>> So I need manually unblock wifi = and restart wpa-supplicant, but it's not coveinent.=0A>> =0A>> I tried th= is lines as I've got from here=0A>> https://superuser.com/questions/81954= 7/how-do-i-stop-rfkill-module-from-hardblocking-my-wifi-without=0A>> rfki= ll-command :=0A>> =0A>> (kernel-arguments '("modprobe.blacklist=3Dpcspkr,= snd_pcsp,wmi,pata_acpi"=0A>> "modprobe.options.rfkill.master_switch_mode= =3D2"=0A>> "modprobe.options.rfkill.default_state=3D1"))=0A>> =0A>> But a= dding 'wmi,pata_acpi ' but not helped. If add ideapad_laptop to blacklist= , then rfkill does=0A>> not see interfaces wlan and bluetooth.=0A>> =0A>>= # lsmod | grep -e wmi -e acpi=0A>> wmi 32768 1 ideapad_laptop=0A>> =0A>>= How to prevent rfkill blocking of wlan?=0A> =0A> It should not just bloc= k it, unless somthing is requesting it to do so.=0A> Do you have any rela= ted errors or warnings earlier?=0A> Also, can you provide some hardware d= etails?=0A> =0A> It also seems to be possible to work around this, by run= ning the=0A> rfkill command from a service before=0A> wpa-supplicant, but= that feels very much like a hack to me.=0A> =0A> Best regards,=0A> g_bor