Tag Archive for 'wireless'

Mac Mini WiFi Trouble

One the most common arguments I hear from my Mac-loving friends is that OS X is better than linux because it “just works”. Bollocks! I’ve just spent the last day and a half trying to get my 2nd generation Mac Mini to talk to a wireless router on the other side of my bedroom wall.

For the most part I’ve had no issues with hardware or software, and I’ve grown to actually quite like OS X, my wireless issues over the last day or so are just taking the piss!

The trouble started when I set up my Mini again and tried to connect to the router in a room across the hall. Apparently, the router didn’t exist. This would be puzzling even ignoring the fact that my EEE was sitting on the same desk while reporting 83% signal strength. Dropping all encryption allowed me to connect for long enough to download 9 months of security updates, but the signal strength was so low that it barely registered, and after a restart the network “disappeared” for good.

After exhausting all the usual WiFi debugging tricks, I began searching various Mac-related forums for a possible solution with no great success. Moving the Mini to the same room as the router was not impossible, but is incredibly impractical. One suggestion to drill holes and run cable across the hall struck me as being particularly stupid. That is until I remembered a strange email I received while I was travelling.

For reasons unknown, my parents came to be in possession of a pair of powerline Ethernet adapters, which I had read about but never actually seen in the “real world”. A quick rummage in a drawer turned up a couple of Comtrend PowerGrid 902 adapters, and five minutes later (Truly plug-and-play!) I was negotiating an Ethernet connection over the mains power cables in the walls!

Ethernet over powerlines always struck me as being expensive and not all that reliable, but so far everything seems to be working at a similar speed to CAT5, and to be honest I’m just glad that I’ve got this thing connected to the internet again! I’m not really sure what’s happening to make it work (It seems a little like magic at the moment!) but hopefully I’ll get time to investigate it soon.

OpenVPN Tutorial

The Register has published a nice tutorial on setting up OpenVPN.

I set this up a few weeks ago as an alternative to using a SOCKS proxy over SSH while I’m travelling. This article would have been helpful though!

Enabling Eee 701 WiFi hotkeys in Ubuntu 8.04

I picked up an Asus Eee 701 a couple of weeks ago to take with me when I’m travelling. After a few days I started to get a bit frustrated with the some of the more simplistic aspects of the default Xandros “desktop”. I found the wireless configuration tool particularly unintuitive so after a bit of research I decided to install Ubuntu 8.04.

The hardware support is pretty good “out of the box”, but there are still a number of issues with the initial installation. Thankfully eee.ricey.co.uk have made a shell script available to take care of almost everything automatically. After running the script most of the hotkeys (Volume, screen brightness, sleep) work correctly, but the WiFi one does not.

To enable the WiFi hotkey functionality (Fn + F2) add the following line to /etc/modules

pciehp pciehp_debug=1 pciehp_force=1

Then create the file /etc/acpi/actions/wireless-toggle.sh containing the following

#!/bin/sh
wlan_control=/proc/acpi/asus/wlan
WLANSTATE=$(cat $wlan_control)
case $WLANSTATE in
  1)
    ifconfig ath0 down
    modprobe -r ath_pci
    echo 0 > $wlan_control
    modprobe -r pciehp
  ;;
  0)
    modprobe pciehp pciehp_force=1 pciehp_debug=1
    echo 1 > $wlan_control
    modprobe ath_pci
    echo 0 > $wlan_control
    echo 1 > $wlan_control
  ;;
esac
 

Make the file executable chmod a+x /etc/acpi/actions/wireless-toggle.sh

After a reboot you should be able to toggle the internal wireless card by using the hotkey.