Solution to failure to start wireless network card after CentOS is started

Time:2020-12-5

During the Spring Festival holiday, I had nothing to do at home. I transformed my ASUS laptop into a home server. After minimal installation of CentOS 7.7, the wireless network card cannot be started, and it is strange that the wireless network card will resume to boot after a sleep.

After starting the system:

[[email protected] ~]# rfkill list
0: asus-wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: asus-bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: no
2: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: yes

Output information displayphy0 hard blockedhard blockedThe hardware layer shut down the device, unable to pass throughrfkill unblock allSolution.

Key combinationfn + f1After sleep and wake up:

[[email protected] ~]# rfkill list
0: asus-wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: asus-bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: no
2: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no

As you can see, this is the network card has been activated. Each time the system is started, it needs to go through a sleep wake-up process before the wireless network card can start normally, which is obviously very troublesome. However, after a lot of online access to information can not be solved, including the recovery of BIOS settings, and so onfn + f2The combination of keys to open WiFi will no longer work under the newly installed CentOS.

Finally, a solution is found here:

echo "options asus_nb_wmi wapf=4" > /etc/modprobe.d/asus.conf

Create a configuration file under / etc / modprobe. D /, and the content isoptions asus_nb_wmi wapf=4, and thenrebootJust restart it.

The specific principle is not very clear, hope to know friends can leave a message to tell, also hope this article can help some people in the future.


The following is my computer system information for reference:

Network equipment:

[[email protected] ~]# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp4s0f2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether ac:22:0b:17:7f:c2 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
    link/ether 24:fd:52:c5:93:05 brd ff:ff:ff:ff:ff:ff

Network card driver information:

[[email protected] ~]# ethtool -i wlp3s0
Driver: ath9k ා driver name
version: 3.10.0-1062.9.1.el7.x86_64
firmware-version: N/A
expansion-rom-version: 
bus-info: 0000:03:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

ASUS notebook signal:

[[email protected] ~]# cat /sys/class/dmi/id/product_name 
X550VB

Wireless network card information:

[[email protected] ~]# lspci | egrep -i 'wifi|wireless'
03:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
[[email protected] ~]# 
[[email protected] ~]# 
[[email protected] ~]# lspci -s 03:00.0 -v
03:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
    Subsystem: Lite-On Communications Inc Device 6627
    Flags: bus master, fast devsel, latency 0, IRQ 17
    Memory at f7900000 (64-bit, non-prefetchable) [size=512K]
    Expansion ROM at f7980000 [disabled] [size=64K]
    Capabilities: [40] Power Management version 2
    Capabilities: [50] MSI: Enable- Count=1/4 Maskable+ 64bit+
    Capabilities: [70] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Virtual Channel
    Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
    Kernel driver in use: ath9k
    Kernel modules: ath9k