stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] [PATCH] Add battery2.lisp - works with multiple batteries, u


From: Julian Stecklina
Subject: Re: [STUMP] [PATCH] Add battery2.lisp - works with multiple batteries, uses sysfs.
Date: Thu, 24 Jul 2008 18:13:36 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Vitaly Mayatskikh <address@hidden> writes:

> John Li <address@hidden> writes:
>
>> ---
>> I rewrote battery.lisp. Mine:
>> - uses sysfs and works with 2.6.25 kernels (which have no
>>   /proc/apci/battery/ (which I noticed when my stump started crashing
>>   hard on reboot))
>
> Generally, it depends on configuration of your kernel. For example, I
> have both 2.6.25 and /proc/acpi/battery. But, yeah, it might be
> deprecated.

FYI, contrib/battery-portable.lisp handles both interfaces with
identical output to the user. It doesn't do autoselection (yet), but you
can tweak it by setting *prefer-sysfs* (which defaults to true).

It will also grow FreeBSD support Real Soon Now(tm).

Regards,
-- 
Julian Stecklina

Well, take it from an old hand: the only reason it would be easier to
program in C is that you can't easily express complex problems in C,
so you don't. - Erik Naggum (in comp.lang.lisp)

(Spam-Experiment: http://cthulhu.c3d2.de/~astro/badpit.html )




reply via email to

[Prev in Thread] Current Thread [Next in Thread]