From mboxrd@z Thu Jan 1 00:00:00 1970 From: znavko@disroot.org Subject: Re: disable software blocking of wifi? Date: Sun, 07 Apr 2019 07:39:53 +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]:57105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hD2PI-0004Xa-TA for help-guix@gnu.org; Sun, 07 Apr 2019 03:40:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hD2PG-0005Z4-Ts for help-guix@gnu.org; Sun, 07 Apr 2019 03:40:00 -0400 Received: from knopi.disroot.org ([178.21.23.139]:55366) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hD2PG-0005X4-4M for help-guix@gnu.org; Sun, 07 Apr 2019 03:39:58 -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==?= Cc: Help Guix Thank you, Ga=CC=81bor Boskovits, for being awesome! I've tried this agai= n and helped. Previously it was strange for me not to see wlp2s0. But I d= o it again and I have Internet automatically after boot.=0A=0AI did exact= ly this: blacklisted ideapad_laptop, reconfigured, rebooted. And have Int= ernet.=0A=0A# gedit /etc/config.scm=0A...=0A(operating-system=0A...=0A (k= ernel-arguments '("modprobe.blacklist=3Dpcspkr,snd_pcsp,wmi,bluetooth,pat= a_acpi,ideapad_laptop"))=0A)=0A=0A# guix system reconfigure=0A# reboot=0A= =0AAfter reboot I see=0A=0A$ rfkill list all=0A0: phy0: Wireless LAN=0A S= oft blocked: no=0A Hard blocked: no=0A=0A$ ping gnu.org=0APING gnu.org (2= 09.51.188.148): 56 data bytes=0A64 bytes from 209.51.188.148: icmp_seq=3D= 0 ttl=3D53 time=3D156.678 ms=0A64 bytes from 209.51.188.148: icmp_seq=3D1= ttl=3D53 time=3D154.375 ms=0A^C--- gnu.org ping statistics ---=0A3 packe= ts transmitted, 2 packets received, 33% packet loss=0Around-trip min/avg/= max/stddev =3D 154.375/155.526/156.678/1.152 ms=0A =0A=0ADo I need to rew= rite my config with phy0 interface instead of wlp2s0?=0A=0A(wpa-supplican= t-service-type config =3D>=0A (wpa-supplicant-confi= guration=0A (interface "wlp2s0")=0A = (config-file "/etc/wpa_supplicant/wpa_supplicant.conf")))=0A= =0AAlso do I need blacklist wmi and pata_acpi?=0A=0AWhy I have not ethern= et interface now?=0A=0A=0AApril 6, 2019 9:21 PM, "G=C3=A1bor Boskovits" <= boskovits@gmail.com> wrote:=0A=0A> Hello,=0A> =0A> e= zt =C3=ADrta (id=C5=91pont: 2019. =C3=A1pr. 6., Szo, 23:04):=0A> =0A>> rf= kill list all=0A>> 0: ideapad_wlan: Wireless LAN=0A>> Soft blocked: no=0A= >> Hard blocked: no=0A>> 1: phy0: Wireless LAN=0A>> Soft blocked: no=0A>>= Hard blocked: no=0A>> 2: ideapad_bluetooth: Bluetooth=0A>> Soft blocked:= yes=0A>> Hard blocked: no=0A> =0A> Thanks. I looked a bit around, and so= me seems to be solving by blacklisting=0A> ideapad_laptop (which I see lo= aded)=0A> acer-wmi (I don't see this loaded).=0A> =0A> Could you try blac= klisting ideapad_laptop, and see if it helps?=0A> =0A>> April 6, 2019 8:4= 9 PM, "G=C3=A1bor Boskovits" wrote:=0A>> =0A>> Hell= o,=0A>> =0A>> ezt =C3=ADrta (id=C5=91pont: 2019. =C3= =A1pr. 6., Szo, 22:36):=0A>> =0A>> Yes. This is my hardware. Yes, I do th= ink about writing my own service unlocking wifi. But I have a=0A>> though= t that it will be impossible to start wpa-supplicant after my own service= , on shepherd it=0A>> will be kind of hack. I seek guru's support.=0A>> = =0A>> $ lspci=0A>> 00:00.0 Host bridge: Intel Corporation Atom Processor = Z36xxx/Z37xxx Series SoC Transaction Register=0A>> (rev 0e)=0A>> 00:02.0 = VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx= Series Graphics &=0A>> Display (rev 0e)=0A>> 00:13.0 SATA controller: In= tel Corporation Atom Processor E3800 Series SATA AHCI Controller (rev=0A>= > 0e)=0A>> 00:1a.0 Encryption controller: Intel Corporation Atom Processo= r Z36xxx/Z37xxx Series Trusted=0A>> Execution Engine (rev 0e)=0A>> 00:1b.= 0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Hig= h Definition Audio=0A>> Controller (rev 0e)=0A>> 00:1c.0 PCI bridge: Inte= l Corporation Atom Processor E3800 Series PCI Express Root Port 1 (rev 0e= )=0A>> 00:1c.2 PCI bridge: Intel Corporation Atom Processor E3800 Series = PCI Express Root Port 3 (rev 0e)=0A>> 00:1c.3 PCI bridge: Intel Corporati= on Atom Processor E3800 Series PCI Express Root Port 4 (rev 0e)=0A>> 00:1= d.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series= USB EHCI (rev 0e)=0A>> 00:1f.0 ISA bridge: Intel Corporation Atom Proces= sor Z36xxx/Z37xxx Series Power Control Unit (rev=0A>> 0e)=0A>> 00:1f.3 SM= Bus: Intel Corporation Atom Processor E3800 Series SMBus Controller (rev = 0e)=0A>> 02:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wi= reless Network Adapter (rev 01)=0A>> 03:00.0 Ethernet controller: Realtek= Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit=0A>> Ether= net Controller (rev 10)=0A>> =0A>> $ lsmod=0A>> Module Size Used by=0A>> = ccm 20480 9=0A>> fuse 114688 2=0A>> snd_hda_codec_hdmi 57344 1=0A>> snd_h= da_codec_conexant 24576 1=0A>> snd_hda_codec_generic 77824 1 snd_hda_code= c_conexant=0A>> ledtrig_audio 16384 2 snd_hda_codec_generic,snd_hda_codec= _conexant=0A>> intel_rapl 24576 0=0A>> intel_soc_dts_thermal 20480 0=0A>>= intel_soc_dts_iosf 20480 1 intel_soc_dts_thermal=0A>> intel_powerclamp 2= 0480 0=0A>> coretemp 20480 0=0A>> kvm 651264 0=0A>> irqbypass 16384 1 kvm= =0A>> punit_atom_debug 16384 0=0A>> cmdlinepart 16384 0=0A>> rtsx_usb_ms = 24576 0=0A>> intel_spi_platform 16384 0=0A>> intel_spi 24576 1 intel_spi_= platform=0A>> memstick 20480 1 rtsx_usb_ms=0A>> rtsx_usb_sdmmc 28672 0=0A= >> spi_nor 45056 1 intel_spi=0A>> mtd 65536 3 cmdlinepart,intel_spi=0A>> = iTCO_wdt 16384 0=0A>> iTCO_vendor_support 16384 1 iTCO_wdt=0A>> crct10dif= _pclmul 16384 1=0A>> crc32_pclmul 16384 0=0A>> arc4 16384 2=0A>> uvcvideo= 94208 0=0A>> ath9k 155648 0=0A>> videobuf2_vmalloc 20480 1 uvcvideo=0A>>= videobuf2_memops 20480 1 videobuf2_vmalloc=0A>> ath9k_common 24576 1 ath= 9k=0A>> videobuf2_v4l2 24576 1 uvcvideo=0A>> ath9k_hw 479232 2 ath9k_comm= on,ath9k=0A>> joydev 24576 0=0A>> ghash_clmulni_intel 16384 0=0A>> cryptd= 24576 1 ghash_clmulni_intel=0A>> videobuf2_common 45056 2 videobuf2_v4l2= ,uvcvideo=0A>> ath 32768 3 ath9k_common,ath9k,ath9k_hw=0A>> videodev 2048= 00 3 videobuf2_v4l2,uvcvideo,videobuf2_common=0A>> i915 1548288 13=0A>> m= edia 49152 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common=0A>> rtsx_= usb 24576 2 rtsx_usb_sdmmc,rtsx_usb_ms=0A>> usbmouse 16384 0=0A>> usbkbd = 16384 0=0A>> mac80211 839680 1 ath9k=0A>> input_leds 16384 0=0A>> ath3k 2= 4576 0=0A>> hci_uart 122880 0=0A>> btusb 49152 0=0A>> cec 45056 1 i915=0A= >> btqca 20480 1 hci_uart=0A>> btrtl 20480 2 hci_uart,btusb=0A>> btbcm 16= 384 2 hci_uart,btusb=0A>> snd_hda_intel 45056 6=0A>> btintel 24576 2 hci_= uart,btusb=0A>> bluetooth 561152 7 btrtl,btqca,btintel,hci_uart,btbcm,ath= 3k,btusb=0A>> drm_kms_helper 167936 1 i915=0A>> snd_hda_codec 135168 4=0A= >> snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hd= a_intel=0A>> psmouse 151552 0=0A>> ideapad_laptop 36864 0=0A>> snd_hda_co= re 86016 5=0A>> snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_code= c_hdmi,snd_hda_intel,snd_hda_codec=0A>> serio_raw 20480 0=0A>> lpc_ich 24= 576 0=0A>> r8169 81920 0=0A>> cfg80211 692224 4 ath9k_common,ath9k,ath,ma= c80211=0A>> i2c_i801 32768 0=0A>> sparse_keymap 16384 1 ideapad_laptop=0A= >> realtek 20480 0=0A>> drm 430080 9 drm_kms_helper,i915=0A>> wmi 32768 1= ideapad_laptop=0A>> snd_hwdep 20480 1 snd_hda_codec=0A>> i2c_algo_bit 16= 384 1 i915=0A>> fb_sys_fops 16384 1 drm_kms_helper=0A>> syscopyarea 16384= 1 drm_kms_helper=0A>> snd_pcm 106496 4 snd_hda_codec_hdmi,snd_hda_intel,= snd_hda_codec,snd_hda_core=0A>> snd_timer 40960 1 snd_pcm=0A>> sysfillrec= t 16384 1 drm_kms_helper=0A>> sysimgblt 16384 1 drm_kms_helper=0A>> snd 8= 6016 20=0A>> snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_h= dmi,snd_hwdep,snd_hda_intel,snd_hda_code=0A>> ,snd_timer,snd_pcm=0A>> ecd= h_generic 28672 1 bluetooth=0A>> video 45056 2 ideapad_laptop,i915=0A>> s= oundcore 16384 1 snd=0A>> i2c_hid 28672 0=0A>> mei_txe 24576 0=0A>> rfkil= l_gpio 16384 0=0A>> mei 106496 1 mei_txe=0A>> pwm_lpss_platform 16384 0= =0A>> pwm_lpss 16384 1 pwm_lpss_platform=0A>> mac_hid 16384 0=0A>> virtio= _rng 16384 0=0A>> virtio_console 32768 0=0A>> virtio_net 53248 0=0A>> vir= tio_blk 20480 0=0A>> virtio_balloon 24576 0=0A>> virtio_pci 24576 0=0A>> = virtio 16384 6 virtio_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=0A>> isci 143360 0=0A>> libsas = 86016 1 isci=0A>> scsi_transport_sas 40960 2 isci,libsas=0A>> pata_atiixp= 16384 0=0A>> nls_iso8859_1 16384 0=0A>> wp512 36864 0=0A>> serpent_gener= ic 32768 0=0A>> xts 16384 0=0A>> dm_crypt 40960 0=0A>> hid_apple 16384 0= =0A>> hid_generic 16384 0=0A>> usbhid 53248 0=0A>> hid 135168 4 i2c_hid,u= sbhid,hid_apple,hid_generic=0A>> uas 24576 0=0A>> usb_storage 69632 1 uas= =0A>> ahci 40960 2=0A>> libahci 32768 1 ahci=0A>> =0A>> Could you also sh= are the output of:=0A>> =0A>> rfkill list all=0A>> =0A>> April 6, 2019 8:= 27 PM, "G=C3=A1bor Boskovits" wrote:=0A>> =0A>> Hel= lo,=0A>> =0A>> ezt =C3=ADrta (id=C5=91pont: 2019. = =C3=A1pr. 5., P, 15:57):=0A>> =0A>> Hello! I am creating my own config. I= 've disabled networkmanager-service-type, configured=0A>> wpa-supplicant = (but have not yet configured dhcpcd, cause it needs networking service).= =0A>> Guix reconfigures my system normally.=0A>> =0A>> But during boot th= ere is a message: rfkill: WLAN soft blocked=0A>> And that is why wpa-supp= licant fails:=0A>> =0A>> # reboot=0A>> # dhclient -v wlp2s0=0A>> Internet= Systems Consortium DHCP Client 4.4.1=0A>> Copyright 2004-2018 Internet S= ystems Consortium.=0A>> All rights reserved.=0A>> For info, please visit = https://www.isc.org/software/dhcp=0A>> =0A>> RTNETLINK answers: Operation= not possible due to RF-kill=0A>> Listening on LPF/wlp2s0/xx:xx:xx:xx:55= =0A>> Sending on LPF/wlp2s0/xx:xx:xx:xx:55=0A>> Sending on Socket/fallbac= k=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 3= 00 byte long packet over wlp2s0 interface.=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 droppe= d:0 overruns:0 frame:0=0A>> TX packets:0 errors:0 dropped:0 overruns:0 ca= rrier:0=0A>> collisions:0 txqueuelen:1000=0A>> RX bytes:0 TX bytes:0=0A>>= =0A>> # rfkill list all=0A>> 0: ideapad_wlan: Wireless LAN=0A>> Soft blo= cked: 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-supplicant=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 this lines as I've got from here=0A>>= https://superuser.com/questions/819547/how-do-i-stop-rfkill-module-from-= hardblocking-my-wifi-without=0A>> rfkill-command :=0A>> =0A>> (kernel-arg= uments '("modprobe.blacklist=3Dpcspkr,snd_pcsp,wmi,pata_acpi"=0A>> "modpr= obe.options.rfkill.master_switch_mode=3D2"=0A>> "modprobe.options.rfkill.= default_state=3D1"))=0A>> =0A>> But adding 'wmi,pata_acpi ' but not helpe= d. If add ideapad_laptop to blacklist, then rfkill does=0A>> not see inte= rfaces 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 w= lan?=0A>> =0A>> It should not just block it, unless somthing is requestin= g it to do so.=0A>> Do you have any related errors or warnings earlier?= =0A>> Also, can you provide some hardware details?=0A>> =0A>> It also see= ms to be possible to work around this, by running 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