Arch linux wireless suspend on HP Pavilion DM1 with Alfa rtl8187 1000mW

Running Arch linux on my little HP Pavilion DM1 netbook with an Alfa rtl8187 1000mW external wifi card has a few problems with suspend.

For starters, the driver (module) needs to be reinitialised upon return. This can be done by rmmod/modprobe, but easiest is to add a line to /etc/pm/config.d/modules to unload the module before suspend, as per https://wiki.archlinux.org/index.php/Pm-utils#Advanced_Configuration in the form of a line of config:

SUSPEND_MODULES="rtl8187"

 

Once back up, sometimes “wifi-menu” will report “no networks found”. This is strange because

$ iw dev wlan0 scan | less

correctly reports a whole bunch of networks. One reason could be that wpa_supplicant is thinking it’s already running, as can be verified by

$ wpa_supplicant -B -i wlan0 -D rtl8187,wext -C /run/wpa_supplicant

which gives a nice verbose error message that the interface exists and seems to be in use, when clearly the lack of a connection shows it’s not. You will want to replace rtl8187 and wlan0 with your driver and interfaces respectively. Removing the lockfile with

$ rm /run/wpa_supplicant/wlan0

could help.

Codemonkey of Node.js, Django, PHP and all things HTML5 Solving tech challenges, one bit at a time.

Posted in linux, WiFi Tagged with: , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*