Make wifi networks available without reboot
by salmanahmed from LinuxQuestions.org on (#6D04S)
Hi
One of my laptops is having an issue with wifi networks detection. The laptop is installed with manjaro kde (linux 6.4). Sometimes, when I power-on the laptop, it does not detect any wifi network (see attached screenshot). During this state, I ran the following commands and have found that the network card is properly detected by the system:
Code:[sal:lap:~]lspci -v
07:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
DeviceName: Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Ad
Subsystem: Hewlett-Packard Company Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Adapter
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at c3510000 (32-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: rt2800pci
Kernel modules: rt2800pciCode:[sal:lap:~]ip link
5: wlo1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
link/ether c8:d4:01:61:cd:19 brd ff:ff:ff:ff:ff:ff permaddr 78:55:22:cd:52:12
altname wlp7s0f0Although, a system reboot fixes the problem, however, I am interested in fixing it without reboot. So, I tried the following:
1. Restart network service:
Code:systemctl restart NetworkManager.service2. Make the wifi card down and up:
Code:ip link set wlo1 down;ip link set wlo1 up3. Run the following command to remove the card and then make system rescan it:
Code:echo "1" > /sys/devices/pci0000:00/0000:00:1c.0/remove;sleep 1;echo "1" > /sys/bus/pci/rescanHowever, nothing makes the wifi networks available again. Can you please guide me that how can I fix this problem without rebooting my system?
PS: As the system reboot fixed the above mentioned problem, so is there any way to simulate it? Or re-create it? So, that I can apply the solution provided by you.
Thanks
Attached Thumbnails
One of my laptops is having an issue with wifi networks detection. The laptop is installed with manjaro kde (linux 6.4). Sometimes, when I power-on the laptop, it does not detect any wifi network (see attached screenshot). During this state, I ran the following commands and have found that the network card is properly detected by the system:
Code:[sal:lap:~]lspci -v
07:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
DeviceName: Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Ad
Subsystem: Hewlett-Packard Company Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Adapter
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at c3510000 (32-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: rt2800pci
Kernel modules: rt2800pciCode:[sal:lap:~]ip link
5: wlo1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
link/ether c8:d4:01:61:cd:19 brd ff:ff:ff:ff:ff:ff permaddr 78:55:22:cd:52:12
altname wlp7s0f0Although, a system reboot fixes the problem, however, I am interested in fixing it without reboot. So, I tried the following:
1. Restart network service:
Code:systemctl restart NetworkManager.service2. Make the wifi card down and up:
Code:ip link set wlo1 down;ip link set wlo1 up3. Run the following command to remove the card and then make system rescan it:
Code:echo "1" > /sys/devices/pci0000:00/0000:00:1c.0/remove;sleep 1;echo "1" > /sys/bus/pci/rescanHowever, nothing makes the wifi networks available again. Can you please guide me that how can I fix this problem without rebooting my system?
PS: As the system reboot fixed the above mentioned problem, so is there any way to simulate it? Or re-create it? So, that I can apply the solution provided by you.
Thanks
Attached Thumbnails