Subject: Re: envstat -s sensor -d device
To: Juan RP <firstname.lastname@example.org>
From: Iain Hibbert <email@example.com>
Date: 09/23/2007 16:27:15
On Sun, 23 Sep 2007, Juan RP wrote:
> > I'm not sure what the intention here is: the name of the sensor seems
> > to contain the name of the device, but although this is done in
> > dev/acpi when registering the sensors, it seems that envstat(1) does
> > not print the name of the device separately in any case .. should it?
> I don't think it's a bug. Device name is shown you use -D
> (to list registered drivers).
> The sensor description is "acpibat0 design cap" and you need to
> pass the exact string to -s. As there is not naming convention
> for sensor descriptions, the device writer uses what he thinks
> is better.
I think then, that we need a naming convention. The name of the device
should not need to be embedded in the name of the sensor, since the API
requires that you know the name of the device anyway.
> In acpibat(4) and acpitz(4) is ok to use device name before the
> real string in sensor description, otherwise you wouldn't know
> what sensor is from foo0 or foo1.
exactly - envstat(8) should show it, no? how would it look if more than
one aiboost(4) device were configured? (I don't know if thats unpossible
with todays technology, but next year?)