Open laubblaeser opened 1 month ago
In a terminal type sudo dmesg
after you plug in the Alfa.
Hi @laubblaeser
My thoughts after looking over the info you posted:
This is not a driver or firmware issue as usb adapters will show with lsusb
even if the driver and firmware are not there. In fact, a lot of things can be ruled out at this point. Until lsusb
can see the adapter, nothing else matters.
Is there a problem with the usb port? Maybe you should try a different port if the system has multiple ports.
Do you have another Linux system to test?
Is it possible that some bios usb settings could be causing the problem?
Can you backup your kernel to an earlier version like say 6.6? We have been seeing a LOT of problems related to wifi lately with all of the modernization that is going on.
You can always burn a flash drive with a Ubuntu 24.04 image and boot to the desktop to test. That would allow you to test a different distro and kernel without installing anything.
Cheers
In a terminal type
sudo dmesg
after you plug in the Alfa.
Sure, here's the output:
[ 6554.969849] [ T7445] usb 3-5: new high-speed USB device number 4 using xhci_hcd
[ 6555.112994] [ T7445] usb 3-5: New USB device found, idVendor=0e8d, idProduct=7961, bcdDevice= 1.00
[ 6555.113002] [ T7445] usb 3-5: New USB device strings: Mfr=6, Product=7, SerialNumber=8
[ 6555.113007] [ T7445] usb 3-5: Product: Wireless_Device
[ 6555.113010] [ T7445] usb 3-5: Manufacturer: MediaTek Inc.
[ 6555.113013] [ T7445] usb 3-5: SerialNumber: 000000000
[ 6555.271753] [ T19523] Bluetooth: Core ver 2.22
[ 6555.271780] [ T19523] NET: Registered PF_BLUETOOTH protocol family
[ 6555.271782] [ T19523] Bluetooth: HCI device and connection manager initialized
[ 6555.271786] [ T19523] Bluetooth: HCI socket layer initialized
[ 6555.271788] [ T19523] Bluetooth: L2CAP socket layer initialized
[ 6555.271792] [ T19523] Bluetooth: SCO socket layer initialized
[ 6555.299105] [ T19525] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 6555.299248] [ T19525] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 6555.299403] [ T19525] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[ 6555.304767] [ T19520] usbcore: registered new interface driver btusb
[ 6555.338858] [ T191] Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: 20240219111427
[ 6559.015966] [ T191] Bluetooth: hci0: Device setup in 3624245 usecs
[ 6559.015972] [ T191] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
This is not a driver or firmware issue as usb adapters will show with
lsusb
even if the driver and firmware are not there. In fact, a lot of things can be ruled out at this point. Untillsusb
can see the adapter, nothing else matters.
Yeah, I figured as much but thought it's worth a shot asking here if anyone else ever experienced such a problem.
Do you have another Linux system to test?
Is it possible that some bios usb settings could be causing the problem?
Well, only other systems with Tumbleweed on them. 😄 Certainly worth a shot to try the USB dongle on another device just to rule out that the hardware isn't failing or BIOS settings aren't blocking anything. But to be honest that shouldn't be the case as it works on the same machine under Windows without any issues.
New USB device found, idVendor=0e8d, idProduct=7961, bcdDevice= 1.00
Interesting that this line shows in the log but not with lsusb
. That test with the Ubuntu 24.04 flash drive may give us an idea.
Is there a problem with the usb port? Maybe you should try a different port if the system has multiple ports.
Forgot to answer this. I've tried 7 different ports on the machine so far. The dongle always lights up but doesn't show up in lsusb
. :/
The dongle always lights up...
That just means it is getting power.
I've tried 7 different ports on the machine so far.
Had to try it.
Type
lsusb -t
and
lshw -c network
So it just worked while I plugged it in and out multiple times in a row. Here's a bit more dmesg output showing the failed and successful attempts.
It seems as if sometimes the stack doesn't properly load and some probing fails? Does this help in any way?
So this means that
So it just worked while I plugged it in and out multiple times in a row. Here's a bit more dmesg output showing the failed and successful attempts.
It seems as if sometimes the stack doesn't properly load and some probing fails? Does this help in any way?
So this means that
1. once the dongle is initialized properly, then there's no problem with running it in dual mode (BT and WiFi appear in the system tray, although so far I haven't tested using them both at the same time). 2. the issue I experience seems to be kind of the norm but replugging the dongle multiple times at the same USB port sporadically allows it to be recognized after all. (Previously I switched around the various ports and didn't repeatedly try the same port.)
I would try booting a different kernel via USB. My guess is there are kernel bugs. :-)
Is your cpu amd or intel?
I would try booting a different kernel via USB. My guess is there are kernel bugs. :-)
Currently have to deal with data limits from a metered connection. Maybe it's really worth a shot at some point but maybe this regression (?) will be fixed at some point in the near future.
Is your cpu amd or intel?
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
AMD Ryzen 7 3700X 8-Core Processor
I have emailed a person that can provide a workaround for us to try. Standby.
FYI: This seems to only happen on AMD cpus. No idea why at this point... and it is only with the Alfa adapters... the AXM and ACML. This is the first time, if this is the issue i think it is, that I have seen a report from an AXM owner.
@laubblaeser Issue reports on ALFA AWUS036AXM and AWUS036AXML rise and all are similar to your report: https://www.reddit.com/r/openSUSE/comments/18tn3ev/alfa_awus036axm_not_working/ https://www.reddit.com/r/Kalilinux/comments/14h198n/awus036axml_network_card_inaccessible_in_kali_via/ https://bbs.archlinux.org/viewtopic.php?id=292420 https://forum.openwrt.org/t/alfa-awus036axml-has-anyone-got-it-to-work/184381 https://forum.garudalinux.org/t/problem-with-alfa-mediatek-wifi-awus036axml-mt7961/34098 This list is long and every day it grows.
I don't expect any fix in the next time: https://bugzilla.kernel.org/show_bug.cgi?id=219040
You can try to bisect the Linux kernel to identify the patch that caused this issue. I gave it up, because this device has never worked out of the box on my systems. Even with a workaround (disable BT, remove BT firmware), the driver sooner or later dies. In the worst case, the entire system becomes unresponsive.
@laubblaeser
The quick way to test and see if we are the right track is to delete the bluetooth firmware:
$ sudo rm /usr/lib/firmware/mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin*
Thanks for @ZerBea for helping out. Evidently this only shows up on AMD systems. Until very recently I only had Intel and ARM64 systems and had not ran into this issue. I have an AMD mini pc now but am not configured to test yet. This is really a mystery.
We really could use feedback at to where deleting the firmware as shown above is a good workaround.
Checklist
uname
Linux ferdux 6.10.2-1-default #1 SMP PREEMPT_DYNAMIC Mon Jul 29 08:51:47 UTC 2024 (65a34e2) x86_64 x86_64 x86_64 GNU/Linux
lsusb
rfkill
dkms
iw
What happened?
The OS doesn't recognize the USB WiFi dongle at all. After plugging it in, I can run
lsusb
, which takes about 60-90 seconds until it returns anything and then the listed USB ports are "empty".There's no problem with the stick itself as I've tested it on the same machine with a Windows dualboot where it gets recognized and works fine after installing the drivers. The stick was recognized exactly once after letting it plugged in when shutting down the PC from Windows and letting it reboot into Linux. Once I removed the stick and put it in any USB port of my PC again, it is not recognized again.
So, I can imagine that this is a really weird issue but it's worth a shot: Has anyone had this problem or a similar one? What can I do to track down the root of this issue?
System info
Operating System: openSUSE Tumbleweed 20240801 KDE Plasma Version: 6.1.3 KDE Frameworks Version: 6.4.0 Qt Version: 6.7.2 Kernel Version: 6.10.2-1-default (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor Memory: 31.3 GiB of RAM Graphics Processor: AMD Radeon RX 7800 XT
Edit@16:07: A bit of formatting.
Edit@21:54: Clarify that Windows is dual-booted on the same machine.