It's absolutely inexcusable and horrible Linux doesn't have this feature (at least in XFCE/or using any console utilities), so that's how I added it:
# cat /etc/udev/rules.d/99-battery-charging.rules
SUBSYSTEM=="power_supply", ATTR{online}=="1", RUN+="/usr/local/bin/battery-logger.sh Plugged-in or charging"
# cat /etc/udev/rules.d/99-battery-discharging.rules
SUBSYSTEM=="power_supply", ATTR{online}=="0", RUN+="/usr/local/bin/battery-logger.sh Discharging"
# cat /usr/local/bin/battery-logger.sh
#! /bin/bash
export LANG=en_DK.UTF-8
echo "$(date +"%x %X") $(cat /sys/class/power_supply/BAT0/capacity)% $@" >> /var/log/battery.log
apm
says? I know there is also a proc file, cannot remember it.No APM support in kernel
(does it matter that I just now installed the package?)