That is all.

Posted Mon 05 Jan 2009 08:27:04 PM PST Tags: eeepc

I have installed the 2.6.24 Linux kernel from sid on my Eee. I built the ACPI and wireless modules for this kernel. Besides some kernel errors on boot-up, the new kernel is working. Wireless and sound work. I haven't built the ethernet module yet.

The new kernel got rid of /proc/acpi/battery, so the XFCE4 panel battery plugin is no longer working. I wrote a script which uses the battery info from /sys, and prints the status and the percent remaining. I have the XFCE4 panel Generic Monitor plugin running this script and printing the battery info in the task bar.

#!/bin/sh
# Print battery status

status=$(cat /sys/class/power_supply/BAT0/status)
charge_now=$(cat /sys/class/power_supply/BAT0/charge_now)
charge_full=$(cat /sys/class/power_supply/BAT0/charge_full)
charge_percent=$(echo "100*$charge_now/$charge_full" | bc)

echo "$status"
echo "$charge_percent%"

Update: atl2-source 2.0.3-2 (in sid) builds fine using module-assistant. The network device shows up after loading the module, but I haven't tested connectivity yet.

Posted Mon 05 Jan 2009 08:27:04 PM PST Tags: eeepc