[SOLVED] Can't get Atheros USB wifi adapter to work on Linux Mint 17.2
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can't get Atheros USB wifi adapter to work on Linux Mint 17.2
Hi,
I've used windows for almost 20 years, but am considering moving to linux. I wanted to play around with it so I installed Mint 17.2 32 bit w/Xfce desktop on an old Dell Inspiron 1520 laptop. The laptop stopped recognizing its onboard wifi card a couple of years ago (while still a windows machine) but has worked fine with a USB adapter since then. However, now that I've installed Mint I can't get the adapter to work, I can't even get the computer to detect it.
I've read through quite a lot of similar situations online and tried to take the steps that others took, but I can't get it to work. Actually, the very first distro I installed was Mint 17.2 Cinnamon 64 bit (uninstalled because computer wasn't powerful enough), and I did somehow get the adapter to work, but (as ridiculous as this will sound) didn't realize it at the time and I tried quite a lot of things, so I'm not sure what actually worked. The good news is, the port will currently recognize a USB flash drive, the wifi adapter will work in another machine, and as I just said, I was able to get it to work once, so I would think all the hardware is ok.
The adapter is pretty old, it has the Atheros AR5007 chipset, which (from what I read) I think requires the ZD1211 driver. I checked the firmware folder and it's in there, but that doesn't seem to help. When I enter lsusb and lspci the device doesn't show up. I've tried various other things, including ndiswrapper, to no avail. If anyone has any ideas on how I might get this to work I would greatly appreciate it.
So it looks like the ath5k files are already installed. Regarding your other suggestion, I'm willing to try something risky (this is just a build to mess around with, I don't mind reinstalling everything) but in the /lib/firmware directory I already have a zd1211 folder with zd1211_ub, zd1211_uphr, zd1211_ur, zd1211b_ub, zd1211b_uphr, and zd1211b_ur files. Would the package you refer to have anything in addition to these?
There are a few more files, though I couldn't tell you what they do... https://packages.debian.org/jessie/a...d1211/filelist
My guess would be to go ahead and install the deb (dpkg -i, you can backup the files you've already put there if you're worried. you can also see what files will be clobbered with dpkg -c) then try plugging the device in, and if it doesn't work please report the results of:
Code:
sudo lsmod | grep zd
and
sudo lsmod | grep ath
Edit: throw in a lsmod | grep wrapper while you're at it. If multiple wireless modules are being loaded it probably won't work, so you have to blacklist the unused ones. Another option is updating your kernel, you never know when driver stuff's going to have some bug fixes added in.
Last edited by crazy-yiuf; 11-27-2015 at 04:08 PM.
and plug it back in again, then check to see if lsusb finds it. After that I'm out of guesses (other than updating the kernel and making sure any other wireless modules you might have loaded aren't in the lsmod results).
Well, this is entirely bizarre. I once again somehow got the adapter working, and not only that, the onboard wifi card that hasn't worked forever is now showing up again. The only thing I can think of is I deleted all the files in the ZD1211 folder when trying to install the deb package because I kept getting an error that the deb couldn't overwrite a file. Even after the files were deleted I still got that message so I gave up. I then went to this site (http://sourceforge.net/projects/zd12...1211-firmware/) and downloaded the tarball, then unzipped and put the files in the ZD1211 folder, just to replace what was already there. Now both adapters work! Just beyond weird.
I think I'm going to reinstall the Mint distro and see if I can replicate the result (with all the installing and deleting I probably messed something up anyway). I guess we'll see what happens. Thanks so much for your help!
EDIT: There's a good chance that deleting the firmware made it revert to that b43 stuff, which turned out to work? Hard to say. You can be sure by playing with the kernel modules probably. Glad it works at least, haha
ANOTHER EDIT: The dpkg command probably didn't work because you needed to do sudo dpkg -i, I forgot to say that.
ORIGINAL POST:
Ah. Looks like that b43 module is what the kernel is trying to use. I'd try unplugging it, then
Code:
(note, you can reboot and the original modules will be reloaded if this messes something up)
sudo modprobe -r b43 zd1211rw ssb bcma b44 ssb_hcd
Then replug, lsusb.
If that doesn't work, unplug and try
Code:
sudo modprobe -r ath5k
sudo modprobe zd1211rw
My logic here is that anything depending on mac80211 is probably a wireless driver, and we want to have just one at a time so we can be sure which one we're testing.
Last edited by crazy-yiuf; 11-27-2015 at 05:18 PM.
Reason: type
Well, after getting the adapter to work for a third time without realizing it, I'm pretty sure the issues I've been having are more related to me being a noob than any hardware problems. Most recently I got the adapter to work by doing a clean install, running update manager, and issuing a sudo modprobe command for both zd1211rw and ath5k. I did not delete any files or install any new ones. It would appear that, while the drivers came with the distribution, for whatever reason the modules weren't loading at startup.
To get the onboard card to work I did have to go to this website (http://askubuntu.com/questions/55868...reless-drivers) and follow the instructions for the b43 module, but once I did it worked no problem. I'm still pretty surprised the onboard card works at all, like I said it hasn't worked for years as a windows machine, the bios didn't even find it, but whatever, it's back. Even with ath5k, zd1211rw, and b43 all loaded everything works, I can choose between 2 wireless and 1 wired connection.
Anyway, thanks to everyone for looking, and especially to crazy-yiuf for his suggestions, they were key to figuring this out. I don't feel particularly smart at the moment, but hopefully this helps someone else figure their own issues out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.