How to resolve wireless disconnect problem in Atheros ath9k
Solution 1
Beside creating a file named /etc/modprobe.d/ath9k.conf
with the contents options ath9k nohwcrypt=1
, I also had to disable acer_wmi
kernel module:
sudo nano /etc/modprobe.d/blacklist.conf
and add this line:
blacklist acer-wmi
Then reboot. This fixed WiFi problems for me.
Solution 2
I know it's bit old question, but this solution bellow may help other people stuck with ath9k driver on Acer laptops.
Try to compile ath9k driver following this procedure on Ubuntu Forums
Steps:
sudo apt-get install linux-headers-generic build-essential
Download this to your desktop backports-3.12.2-1.tar.bz2
Compile using bellow comands
cd ~/Desktop/backports-3.12.2-1/
make defconfig-ath9k
make
sudo make install
sudo modprobe -r ath9k && sudo modprobe ath9k
Your wireless should be working now. Note this will work until next kernel update. After kernel update you will need to recompile the driver again. Command are similar to ones above.
cd ~/Desktop/backports-3.12.2-1/
make clean
make defconfig-ath9k
make
sudo make install
sudo modprobe -r ath9k && sudo modprobe ath9k
Solution 3
This probably won't help for the original question. But, for those using newer versions of Ubuntu, the package firmware-ath9k-htc
is available. Solved my wireless issue by simply installing it & restarting.
My system is an older MacBook Pro (around 2007 or 2008 I believe) with Ubuntu-MATE 19.04.
$ lspci
...
b:00.0 Network controller: Qualcomm Atheros AR5418 Wireless Network Adapter [AR5008E 802.11(a)bgn] (PCI-Express) (rev 01)
Solution 4
I had problems with the Atheros ath9k
driver when I upgraded my kernel to fix some power management issues.
Tried the ath9k.conf
file but it did not work.
Then I downloaded a driver and it solved my WiFi problems. This was what I did:
Go to wireless.kernel.org and download the appropiate driver for your kernel.
Check kernel version in terminal: uname -a
Unpack the file you just downloaded in a new folder into your downloads folder.
(it should be something like Downloads/compat-wireless-3.5.4-1-snp
)
(beware: your filename might be different)
You will probably need the build tools; open a terminal and type:
sudo apt-get install build-essential linux-headers-generic
Then after you have installed build-essential
and headers, please do:
cd Downloads/compat-wireless-3.5.4-1-snp
sudo su
make
make install
modprobe -r ath9k
modprobe ath9k
exit
My computer crashed shortly after the 2nd modprobe
, but when I restarted everything ran lightspeed.
I'm running on an Aspire 5750Z. Hope it helps.
Related videos on Youtube
vfioox
Updated on September 18, 2022Comments
-
vfioox over 1 year
$fver = str_replace(".","a",$arrMatches[1]); $download = "ENU2v" . $fver . ".zip"; $zip = new ZipArchive; if ($zip->open($download, ZipArchive::CREATE) !== TRUE) { die ("An error occurred creating your ZIP file."); }
The following code fails with the error in the question title. But, if we change the first line to:
$download = "ENU2v.zip";
Then it does work. Where is the error? What goes wrong?
-
laurent about 10 years
var_dump($download); var_dump(file_exists($download));
-
vfioox about 10 yearsstring(24) "ENU2v2a0a2a0.zip", and this file doesn't yet exist...
-
laurent about 10 yearsso most likely
$arrMatches
doesn't contain what you expect. If it's created from a regex, you might need to fix this. -
vfioox about 10 years@this.lau_ you were right, the regex is wrong.
-
-
Martin Thoma over 10 yearsIt did not work for me (Acer TravelMate 5735Z, Linux Mint 15 (Ubuntu 13.04)).
-
vfioox about 10 yearsThanks for your help, though it was a complicated regex issue. I got it.
-
Edwin Miguel over 4 yearsThis solution also worked for Fedora 31 on a Acer Aspire 4750