In Ubuntu it really does try to detect your Atheros chip. In Ubuntu 7.10 the wireless on my laptop was detected as the AR5006EG and I use ndiswrapper and the net5416.inf driver. On Ubuntu 8.04 my wireless was detected as the AR242x and I was able to download ndisgtk (in the repos) and use the net5211.net driver, (the ndisgtk is just a graphical interface for ndiswrapper, very easy and very nice!). This time (Ubuntu 8.10) it wasn’t detected as the AR5006EG, it was however detected as the AR242x BUT I couldn’t use ndisgtk as before. I’m thinking it’s because they updated the network manager in 8.10. Either way here is how I got it working.
Remember TAB is your friend in the terminal!
To check what you wireless is detected as just run the following in the Terminal:
lspci | grep Wireless
These steps are done using Ethernet, if it is unavailable, just go to any computer with Internet and download the mad wifi snapshot shown in these steps. Just follow the step from there once you have gotten the file.
1) First disable Ubuntu’s Atheros HAL driver if loaded:
Click ‘System’ –> ‘Administration’–> ‘Hardware drivers’ then deactivate support for the Atheros 802.11 wireless driver
I rebooted just to make sure there was no chance it was running.
Everything else is done in the Terminal :)
2) Get the Ubuntu built essentials package, this will allow the program to compile:
sudo apt-get install build-essential
**if this is a new install of 8.10 you MUST do “sudo apt-get update” (without quotes) to update your repositories
3) Download the madwifi snapshot:
wget http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6-current.tar.gz
4) Untar (unzip) the newly downloaded file:
tar xvf madwifi-hal-0.10.5.6-current.tar.gz
5) Go into the newly created directory:
cd madwifi-hal-0.10.5.6-r3879-20081204
6) Then compile the package (this will compile the program to prepare it to be installed):
make
7) Then install the package by typing (this will install the package onto your machine):
sudo make install
8) Then load the newly created module:
sudo modprobe ath_pci
**may not show any output, but will load the module if you don’t get an error
if yours is like mine you may not get a wifi light, in that case you won’t know if the card is on, just try pushing the button to toggle it (on the Acer 4720Z it’s a picture of a satillite) ***as mentioned in a comment, (TR14RCE) you may need to check and uncheck the connection to detect the network on some PC’s
9) If your wireless is working after this when you reboot the computer it won’t to fix it, you must add it to the kernel boot modules list:
In the terminal type “sudo gedit /etc/modules”(without quotes) and add “ath_pci”(again without quotes) to the bottom of the list if you don’t have anything in the list just add it to the bottom. Click ‘Save’ and that’s it. ::PER Joe Purdy “DO A REBOOT”::
FYI: If there is ONLY one reason you want to update to Ubuntu 8.10, it’s for the boot-up time. It’s supa-speedy.
137 ResponsesLeave a comment ?
Not being a downer but WEP is really bad security, I would go to WPA if possible…but if you need to use WEP try removing the security and testing it and then re-add it, sounds stupid, but it sometimes works. Although this might prove to be difficult being at work if you don’t have access to do it
Hello, I can’t understand how to add your blog in my rss reader
————————
internet signature: http://werato.ru/
Thanks! This worked perfectly for me on Ubuntu 8.04.2 AMD64.
Etessscekly: the RSS link is http://blog.hyperandy.com/feed/ although I don’t update as much as I like, I try.
worked like a charm
up to the very last line, when i try the sudo gedit/etc/modules line, i get “command unknown”…
any idea ?
i run PC/OS, which is basedon Ubuntu
at least you gave me lots of hope :)
aethel: it should read sudo gedit /etc/modules a space after gedit although I don’t believe gedit is installed in PC Linux OS which is what I think you are refering to. just type sudo nano /etc/modules when you are done you should be able to hit Crtl+X I believe and it will ask you to save changes and just hit yes. nano is installed (as far as I have found) in most Ubuntu based OS’s if not it’s only an apt-get away
hey, the “nano” bit worked !
although there are no lists..
do I just type
ath_pci
and save ?
AMAZING! it found all the wireless networks…
i’m still not connected, it fails at the authentication phase
not sure if that’s something to do with the system or just the connection
anyway
thanks a million !
truly amazing :D
ladies and non-ladies, we have a connection !
all i need now is your photo to show to my grandchildren :D
thanks a million, i went through lots of tutorials, yours was the only one that worked !
thanks again
I’ve tried many guides but only this work for me. Really thanks
Thank you so much! I didn’t try to make the switch to full-time Linux until AFTER I purchased my Vista-loaded Acer Aspire 5050. The fact that I couldn’t get wireless working on Ubuntu was the only reason I kept Vista on the machine (I felt dirty every time I booted up into it). Thank you so much for sharing all your work!
amazing worked perfectly
You are the best person EVER!
Thank you, you’re a genius. I am a linux/ubuntu noob, and been trying to get my wireless for the past 3 days. Your guide was the easiest and the only one that actually works. Screw all those windows driver crap. Now I’m posting wirelessly.
Hi Andy. Amazing guide, thank you ever so much. Everything worked perfectly. There is one thing though, thats bugging me, and thus why I’m having to send this wired up =(
I got everything to work, was all wireless and happy, and then I rebooted because of updates and suddenly, poof, nothing. I did everything. I’d added ath_pci to the “etc/modules” I even checked that it was still there which is was. And now also, I can’t figure out what command to type in manually to get it going again =(
Also, I had rebooted a couple of times before hand and the networks were still there, but now nothing. I’m wondering if the updates have done something, but I don’t see why they would.
Help would be greatly appreciated.
Cheers man.
HP G60-235DX Laptop with Atheros AR242x running Jaunty 9.04 (beta).
This guide worked.. and worked VERY well.
It appears the Hardware Drivers thought the chipset was the 5k.
Instantly after typing the modprobe command the Network Manager recognized the card. I have connected to a wireless network and am typing this message from there.
NOTE: For those of you with Jaunty and miss the KNetworkManager — it is not a Widget that you must currently manually add (beta), called the Network Management widget.
Again, thank you!
i love u man it works for me T_T I’m so happy!!!
Thanks so much!!! I’m so happy i found your guide !!! It worked from the start (on a fujitsu siemens v5535 dual core laptop).
Good luck!!!
Yes!! worked with me. I have the ASUS eee pc 1000HA and now WPA WPA2 works perfectly. The problem was solved!!
I tested in the final release of Ubuntu 9.04 Jaunty Netbook Remix – UNR
Thanks a lot
I have been struggling with this issue for weeks. I was ready to give up on Ubuntu for my netbook. This solved it in 15 mins!! You Rock!!
Thank you!
wow. after a long search, I reach this page, and see that I had commented on Jan7th !. I had to reinstall Ubuntu this time, and this time, the network manager did not show the list of wireless networks.
I did iwconfig txpower on, and it started working.
My laptop: HP Pavilion DV5. AMD Turion X2 64. Atheros AR242x.
And, this laptop has a soft-touch-button to control the wifi-card. That is a pain. It doesnt work in Linux, and the LED always remains orange (=off), no matter whats the real status.
Thanks a lot hyperandy. !!
Thanks!I’m using Ubuntu 9.04 on Acer Aspire 5570Z, my wifi card is Atheros AR242X (lspci command told me that). I just followed this manual step by step and everything’s working.No problem with WPA-PSK security at all. Thank you so much!
Dear Andy
I have a Compaq CQ70-201TU, which I believe has the ar5007 card/driver, although I can’t be 100% sure, as the HP website doesn’t give any specifications for this machine. I have installed Ubuntu 9.04, having read somewhere that it would finally solve the problem with Atheros cards; but, of course, it hasn’t. I have follwed your oviously excellent instructions (with a slight modification to update the install directory), and all seemd to go well until the very end, when in response to “sudo modprobe ath_pci” I got “WARNING: All config files need .conf: /etc/modprobe.d/ndiswrapper, it will be ignored in a future release.” I am a complete beginner with Ubuntu, and have no idea what this means or what to do. Needless to say, the wifi is not yet working. Are you able to help?
Many thanks in anticipation.
thanks dude!!!!! you save my day!
wireless network detected after reboot
Dear Andy
Thanks. I did as you suggest, and rebooted, ignoring the warning. Now on the Networks icon I see a new greyed-out item “Wireless Networks: device not managed”. Pressing my machine’s wifi button a few times for various periods has no effect. Looks like there is progress, but I’m still not there.
A search under System-Hardware Drivers, which previously produced no result, now yields the result that the Alternate Atheros “madwifi” driver is activated and currently in use.
Can you or others help further?
Thanks again in anticipation …
run lspci | grep Wireless again and just see which AR number your wireless card is again..
Dear Hyperandy
Thanks again (sorry for delayed response, but I don’t have much time to devote to computer tasks at present).
The response to lspci | grep Wireless is now:
“02:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)”
This doesn’t mean much to me. Is it saying that I in fact have the ar242x card, rather than the ar5007 card I thought I had; or could it be that the installed software is wrong for my ar5007 card?
Yoour further help would be much appreciated. Sorry to be so dim!
no you probably have the AR5007, I have noticed Ubuntu detects the card differently in newer releases. in 7.10 mine was detected as AR5006EG and in all current releases mine is detected as AR242x like yours. don’t feel bad wireless can be super tricky. I am messing around with Sabayon and wireless works great out of the box with this card until you try to connect using WPA then the driver just craps out. I think in order to get it to work I am going to have to give it a kidney. So I understand your pain here. They only other things I can offer you to try at this time, seeing as the madwifi driver doesn’t seem to be working is to try the ndiswrapper. Also are you running 64bit or 32bit. I have heard of varying success with different drivers in 64bit. I wrote and tested this guide with 32bit although I might give 64 a try on it, to see what is different. also your card maybe a little different due that you believe it is a AR5007 and mine originally was a AR5006EG. If I come up with anything I will e-mail you or post it. In the mean time I would suggest trying ndiswrapper with the most current driver for your card and see if you can get anywhere with that. I know it is a pain, it seems to be one of the last remaining thorns for new user installations. I am hoping when the ath5k driver gets updated in 9.10 we will see this issue disappear.
Dear HyperAndy
I had already tried the ndiswrapper route with the latest Windows Vista driver update for my card, in accordance with the procedure advised in Ubuntu Help. It failed, and that’s why I embarked on this search through the Ububtu forums.
I had read that the Atheros wifi problem had been resolved with Ubuntu 9.04, but obviously it has not. Thus I am extremely sceptical that the forthcoming version 9.10 will achieve resolution, but I must retain some modicum of hope that those who are preparing this update will read this, and other similar, correspondence, and make resolution a top priority. This issue is the only thing forcing me to continue to adhere to the appalling Windows Vista.
I will monitor this thread from time to time to follow your further expert advice. Meantime, many thanks for your trouble in responding to my problems.
I’m sorry for your troubles, I hope you can find a fix, Don’t let this issue be the end of you trying linux, I have installed tons of distros with this chipset with varying success (Atheros just didn’t want to play nice with other at first), the Ubuntu Forums are excellent, I wish I had more advice at this time (or more time to work on this for you), I do believe 9.10 (closer to release) will help this issue, if not, completely get rid of it, only because I have seen amazing changes in driver/hardware support in such a short time (of course I have seen some stuff break along the way, INTEL VIDEO!!!). I was messing around with different distros on my laptop and Fedora 11 worked great with my wireless and everything else, it’ll will be a full release I believe on Tuesday 06/09/09. It is looking to be an incredible release. I always found Ubuntu and Fedora quite level when it came to drivers and stuff but this release blows ubuntu 9.04 out of the water with hardware support in my applications. Of course it does use RPM instead of DEB, and I haven’t given the apt for rpm a spin yet to see if it’s any good, but I got my feet wet back with Fedora 4 core and always had a place for it, the only reason I switched, was back then the Yum package manager was about 100 times slower then Ubuntu’s Apt-get…we’ll have to see how that stack up now.
Dear HyperAndy
Thanks for your further advice, and sorry for the very delayed reply. Looks like I should have a go at Fedora (of which I had not previously known) after the release of version 11 in September – when I hope to have more time for experiment than I have at present. I’ll keep you posted in due course, especially in the event of success.
Fantastic post. Thank you ever so much Hyperandy!
I followed the guide to the letter and it worked perfectly, except when I had to cd into the directory I’d just created. The directory had a different name so all I had to do was copy it from the console output.
Again, thanks ever so much.
My card immediately started working once ath_pci was loaded
Hello,
I want to thank you for the instructions. I just wanted to say though that I think the tutorial could be cleaned up a bit. It gets a little confusing at step 6 when you say “make” and then step 7 is the same thing. what you are trying to say is (step 6 is to make but step 7 is entering the command to make?) also, you should mention that step 8 does not give any output. when I restart my netbook (Acer Aspire one D150-1165) I had to uncheck the wireless and recheck it to detect the networks. then it showed all the networks that I could connect to. It did not automatically detect anything after restarting until I did the unchecking and rechecking of the wireless tab, but I was also still connected to ethernet. After I unchecked and rechecked the wireless tab it instantly started detecting networks. Also I am running Ubuntu 9.04 and this is working. Thanks so much for the help. Your work and dedication is very much appreciated. I just wanted to say this because I know some people are probably pulling their hair out still.
@TR14RCE I made a few adjustments that may help others(from your suggestions). Thank you for your input On a good note this may not be needed soon, when Karmic is released with 2.6.30 kernel, it’s working wonderfully on that same laptop and the wifi lights working and everything. but I am glad it helped you out :)
Hello again,
I am back to give some info that is very crucial to make this work and it may sound stupid but it is true I promise. After you go through all of the steps, you need to just turn the computer off completely then power it back up. If you just click restart it will not work. I am sure some of you already know this but I did not. Restart is not the same as turning your computer completely off then back on. Thats why some people in the comments say that they did everything correct and got no errors, but still was not working. Of course people had some other issues, but if everything went well and you just “restart” and nothing happens, it is because you have to completely shut down. Another way to prove this is, when you do the restart only, you will see the wifi bars where there was only a symbol of a computer before but it still wont detect networks. You must fully shut down and turn back on for it to fully take effect. I probably sound like an idiot but I am sure this has happened to many people and they just did not realize that just the restart was not good enough. The first time I went through the tutorial the same thing happened and I must have shut it down completely by accident when it did finally start working. I know it is so stupid and thats why I had to get on here and let everyone know. I messed with it for hours doing multiple restarts until I finally found out thats what it was. I even tried it with other tutorials guides and the problem was restarting instead of shutting down. Sorry for the long message. Derp! LOL Hope this saves someone from such a stupid mistake. Thanks Andy you are full of win sir.
Here is how to get the wifi light to work on the Acer Aspir One.
Step 1: sudo aptitude install linux-backports-modules-jaunty
Step 2: gksu gedit /etc/rc.local (this will open a window and you will paste some code in)
Step 3 add code below to the window you opened in step 2 and press SAVE)
# Make wifi lights blink
sysctl -w dev.wifi0.ledpin=3
sysctl -w dev.wifi0.softled=1
Make sure those lines appear before exit 0.
Step 4: sudo gedit /etc/modprobe.d/blacklist
add the following to the list and hit SAVE. blacklist acer_wmi
This worked for my acer aspire one D150.
If you have two wifi lights, only the one on the right will work.
Hope this helps. Don’t forget to save before closing the windows where you added the code or it will not work.
Forgot to say: I am not sure if this only applies if you are using the madwifi drivers (that is what I am using). Also, you may or may not have to blacklist the ath5k driver. I already had done so before trying this, so it was not in question.
after all the steps in previous post turn your computer completely off and then turn back on. Do not click restart. When your system comes back on, the light should be flashing when wifi connects.