unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* disable software blocking of wifi?
@ 2019-04-05 13:52 znavko
  2019-04-06 20:27 ` Gábor Boskovits
  2019-04-06 20:36 ` znavko
  0 siblings, 2 replies; 8+ messages in thread
From: znavko @ 2019-04-05 13:52 UTC (permalink / raw)
  To: Help Guix


[-- Attachment #1.1: Type: text/plain, Size: 2655 bytes --]

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/ <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 <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?

[-- Attachment #1.2: Type: text/html, Size: 5389 bytes --]

[-- Attachment #2: config-wpa-2.scm --]
[-- Type: text/x-scheme, Size: 4614 bytes --]

;;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

  


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: disable software blocking of wifi?
       [not found] <LbhVgtC--3-1@tutanota.com-LbhmRcf----1>
@ 2019-04-05 14:19 ` znavko
  0 siblings, 0 replies; 8+ messages in thread
From: znavko @ 2019-04-05 14:19 UTC (permalink / raw)
  To: Znavko; +Cc: Help Guix

[-- Attachment #1: Type: text/plain, Size: 5226 bytes --]

As described here https://ubuntuforums.org/showthread.php?t=1781350&p=10942349#post10942349 <https://ubuntuforums.org/showthread.php?t=1781350&p=10942349#post10942349>

need to do this:
sudo sh -c "echo 'options ath5k nohwcrypt' >/etc/modprobe.d/custom-wireless.conf"

So I tried this:
$ lsmod | grep ath
ath9k                 155648  0
ath9k_common           24576  1 ath9k
ath9k_hw              479232  2 ath9k_common,ath9k
ath                    32768  3 ath9k_common,ath9k,ath9k_hw
mac80211              839680  1 ath9k
cfg80211              692224  4 ath9k_common,ath9k,ath,mac80211
ath3k                  24576  0
bluetooth             561152  7 btrtl,btqca,btintel,hci_uart,btbcm,ath3k,btusb

$ modinfo ath9k
filename:       /run/booted-system/kernel/lib/modules/5.0.5-gnu/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko
license:        Dual BSD/GPL
description:    Support for Atheros 802.11n wireless LAN cards.
...
depends:        mac80211,ath9k_hw,ath9k_common,cfg80211,ath
retpoline:      Y
intree:         Y
name:           ath9k
vermagic:       5.0.5-gnu SMP mod_unload modversions 
parm:           debug:Debugging mask (uint)
parm:           nohwcrypt:Disable hardware encryption (int)
parm:           blink:Enable LED blink on activity (int)
parm:           led_active_high:Invert LED polarity (int)
parm:           btcoex_enable:Enable wifi-BT coexistence (int)
parm:           bt_ant_diversity:Enable WLAN/BT RX antenna diversity (int)
parm:           ps_enable:Enable WLAN PowerSave (int)
parm:           use_chanctx:Enable channel context for concurrency (int)
parm:           use_msi:Use MSI instead of INTx if possible (int)


# tail -n8 /etc/config.scm

 (kernel-arguments '("modprobe.blacklist=pcspkr,snd_pcsp,wmi,bluetooth,pata_acpi"
                     "modprobe.options.ath9k=nohwcrypt"))

);;end of operating-system

# guix system reconfigure# reboot

Also I have this in /var/log/messages :
Apr  5 16:56:40 localhost wpa_supplicant: Libgcrypt warning: missing initialization - please fix the application

 I do not know what to do?

Apr 5, 2019, 1:52 PM by znavko@tutanota.com:

> 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/ <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 <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?
>


[-- Attachment #2: Type: text/html, Size: 10088 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: disable software blocking of wifi?
  2019-04-05 13:52 disable software blocking of wifi? znavko
@ 2019-04-06 20:27 ` Gábor Boskovits
  2019-04-06 20:36 ` znavko
  1 sibling, 0 replies; 8+ messages in thread
From: Gábor Boskovits @ 2019-04-06 20:27 UTC (permalink / raw)
  To: znavko; +Cc: Help Guix

Hello,

<znavko@tutanota.com> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: disable software blocking of wifi?
  2019-04-05 13:52 disable software blocking of wifi? znavko
  2019-04-06 20:27 ` Gábor Boskovits
@ 2019-04-06 20:36 ` znavko
  2019-04-06 20:49   ` Gábor Boskovits
  2019-04-06 21:04   ` znavko
  1 sibling, 2 replies; 8+ messages in thread
From: znavko @ 2019-04-06 20:36 UTC (permalink / raw)
  To: Gábor Boskovits, znavko; +Cc: Help Guix

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" <boskovits@gmail.com> wrote:

> Hello,
> 
> <znavko@tutanota.com> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: disable software blocking of wifi?
  2019-04-06 20:36 ` znavko
@ 2019-04-06 20:49   ` Gábor Boskovits
  2019-04-06 21:04   ` znavko
  1 sibling, 0 replies; 8+ messages in thread
From: Gábor Boskovits @ 2019-04-06 20:49 UTC (permalink / raw)
  To: znavko; +Cc: Help Guix

Hello,

<znavko@disroot.org> ezt írta (időpont: 2019. ápr. 6., Szo, 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 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
>
>

Could you also share the output of:

rfkill list all


>
> April 6, 2019 8:27 PM, "Gábor Boskovits" <boskovits@gmail.com> wrote:
>
> > Hello,
> >
> > <znavko@tutanota.com> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: disable software blocking of wifi?
  2019-04-06 20:36 ` znavko
  2019-04-06 20:49   ` Gábor Boskovits
@ 2019-04-06 21:04   ` znavko
  2019-04-06 21:21     ` Gábor Boskovits
  2019-04-07  7:39     ` znavko
  1 sibling, 2 replies; 8+ messages in thread
From: znavko @ 2019-04-06 21:04 UTC (permalink / raw)
  To: Gábor Boskovits; +Cc: Help Guix

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


April 6, 2019 8:49 PM, "Gábor Boskovits" <boskovits@gmail.com> wrote:

> Hello,
> 
> <znavko@disroot.org> ezt írta (időpont: 2019. ápr. 6., Szo, 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 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_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,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
> 
> Could you also share the output of:
> 
> rfkill list all
> 
>> April 6, 2019 8:27 PM, "Gábor Boskovits" <boskovits@gmail.com> wrote:
>> 
>> Hello,
>> 
>> <znavko@tutanota.com> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: disable software blocking of wifi?
  2019-04-06 21:04   ` znavko
@ 2019-04-06 21:21     ` Gábor Boskovits
  2019-04-07  7:39     ` znavko
  1 sibling, 0 replies; 8+ messages in thread
From: Gábor Boskovits @ 2019-04-06 21:21 UTC (permalink / raw)
  To: znavko; +Cc: Help Guix

Hello,

<znavko@disroot.org> ezt írta (időpont: 2019. ápr. 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ábor Boskovits" <boskovits@gmail.com> wrote:
>
> > Hello,
> >
> > <znavko@disroot.org> ezt írta (időpont: 2019. ápr. 6., Szo, 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 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_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,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
> >
> > Could you also share the output of:
> >
> > rfkill list all
> >
> >> April 6, 2019 8:27 PM, "Gábor Boskovits" <boskovits@gmail.com> wrote:
> >>
> >> Hello,
> >>
> >> <znavko@tutanota.com> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: disable software blocking of wifi?
  2019-04-06 21:04   ` znavko
  2019-04-06 21:21     ` Gábor Boskovits
@ 2019-04-07  7:39     ` znavko
  1 sibling, 0 replies; 8+ messages in thread
From: znavko @ 2019-04-07  7:39 UTC (permalink / raw)
  To: Gábor Boskovits; +Cc: Help Guix

Thank you, Gábor Boskovits, for being awesome! I've tried this again and helped. Previously it was strange for me not to see wlp2s0. But I do it again and I have Internet automatically after boot.

I did exactly this: blacklisted ideapad_laptop, reconfigured, rebooted. And have Internet.

# gedit /etc/config.scm
...
(operating-system
...
 (kernel-arguments '("modprobe.blacklist=pcspkr,snd_pcsp,wmi,bluetooth,pata_acpi,ideapad_laptop"))
)

# guix system reconfigure
# reboot

After reboot I see

$ rfkill list all
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

$ ping gnu.org
PING gnu.org (209.51.188.148): 56 data bytes
64 bytes from 209.51.188.148: icmp_seq=0 ttl=53 time=156.678 ms
64 bytes from 209.51.188.148: icmp_seq=1 ttl=53 time=154.375 ms
^C--- gnu.org ping statistics ---
3 packets transmitted, 2 packets received, 33% packet loss
round-trip min/avg/max/stddev = 154.375/155.526/156.678/1.152 ms
 

Do I need to rewrite my config with phy0 interface instead of wlp2s0?

(wpa-supplicant-service-type config =>
                       (wpa-supplicant-configuration
                         (interface "wlp2s0")
                         (config-file "/etc/wpa_supplicant/wpa_supplicant.conf")))

Also do I need blacklist wmi and pata_acpi?

Why I have not ethernet interface now?


April 6, 2019 9:21 PM, "Gábor Boskovits" <boskovits@gmail.com> wrote:

> Hello,
> 
> <znavko@disroot.org> ezt írta (időpont: 2019. ápr. 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ábor Boskovits" <boskovits@gmail.com> wrote:
>> 
>> Hello,
>> 
>> <znavko@disroot.org> ezt írta (időpont: 2019. ápr. 6., Szo, 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 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_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,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
>> 
>> Could you also share the output of:
>> 
>> rfkill list all
>> 
>> April 6, 2019 8:27 PM, "Gábor Boskovits" <boskovits@gmail.com> wrote:
>> 
>> Hello,
>> 
>> <znavko@tutanota.com> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-04-07  7:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-05 13:52 disable software blocking of wifi? znavko
2019-04-06 20:27 ` Gábor Boskovits
2019-04-06 20:36 ` znavko
2019-04-06 20:49   ` Gábor Boskovits
2019-04-06 21:04   ` znavko
2019-04-06 21:21     ` Gábor Boskovits
2019-04-07  7:39     ` znavko
     [not found] <LbhVgtC--3-1@tutanota.com-LbhmRcf----1>
2019-04-05 14:19 ` znavko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).