James Little

The Asus Eee PC 1005PE & Ubuntu

11 comments

Last update: April 4th, 2010


{lang: 'en-GB'}

It seems there’s some mixed information about whether the wireless chip in this model works out-of-the-box with Ubuntu. I’ve tested with Karmic and the Lucid Beta (Netbook Remix versions) and for me it didn’t work. The chip in my model is the Atheros AR2427, which although not a new chip, seems to have an an unfamiliar hardware device ID of 002c, and so is not picked up by the ath9k wifi driver found in the kernel. The driver has been patched by the Linux Wireless developers but this patch has not worked its way into a kernel release yet, so the solution is to compile and install the latest bleeding edge wireless drivers, which is actually a pretty painless operation. It’s also a very safe operation, because the installer leaves the original kernel drivers intact and provides an uninstall script; but I have not needed to revert.

In order to compile the driver you’ll need at least a C compiler and the make utility, so I suggest installing the build-essential package:

sudo apt-get install build-essential
You’ll need an internet connection to download packages via apt-get, so hook up to a router using a network cable if possible. If not, then download the package from packages.ubuntu.com. For Karmic for example: http://packages.ubuntu.com/karmic/devel/build-essential. Then use a USB key to transfer the package to your netbook and run dpkg -i <file_name> to install.

You’ll also need your kernel headers installed, but they should be by default. Double check that the directory /lib/modules/`uname -r`/build exists.

Download the latest bleeding edge (updated every day) drivers from http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2. Unwrap the tarball and cd into the resulting directory:
james@netbook:~$ tar -xvjf compat-wireless-2.6.tar.bz2
james@netbook:~$ cd compat-wireless-2010-03-31

Notice that the directory name will change depending on what day you downloaded :)

The AR2427 chip is covered by the ath9k driver, so we prep the make utility for making this driver:
$james@netbook:~/compat-wireless-2010-03-31$ ./scripts/driver-select ath9k

And then build and install:
james@netbook:~$ make
james@netbook:~/compat-wireless-2010-03-31$ sudo make install

This will take a couple of minutes. After installation you should just need to modprobe the driver:
james@netbook:~/compat-wireless-2010-03-31$ sudo modprobe ath9k

and the device will appear under iwconfig and also a new icon at the top of the screen. To double check you have the right driver installed and active, run a modinfo:
james@netbook:~/compat-wireless-2010-03-31$ modinfo ath9k
filename: /lib/modules/2.6.32-18-generic/updates/drivers/net/wireless/ath/ath9k/ath9k.ko
license: Dual BSD/GPL
description: Support for Atheros 802.11n wireless LAN cards.
author: Atheros Communications
srcversion: A50A865BAAB45E03B5852F0
alias: pci:v0000168Cd0000002Esv*sd*bc*sc*i*
alias: pci:v0000168Cd0000002Dsv*sd*bc*sc*i*
alias: pci:v0000168Cd0000002Csv*sd*bc*sc*i*
alias: pci:v0000168Cd0000002Bsv*sd*bc*sc*i*
alias: pci:v0000168Cd0000002Asv*sd*bc*sc*i*
alias: pci:v0000168Cd00000029sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000027sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000024sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000023sv*sd*bc*sc*i*
depends: ath9k_hw,mac80211,led-class,ath,cfg80211,ath9k_common
vermagic: 2.6.32-18-generic SMP mod_unload modversions 586
parm: debug:Debugging mask (uint)
parm: nohwcrypt:Disable hardware encryption (int)

The important line is in bold because this is the new device ID for the 1005PE’s chip, and the one that was added to the driver by the recent patch.

Compiling and installing the driver should work for earlier versions of Ubuntu too.

Aside from the wifi issue, there is also some strange behaviour when using the brightness buttons on the keyboard, but I can live with that for now. Everything else seems to work nicely and Lucid Beta1 seems very stable.

{lang: 'en-GB'}

Written by James Little

March 31st, 2010 at 2:13 pm

Posted in Linux

Tagged with , , ,

  • easypeasynewbie

    Thank you very much – I have tried enabling wireless on my newly purchased 1005PE without success till now – thank you

  • BlackSir

    Solution for brightness buttons problems: https://bugs.launchpad.net/ubuntu/+source/linux…

  • http://www.jameslittle.me.uk James Little

    Great, thanks!

  • Kim

    Thank you so much, James, for your good explanation and clear steps. This worked great on my 1001P with Lucid!

    The first time I tried this I got a bunch of error messages at the modprobe stage. I had installed the linux-backports-modules-wireless-lucid-generic package (which did not work). I read the documentation on linuxwireless.org, which mentioned removing the backports package first, as well as ndiswrapper and any other modifications. So I did that and then repeated your instructions from the top.

    The second time the instructions at the end of “sudo make install” made more sense to me: about unloading all wireless drivers to avoid conflicts. I did the wlunload, then modprobe and … it works!!

  • http://copeland.id.au Paul C

    G'day James,

    I cannot thank you enough. I was determined my new Asus 1005PE Netbook would primarily use Ubuntu and after reading some other sites telling me I only need the Linux-backports module I was getting very disheartened. But then I found your explanation and followed it and low and behold my wireless now works. At the end it asked me to unload things for wireless or Bluetooth, but it also said if unsure restart which I did. And it is now connected to my wireless network.

    Thanks again for sharing that valuable resource. Champion effort!

  • Hans

    Hey there,

    super good info, thank you so much for sharing…

    One should update the Ubuntu Wiki, since it saying 'Works out of the box' is clearly wrong.

  • Guest

    Hello,

    i just followed your instructions, but unfortunately still don't get Wifi to Work. Here are two lines from my lspci -vvnn .

    02:00.0 Network controller [0280]: Atheros Communications Inc. Device [168c:002c] (rev 01)
    Subsystem: Device [1a3b:1112]

    Grateful for any ideas…

    regards,
    P

  • Guest

    Ok small addition to my post below; removing the backports i had installed as per some other forum entries made my wireless show up. Yeeeehaaw!

  • http://copeland.id.au/?p=87 The Saintly Soapbox » Ubuntu 10.04 on my Asus EeePC 1005PE

    [...] of the box all worked except for the wireless. So I headed over to a tutorial on James Little’s blog and all worked a treat. Thanks again James for sharing this. Sure you [...]

  • http://copeland.id.au Paul

    James, did you find that with the latest kernel update 2.6.32-23 the wireless stopped working? I just an your fix again and all is fine. But i won't be wishing for any minor kernel updates again.

    Cheers,
    Paul

  • miwie

    Could not get working wireless again after upgrading to 2.6.32-24 because of unknown symbols. Falling back to 2.6.32-23 works.
    Any ideas?