King Arthur

Yesterday I went to the movies with a friend of mine to see “King Arthur”. It had been a while since we last met. We went to the big movie theatre in Copenhage (Imperial) where we spend some time before the movie to catch up. I had a great time and the movie was good, not like Braveheart or Gladiator but okay entertainment no doubt.

Debian Sarge on IBM X40 howto - Part 7: Mouse track dot

I have experienced that my mouse isn’t working after a reboot a few times. I think it happens after a system update… and this morning I was hit again. When starting X the mouse pointer wouldn’t move.

After googleing around for a while I found out that the psmouse module wasn’t loaded. I compared an lsmod output I had found on the net with my own and discovered that the above module wasn’t loaded:

modprobe psmouse

Did the trick and even without reloading X.

Debian Sarge on IBM X40 howto - Part 6: Wireless (Take 2)

As I mentioned in an earlier post, I found out that I had been using a completly wrong driver for my wireless card. The juice for my card is a Multiband Atheros Driver for WiFi (MADWIFI). I found a Debian specific driver compile guide on their homepage.

It is a good guide but for Debian users with less tech-knowlegde and rutine it misses a few things IMHO. I have addressed the problems I ran into here.

A part from the packages mentioned in the guide I was missing shareutils (providing uudecode), lib6-dev and sysutils to follow the guide and avoiding error messages ofcource. The missing uudecode was beginning to give me grey hair (in an age of 24 that is not a good sign). The warning (error) message was hidden in the output code many lines before the make-file actually worte ‘Error’ and exited:

apt-get install sharutils lib6-dev sysutils

I’m using Debian pre-compiled kernels (at the writing time a 2.6.7-1) which tricked me a bit. I used the make-kpkg --append-to-version "-686" --revision 2.6.7-1 which is wrong!

Instead use (look in guide to know where and when):

make-kpkg --append-to-version "-1-686" --revision 2.6.7 --config old configure
make-kpkg --append-to-version "-1-686" --revision 2.6.7 --added-modules madwifi modules_image

Writing this post in my weblog on my laptop sitting in my bed without any wires connected at all - Now everything is forgiven and forgotten.

Debian Sarge on IBM X40 howto - Part 5: CPU frequency scaling

This was quite easy:

apt-get install cpufreqd
apt-get install gnome-cpufreq-applet

Finally add the applet to the GNOME panel.

Make sure that the acpi module is loaded in order to get cpufreqd to run, because without cpufreqd no frequency scaling will happen.

Now when ever you pull the power for your laptop the frequency will be scaled down to 66% until the system requires the recources. This can be cunfigured in /etv/cpufreqd.conf.

Debian Sarge on IBM X40 howto - Part 4: Wireless

I was really nerveus about getting wireless to work…

Update, 24. July 2004, an hour later: Well it was bound to be an impossible mission from the start. The computer dosn’t even have an Intel fucker of not supported death wireless card I thought it had :) What a waste of time.

I have an Atheros (AR5212 802.11abg) card instead.</i>

After googeling I found that my wireless card is an Intel 2200BG which at the time of the writing of the guides I found wasn’t supported very well, but the linked to the ipw2200 site on SourceForge developing the Linux driver. But what the hell - I’ll give it a try… it might work.

There is a few requirements for the driver to work:

  • The kernel have to be a 2.6 kernel and have “CONFIG_NET_RADIO” enabled (CONFIG_NET_RADIO=y). This is all okay if you are using a precompiled kernel from the Debian Sarge archive. I used kernel-image-2.6.7-1-686 and the corresponding kernel headers.
  • Wireless tools is needed an is apt-getable with the following:

    apt-get install wireless-tools
  • Source code for the driver downloadable from SourceForge
  • Firmware for the wireless card downloadable from the projects website

To compile the source code you also need the packages gcc and make. For a more detailed howto consult the project website.

Now compile the source code:

debian:~# tar xzvf ipw2200-0.2.tgz
debian:~# cd ipw2200-0.2
debian:~# make

Unpack the firmware files to /usr/lib/hotplug/firmware:

moprobe firmware_class

If this isn’t loaded you will get an error like this “-1 Unknown symbol in module

and finally run :

insmod ipw2200.ko

Well I didn’t get any errors… now I have to figure out how this works :) Step 2… test that it is actually working.

dmesg dosn’t detect any new ahrdware when I load the modules, so I don’t think that it is working?!