On Wed, Jan 26, 2011 at 18:46, Jakub Lach <jakub_lach_AT_mailplus.pl> wrote:
>
> T400.
>
> Last time battery died on me was when I
> muted laptop and forgot about it.
>
> It is usually really loud, and kicks in
> around 3% battery charge.
>
> I'm using FreeBSD, but it should not be
> platform/acpi implementation specific?
>
> It's more of safety feature, should be
> software independent IMHO.
>
> bes regards,
> - Jakub lach
>
I've never let my battery get down to 3% without needing a charge.
I'll try it tonight and see if I get a beep.
To the OP, here's a script to spawn xmessage when your battery is too low.
#!/bin/sh
if test $(cat /proc/acpi/battery/BAT0/state|grep remaining|awk '{print
$3}') -le 500; then
xmessage -center -buttons "nothing:0,hibernate:1" "Your battery is
low, what do you want to do?"
DO=$?
if test $DO -eq 1; then
echo hibernating
fi
fi
Received on Thu Jan 27 2011 - 01:31:39 CET
This archive was generated by hypermail 2.2.0 : Thu Jan 27 2011 - 01:36:02 CET