Saturday, July 25, 2015

Manjaro 0.8.13 x64 and Asus USB-N13 B1

I have been using Manjaro Linux + Xfce for a while now and I am very satisfied with the overall performance and simplicity of this distro.
I have a  Asus USB-N13 B1 and the default installation used a driver that would not give enough speed. The signal strength also stayed under 90%.
Make sure the revision is in fact B1. There's a different revision, A1 that uses a different chipset and this procedure will not work.
It's quite easy to install a proper driver for this USB wifi dongle.
I used yaourt to install 8192CU driver from AUR. I have 3.18.18.1 Linux kernel and also installed the linux headers for this. I don't think this step was necessary, since it seems the dependencies pull these when installing the driver.
The driver install may error out with this:
modprobe: ERROR: could not insert '8192cu': Device or resource busy
but the driver installation actually goes through. Just restart the machine and make sure lsmod shows the 8192cu loaded. Also, the installation will create a blacklist file (blacklist-8192cu-dkms.conf ) at /etc/modprobe.d location. This will blacklist the installed rtl8192cu etc. drivers.
Ran into an issue with the next manjaro update. The update included a kernel upgrade from the original 3.18.18.1 to 3.18.20-1-MANJARO, and it broke the driver. Ideally the kernel upgrade is supposed to reconfigure all the dkms modules, but in this case it did not, and I was unable to connect to the internet.
The best thing to do after a kernel upgrade is to manually run the following command. Do this before restarting the machine, so you are not left without an internet.
$ sudo dkms autoinstall
Optionally, you can specify the kernel module as well.
$ sudo dkms autoinstall -k $(uname -r)