Ralink RT2870/RT3070 - wifi adaptor does not work after rebooting

this is the results :

[email protected] in ~ took 2ms
λ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 18f8:0f97 [Maxxter] Optical Gaming Mouse [Xtrem]
Bus 001 Device 003: ID 1c4f:0082 SiGma Micro USB Keyboard
Bus 001 Device 002: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

[email protected]1 in ~ took 3ms
λ hwinfo --netcard --bluetooth | grep -Ei "(speed|hotplug|model|status|cmd|file|detected|driver:)" | grep -v "Config S"
Model: "Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"
Driver: "r8169"
Device File: enp3s0
Link detected: no
Driver Status: r8169 is active
Driver Activation Cmd: "modprobe r8169"
Model: "Ralink RT2870/RT3070 Wireless Adapter"
Hotplug: USB
Driver: "rt2800usb"
Device File: wlp1s0f0u1
Speed: 480 Mbps
Link detected: no
Driver Status: rt2800usb is active
Driver Activation Cmd: "modprobe rt2800usb"

[email protected] in ~ took 195ms
λ lsmod | sort
Module                  Size  Used by
acpi_cpufreq           32768  0
aesni_intel           380928  0
asus_wmi               65536  1 eeepc_wmi
blake2b_generic        20480  0
bpf_preload            16384  0
btrfs                1789952  2
ccp                   139264  0
cdrom                  81920  1 sr_mod
cfg80211             1089536  2 rt2x00lib,mac80211
crc32_pclmul           16384  0
crc32c_generic         16384  0
crc32c_intel           24576  3
crct10dif_pclmul       16384  1
cryptd                 28672  2 crypto_simd,ghash_clmulni_intel
crypto_simd            16384  1 aesni_intel
crypto_user            20480  0
edac_mce_amd           53248  0
eeepc_wmi              16384  0
fat                    90112  1 vfat
fuse                  180224  3
ghash_clmulni_intel    16384  0
gpio_amdpt             20480  0
gpio_generic           20480  1 gpio_amdpt
i2c_piix4              36864  0
intel_rapl_common      36864  1 intel_rapl_msr
intel_rapl_msr         20480  0
ip_tables              32768  0
ipmi_devintf           20480  0
ipmi_msghandler        86016  1 ipmi_devintf
irqbypass              16384  1 kvm
joydev                 28672  0
k10temp                16384  0
kvm                  1159168  0
ledtrig_audio          16384  1 snd_hda_codec_generic
libarc4                16384  1 mac80211
libcrc32c              16384  1 btrfs
libphy                176128  3 r8169,mdio_devres,realtek
mac80211             1286144  3 rt2x00lib,rt2x00usb,rt2800lib
mac_hid                16384  0
mdio_devres            16384  1 r8169
mousedev               24576  0
nvidia              39137280  1570 nvidia_uvm,nvidia_modeset
nvidia_drm             73728  10
nvidia_modeset       1163264  26 nvidia_drm
nvidia_uvm           2605056  0
pinctrl_amd            32768  0
platform_profile       16384  1 asus_wmi
qrtr                   49152  4
r8169                 122880  0
raid6_pq              122880  1 btrfs
rapl                   16384  0
realtek                36864  1
rfkill                 32768  7 rt2x00lib,asus_wmi,cfg80211
rng_core               16384  2 ccp,tpm
rt2800lib             184320  1 rt2800usb
rt2800usb              32768  0
rt2x00lib              94208  3 rt2800usb,rt2x00usb,rt2800lib
rt2x00usb              28672  1 rt2800usb
snd                   135168  16 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
snd_hda_codec         188416  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_codec_generic   110592  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     90112  1
snd_hda_codec_realtek   184320  1
snd_hda_core          122880  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hda_intel          61440  2
snd_hrtimer            16384  1
snd_hwdep              16384  1 snd_hda_codec
snd_intel_dspcfg       32768  1 snd_hda_intel
snd_intel_sdw_acpi     20480  1 snd_intel_dspcfg
snd_pcm               176128  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_seq                94208  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
snd_seq_dummy          16384  0
snd_timer              49152  3 snd_seq,snd_hrtimer,snd_pcm
soundcore              16384  1 snd
sp5100_tco             20480  0
sparse_keymap          16384  1 asus_wmi
sr_mod                 28672  0
tpm                    98304  3 tpm_tis,tpm_crb,tpm_tis_core
tpm_crb                24576  0
tpm_tis                16384  0
tpm_tis_core           32768  1 tpm_tis
uinput                 24576  0
usbhid                 77824  0
vfat                   24576  1
video                  57344  1 asus_wmi
wmi                    40960  2 asus_wmi,wmi_bmof
wmi_bmof               16384  0
x_tables               61440  1 ip_tables
xhci_pci               24576  0
xhci_pci_renesas       24576  1 xhci_pci
xor                    24576  1 btrfs
zram                   40960  2

