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

Hello.
I have a problem with my wifi adaptor.
The problem is this : when I boot my pc ( from shutdown mode) all thing ok and my wifi adaptor finds the modems and It connect automatically to my network but when I restart from windows or linux to boot to the linux , then my wifi adaptor light is turned on after booting to linux but not finding the modems to connect.
I should say that I dont have any problem with this wifi adaptor on my windows 10 and 11.
And I should add this : I test other wifi adaptor and it works with no problems but this adaptor have problem after restart to boot to linux !
I should say that I had this problem in other distros too and in garuda I have problem in connecting to network( because the driver not installed on garuda like other distros) and one of the admins says to install rtw88-dkms-git and that problem fixed that it reconnect to net randomly).
but as I said I have problem after restart that my adaptor not find the modems and I should always replug my wifi adaptor to find my modems after restart mode.

System:
Kernel: 5.16.8-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=2adb3662-5c5c-40c0-8707-e5e5b172df3c rw [email protected]
quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
Desktop: KDE Plasma 5.24.0 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: ASUSTeK model: TUF X470-PLUS GAMING v: Rev X.0x
serial: <superuser required> UEFI: American Megatrends v: 5861
date: 08/10/2021
CPU:
Info: model: AMD Ryzen 7 2700X bits: 64 type: MT MCP arch: Zen+
family: 0x17 (23) model-id: 8 stepping: 2 microcode: 0x800820D
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 768 KiB desc: d-8x32 KiB; i-8x64 KiB L2: 4 MiB desc: 8x512 KiB
L3: 16 MiB desc: 2x8 MiB
Speed (MHz): avg: 4022 high: 4054 min/max: 2200/3700 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 4040 2: 4044
3: 4007 4: 4036 5: 4044 6: 4054 7: 4041 8: 4041 9: 3751 10: 4043 11: 4041
12: 4052 13: 4042 14: 4045 15: 4033 16: 4041 bogomips: 118169
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional,
STIBP: disabled, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GP104 [GeForce GTX 1070 Ti] vendor: Micro-Star MSI
driver: nvidia v: 510.47.03 alternate: nouveau,nvidia_drm bus-ID: 09:00.0
chip-ID: 10de:1b82 class-ID: 0300
Display: x11 server: X.Org 1.21.1.3 compositor: kwin_x11 driver:
loaded: nvidia unloaded: modesetting alternate: fbdev,nouveau,nv,vesa
display-ID: :0 screens: 1
Screen-1: 0 s-res: 1600x900 s-dpi: 90 s-size: 452x251mm (17.8x9.9")
s-diag: 517mm (20.4")
Monitor-1: HDMI-0 res: 1600x900 hz: 60 dpi: 92
size: 443x249mm (17.4x9.8") diag: 508mm (20")
OpenGL: renderer: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2
v: 4.6.0 NVIDIA 510.47.03 direct render: Yes
Audio:
Device-1: NVIDIA GP104 High Definition Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus-ID: 09:00.1 chip-ID: 10de:10f0
class-ID: 0403
Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel
v: kernel bus-ID: 0b:00.3 chip-ID: 1022:1457 class-ID: 0403
Sound Server-1: ALSA v: k5.16.8-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.45 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel port: f000
bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp3s0 state: down mac: <filter>
Device-2: Ralink RT2870/RT3070 Wireless Adapter type: USB
driver: rt2800usb bus-ID: 1-5:6 chip-ID: 148f:3070 class-ID: 0000
serial: <filter>
IF: wlp1s0f0u5 state: up mac: <filter>
Drives:
Local Storage: total: 2.05 TiB used: 12.38 GiB (0.6%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 250GB
size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 4B6Q scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
model: WD20EZRZ-00Z5HB0 size: 1.82 TiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
rev: 0A80 scheme: GPT
Partition:
ID-1: / raw-size: 40.64 GiB size: 40.64 GiB (100.00%)
used: 12.21 GiB (30.0%) fs: btrfs dev: /dev/sda4 maj-min: 8:4
ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
used: 576 KiB (0.1%) fs: vfat dev: /dev/sda6 maj-min: 8:6
ID-3: /home raw-size: 49.33 GiB size: 49.33 GiB (100.00%)
used: 178.5 MiB (0.4%) fs: btrfs dev: /dev/sdb5 maj-min: 8:21
ID-4: /var/log raw-size: 40.64 GiB size: 40.64 GiB (100.00%)
used: 12.21 GiB (30.0%) fs: btrfs dev: /dev/sda4 maj-min: 8:4
ID-5: /var/tmp raw-size: 40.64 GiB size: 40.64 GiB (100.00%)
used: 12.21 GiB (30.0%) fs: btrfs dev: /dev/sda4 maj-min: 8:4
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 31.26 GiB used: 1.8 MiB (0.0%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 43.0 C mobo: N/A gpu: nvidia temp: 58 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 28%
Info:
Processes: 364 Uptime: 35m wakeups: 0 Memory: 31.26 GiB
used: 3.03 GiB (9.7%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.1.0 Packages: pacman: 1334 lib: 335 Shell: fish v: 3.3.1
default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.12
Garuda (2.5.4-2):
System install date:     2022-02-10
Last full system update: 2022-02-11
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       Probably (Run as root to verify)
Snapshots:               Snapper
Failed units:            bluetooth-autoconnect.service

Running Windows in a dual boot can often cause wifi problems. You will need to ensure all wifi powersaving in Windows and fastboot are disabled. Search the forum for directions if you are unsure how to do that. Post your exact steps you took to do this.

Do you use bluetooth, because you have a failed bluetooth service listed in your inxi output.

Also be sure to test the LTS and mainline kernels and possibly others.

3 Likes

yes before I test other wifi adaptor Bus 001 Device 005: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter I thought like you that dual boot can cause problem.
in MT7601U adaptor I dont see problem after restart on linux and it is ok all the time I can say.
But with rt2870/rt3070 wifi adaptor I have problem after restart on linux.
I test lts kernel but nothing happen and not help me.
about linux kernel and mainline kernel , I want to test them but when I choose them on grub panel after boot my machine , they can't load the garuda linux and stuck at loading linux kernel black page.
power saving for wifi was turned off at windows device manager settings and fastboot is disabled from uefi settings.
Are you sure you give me a correct driver for my wifi adaptor?
before I install it I have problem in connecting to internet but after it was fixed but the main problem not fixed( I mean the problem that wifi not find net after restart).
I ask are you sure , because the driver likely for the 8822ce, de ,... models.
because in the below topic the who has the problem with his adaptor is other model :
Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter

And I should say that I dont have any bluetooth device at all and that problem because maybe I dont have bluetooth device.

This doesn't make much sense, Realtek drivers cannot be used for Railink/Mediatek wifi adapter's.

I have absolutely no idea what you are talking about. I did not recommend the rtl8822ce driver for your Ralink wifi adapter. You are confusing apples with oranges. Again, Realtek drivers will not work for Ralinink wifi adapter's. Just because the adapter models both start with the letters rt does not mean they are from the same company. An RTL adapter is Realtek, an adapter beginning with RT is from Ralink. They are completely different manufacturers using completely different drivers.

Do not install Realtek drivers for Ralink adapters, (and vice versa).

1 Like

yes I knew what you have said there.
but I thought you said that I should do the way you say in this topic

because you say there that you already posted this once yesterday here:

then you mean what when you said to me ,I already posted this once yesterday?
and what driver I should install for my wifi adaptor?
because in the below link its link for similar drivers not worked.( the link not shows any package on arch aur website)
https://bbs.archlinux.org/viewtopic.php?id=164042

OK buddy you are extremely confused and misunderstanding my quote on that thread.

I was telling you I don't provide support for Debian based OS's and to install Garuda before you make any help requests on the Garuda forum.

I was in no way recommending you to install any Realtek driver.

2 Likes

ok but now I am on garuda linux !
and because of that I make this topic.
the thing that was confusing me is that when I didnt install rtw88-dkms-git , my wifi adaptor connecting to internet but I think it was disconnecting and again connecting and connection not stable and disconnecting much and after I install that driver and then my wifi working well and it has just not working after reboots to garuda linux like that I see this behaviour on ubuntu too( I didnt install driver at ubuntu for wifi ) .
some mins ago I uninstalled rtw88-dkms-git and then reboot , then I see that my wifi adaptor not working at all !
even when I replug it.
what is the problem here ?
and what driver would you suggest?

It's giving you problems because of Windows. That's the long and short explanation.

Not a Garuda--or Linux--problem.

1 Like

I dont think so.
then why I dont see this problem on my other wifi adapter?

I don't know. How high is the sky?

Two different manufacturers, perhaps?

Do some research. Read, don't just ask open ended questions.

4 Likes

I would advise to use the adapter that works with Linux and discuss everything else with the manufacturer that does not.
We have no influence on driver software.

3 Likes

yes but I ask for that is there a driver for rt2870/rt3070 ralink corp. or not?
or a way that I try to maybe it helps me to fix this problem.

Read the manual for rt... , search in web, contact the manufacturer.
Garuda do not support dual boot with M$, but sometimes we can help, but sometimes not.

1 Like

Are we mixing different wifi adapter's into the conversation here, because the likelihood of a Realtek driver making any difference with a ralink adapter is slim and none.

2 Likes

I think you mean that rtw88-dkms-git cant make the ralink rt2870/rt3070 working?
but if you want I reinstall it again and say it is working or not after installation of that driver?
for me this is a question how my adapter working with driver ?!
after I uninstalled that , then my wifi not working with rt2870/rt3070 adapter!
is rtw88-dkms-git installed by default on garuda linux?

for now , this is the question.
why my ralink adapter working when I install rtw88-dkms-git ( realtek driver) but not working at all when I uninstalled that ?!

on ubuntu I see this behavior that my wifi adapter working but after restart that was not working and I need to replug that.
when I installed rtw88-dkms-git my wifi act like how in ubuntu.
and when I uninstalled it dont act like ubuntu and other distros.
because that it was question for me and I dont know what happend?!

This could be because the realtek driver blacklisted the kernel module bt2800usb.
In-fact in the initial inxi the module was loaded and the interface up.

Remember also to remove in Windows, not only BIOS, the fastboot, i.e. fast start or whatever the windows name

2 Likes

Your bios appears to be outdated, be sure your bios is the newest version available.

Do not keep referring to any other adapter on this thread anymore. I do not want to hear about this other adapter model again. We are only dealing with the adapter you were running when you ran the garuda-inxi command. Do not bring up any adapter other than the rt2870/rt3070 adapter listed in your inxi as this only muddies the water. Do not connect any other wifi device while troubleshooting is in progress.

Be sure that MAC address randomization has been disabled. Search the forum for instructions on how to do that. Reboot after disabling randomization. Report on exactly how you did that.

Please post:

lsusb
hwinfo --netcard --bluetooth | grep -Ei "(speed|hotplug|model|status|cmd|file|detected|driver:)" | grep -v "Config S"  
lsmod | sort
rfkill list
sudo dmesg | grep -Ei 'wl|rt2800usb' 
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"

These commands are to be run after a warm reboot when the wifi is not working. Be sure only the rt2870/rt3070 wifi adapter is connected to the computer.

Thanks.I wil do this codes and tricks and say the results.
but my bios version is the latest stable version.
I check now the asus website and it gives just a new beta bios version and I think we should wait until it gives the stable version.