discuss-gnustep
[Top][All Lists]
Advanced

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

Re: ANN: BatMon 0.3


From: Andreas Schik
Subject: Re: ANN: BatMon 0.3
Date: Tue, 08 Jul 2008 08:58:11 +0200
User-agent: GNUMail (Version 1.2.0)

On 2008-07-07 23:48:17 +0200 Riccardo <multix@ngi.it> wrote:

> Hi,
> 
> 
>>>> I've written code in SystemConfig in the Étoilé repository for  getting 
>>>> power status on FreeBSD and OpenBSD as well.  If this is of  any use to 
>>>> you, feel free to steal it - it's BSDL.
>>> 
>>> Didn't Andreas Schick write an Etoile menulet that used DBus to  determine 
>>> the battery status? It used to be available at 
>>> www.andreasheppel.de/software.html
> 
> I don't like the idea of depending on DBus. All this power  checking has too 
> many layers, indirections and uncertainity already. Now Linux has also /sys 
> filesystem and I bet I will end needing to support it alongside of /proc.
And this is the exact reason why I went for dbus with my battery menulet. My 
first approach (on Linux) was to use the apm/acpi stuff in /proc, but this 
needed regular polling, lots of code to parse the output and (because of the 
polling) was rather CPU consuming. Once I had the necessary parts of dbus and 
HAL wrapped in ObjC the rest was child's play.
I can see your reasoning against dbus on systems where HW access is simpler and 
more consistent, but using either conditional code or different bundles you can 
use the best solution for each OS. And for Linux, that's my opinion, dbus/HAL 
is the much better solution than polling proc, sys or whatever.

-Andreas

-- 
Mail: andreas dot schik at web dot de
Home: http://www.andreasheppel.de

PGP Key is available from the MIT key server (pgp.mit.edu).

Attachment: RFC3156.txt
Description: Text document

Attachment: pgpkhmfC49Nva.pgp
Description: PGP signature


reply via email to

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