[email protected] in ~ took 2ms
λ rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

[email protected] in ~ took 2ms
λ sudo dmesg | grep -Ei 'wl|rt2800usb'
[sudo] password for mahdi2421:
[    5.124393] usb 1-1: Product: 802.11 n WLAN
[    8.433037] usbcore: registered new interface driver rt2800usb
[    8.434779] rt2800usb 1-1:1.0 wlp1s0f0u1: renamed from wlan0

[email protected] in ~ as 🧙 took 3s
λ bash -c "nmcli networking off; sudo systemctl stop NetworkManager; sudo ip link set wlp1s0f0u5 down; sleep 1; sudo modprobe -r rt2800usb; sleep 3; sudo modprobe rt2800usb; sleep 1; sudo ip link set wlp1s0f0u5 up; sleep 1; sudo systemctl start NetworkManager; nmcli networking on; sleep 1; nmcli r wifi off; sleep 1; nmcli r wifi on"
Cannot find device "wlp1s0f0u5"
Cannot find device "wlp1s0f0u5"

[email protected] in ~ as 🧙 took 19s

No, I now test my ralink wifi adapter and it is working after replug.
I thought that rtl driver makes my ralink adaptor working but after all I know just my wifi adapter find the networks a little bit later when I replug it and because that I thought it is not working because not showing my networks.
but as I say I test it again and wait some seconds and it shows wifi.
however my main problem( wifi adapter not working normally after reboot) is not fixed yet.

The adapter name changed, try this:

bash -c "nmcli networking off; sudo systemctl stop NetworkManager; sudo ip link set wlp1s0f0u1 down; sleep 1; sudo modprobe -r rt2800usb; sleep 3; sudo modprobe rt2800usb; sleep 1; sudo ip link set wlp1s0f0u1 up; sleep 1; sudo systemctl start NetworkManager; nmcli networking on; sleep 1; nmcli r wifi off; sleep 1; nmcli r wifi on"
1 Like

Close all open programs first then try this command as well:

bash -c "nmcli networking off; sudo systemctl stop NetworkManager; sudo ip link set wlp1s0f0u1 down; sleep 1; sudo rmmod asus_wmi;  sleep 1; sudo modprobe -r rt2800usb; sleep 3; sudo modprobe rt2800usb; sleep 1; sudo ip link set wlp1s0f0u1 up; sleep 1; sudo systemctl start NetworkManager;   sleep 1; nmcli networking on; sleep 1; nmcli r wifi off; sleep 1; nmcli r wifi on"

I run that code but it says it cant find device

[email protected] in ~ as 🧙 took 24s
λ bash -c "nmcli networking off; sudo systemctl stop NetworkManager; sudo ip link set wlp1s0f0u1 down; sleep 1; sudo modprobe -r rt2800usb; sleep 3; sudo modprobe rt2800usb; sleep 1; sudo ip link set wlp1s0f0u1 up; sleep 1; sudo systemctl start NetworkManager; nmcli networking on; sleep 1; nmcli r wifi off; sleep 1; nmcli r wifi on"

Cannot find device "wlp1s0f0u1"
Cannot find device "wlp1s0f0u1"

[email protected] in ~ as 🧙 took 20s
λ bash -c "nmcli networking off; sudo systemctl stop NetworkManager; sudo ip link set wlp1s0f0u1 down; sleep 1; sudo rmmod asus_wmi;  sleep 1; sudo modprobe -r rt2800usb; sleep 3; sudo modprobe rt2800usb; sleep 1; sudo ip link set wlp1s0f0u1 up; sleep 1; sudo systemctl start NetworkManager;   sleep 1; nmcli networking on; sleep1; nmcli r wifi off; sleep 1; nmcli r wifi on"

Cannot find device "wlp1s0f0u1"
rmmod: ERROR: Module asus_wmi is in use by: eeepc_wmi
Cannot find device "wlp1s0f0u1"

then I ran ip a s command on terminal and it shows this

