From: <znavko@tutanota.com>
To: Znavko <znavko@tutanota.com>
Cc: Help Guix <help-guix@gnu.org>
Subject: Re: disable software blocking of wifi?
Date: Fri, 5 Apr 2019 16:19:03 +0200 (CEST) [thread overview]
Message-ID: <LbhrUww--3-1@tutanota.com> (raw)
In-Reply-To: <LbhVgtC--3-1@tutanota.com-LbhmRcf----1>
[-- 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 --]
next parent reply other threads:[~2019-04-05 14:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <LbhVgtC--3-1@tutanota.com-LbhmRcf----1>
2019-04-05 14:19 ` znavko [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=LbhrUww--3-1@tutanota.com \
--to=znavko@tutanota.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).