Does anyone know the best way to remove teh ath5k drivers and install the madwifi drivers?
Does anyone know the best way to remove teh ath5k drivers and install the madwifi drivers?
Here we go:
- You'll need build-essential, make & friends for compiling the driver, so open up a terminal and run
Code:sudo apt-get install build-essential- Make sure you comment out (add a # in front) or delete the lines with ath_pci, ath_hal or wlan from the /etc/modprobe.d/blacklist*.conf files. Jaunty for instance creates a blacklist-ath_pci.conf file, where ath_pci is blacklisted.
- Unload the wireless with
Code:sudo ifconfig wlan0 down- Blacklist ath5k with
Code:echo blacklist ath5k | sudo tee -a /etc/modprobe.d/blacklist.conf- Grab the latest snapshot from here, download it somewhere you can easily find it (need to compile it again every time you update kernel), ~/MadWifi/ for instance. Then unpack the archive.
- Navigate your terminal to the directory where the files were unpacked and ensure there are no conflicting modules present by running
Code:sudo ./scripts/madwifi-unload- Then compile the driver with
Code:make clean make sudo make install- Get the new driver up and running with
Code:sudo depmod -ae sudo modprobe -r ath5k sudo modprobe ath_pci- mkroetzsch (below) solved an issue with suspend (where you otherwise had to manually unload and reload the driver to get it working after resume) by editing the following line (the part on red is what you add there) in /etc/default/acpi-support:
Code:MODULES="ath_pci"
If you run into some problems, post back on this thread and we can see about fixing them.
Last edited by t0mppa; November 17th, 2009 at 11:39 AM. Reason: to keep this up to date
Thank you very much! This was very helpful and mindless for me!
I think you meant:
Either way, ath5k is still being loaded in addition to ath_pci at boot.Code:echo blacklist ath5k | sudo tee -a /etc/modprobe.d/blacklist.conf
Any idea what package it is in? I'll just uninstall it altogether.
Thanks,
Josh
Yes, that's right, good call there.
That's odd, there shouldn't be any other module depending on it and thus loading it as a side product, so can't see why the simple blacklisting doesn't work.
Anyway all the wireless drivers come prebuilt with the kernel, so uninstalling it through conventional means might prove a little troublesome. What you can do though is look up the module file /lib/modules/<kernel_that_you_use>/kernel/drivers/net/wireless/ath5k/ath5k.ko and rename it (to ath5k.ko.disabled for instance), that should make it unloadable and thus solve your problem.
I eventually got the blacklist to work; I think I was writing to the wrong file somehow.
So, now ath_pci is loading and ath5k is not.
However, the wireless connection isn't working. It asks for my WPA password over and over. Every once in awhile it will connect, but it's very slow with horrible latency.
Not only did this work perfectly in Jaunty, but it was included in the repositories. Any ideas?
Thanks,
Josh
Thank you, worked a treat!
Step 7, I did a sudo checkinstall instead of sudo make install. Involves a few more steps but it means changes can be reverted if anything goes wrong.
Regards,
Egor
Bookmarks