[email protected] in ~ as 🧙 took 22s
λ ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host 
valid_lft forever preferred_lft forever
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 0c:9d:92:12:15:15 brd ff:ff:ff:ff:ff:ff
7: wlp1s0f0u13: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether f4:3e:61:65:79:3b brd ff:ff:ff:ff:ff:ff

As you see my device name is wlp1s0f0u13 and I ran edit command for it and ran .

[email protected] in ~ as 🧙 took 19s
λ bash -c "nmcli networking off; sudo systemctl stop NetworkManager; sudo ip link set wlp1s0f0u13 down; sleep1; sudo modprobe -r rt2800usb; sleep 3; sudo modprobe rt2800usb; sleep 1; sudo ip link set wlp1s0f0u13 up; sleep 1; sudo systemctl start NetworkManager; nmcli networking on; sleep 1; nmcli r wifi off; sleep 1; nmcli r wifi on"

[email protected] in ~ as 🧙 took 20s
λ bash -c "nmcli networking off; sudo systemctl stop NetworkManager; sudo ip link set wlp1s0f0u13 down; sleep1; sudo rmmod asus_wmi;  sleep 1; sudo modprobe -r rt2800usb; sleep 3; sudo modprobe rt2800usb; sleep 1; sudoip link set wlp1s0f0u13 up; sleep 1; sudo systemctl start NetworkManager;   sleep 1; nmcli networking on; sleep 1; nmcli r wifi off; sleep 1; nmcli r wifi on"


rmmod: ERROR: Module asus_wmi is in use by: eeepc_wmi

how can I fix the last error ?

It is unlikely to make any real difference anyways. I only ran that command on the off chance asus_wmi was interfering in some way.

Edit:


Things to try:

Cold boot, then warm (re)boot, then remove and reinsert the USB WiFi dongle. Does the wifi work after doing this?

Try to use a USB 2.0 port instead of 3.0 (and vice versa).


Are you using a USB hub to power the USB WiFi dongle?


1 Like

excuse me, what do you mean from cold boot and warm reboot?
No I dont use hub and I pluged my wifi dongle direct to usb port.
About the wifi driver , how can I use ndiswrapper ?
I Install it but how can I use windows driver for linux or how can I work with it to install driver for my wifi dongle.
I think my wifi dongle problem is from kernel or driver problem that doesnt work correctly.

:musical_note:Don't. Don't do it. Don't break my h-e-a-r-t. :musical_note:
(The Band, man) :wink:

It's been too long; Linux has grown too much. Please please beg, borrow or steal something that does not require that hacky shit. We gave that up a long time ago, really.

regards

Yes, you are correct, this isn't really a Garuda specific issue. It is likely kernel/driver related, but considering the age of this adapter I doubt this will ever be addressed at this point.

I'm not sure why you would find this hard to understand.

  1. Cold boot.
  2. Once the computer is running initiate a warm boot (reboot).
  3. Once the computer has restarted remove the wifi dongle from the USB port.
  4. Reinsert the wifi dongle into the USB port.

This is simply a test to see if after that sequence you can then run the wifi after a reboot by simply removing/reinserting your adapter. While nowhere near a fix, once you had finished the initial cold boot/reboot, you could then restart anytime and use your wifi by simply reinserting it.

Or as @c00ter mentioned, and I myself stated on your other threads, buy another adapter.

3 Likes

Yes I knew the problem isn't from garuda linux because on other distros I Have this problem too.

Yes ,After I ask you , then I decide to google what is cold boot and warm boot exactly and I do this :
first I shutdown my pc from garuda linux and then turn on pc with the case button .
And wifi is working in this mode as I know( as i said I didnt have problem when I cold boot).
then I restart my pc and go to garuda linux and then again I see my wifi working and it connect to it?!
because I have problem in warm boot and always it is not working as I tested.
just maybe two thing fix the problem.
1- first is the ipv6 disabling
2- and second maybe from mac address random disable

update : I just warm boot now ( for sure about that my wifi adapter problem fix in warm boot ) , and unfortunately it isnt working .
just it works after warm boot in this case I think : you do cold boot then warm boot for 2 or 3 mins after you are in desktop and it is working.
because as I say, now I warm boot after first warm boot and it is not working and I need replug.
after all thanks from your and other member and admins help.
I decide to use my other wifi dongle as it is seem to work good on linux.
excuse me if I ask much question or dont attention to someting.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.