Subject: Re: bin/36458 ("envstat -r" doesn't show what "envstat" shows)
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 07/05/2007 10:50:02
The following reply was made to PR bin/36458; it has been noted by GNATS.
From: yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, woods@planix.com
Subject: Re: bin/36458 ("envstat -r" doesn't show what "envstat" shows)
Date: Thu, 5 Jul 2007 19:47:46 +0900 (JST)
> You are confusing Indicator sensors with other kind of sensors. As I
> explained you before, Indicator sensors are there when something is
> enabled or in 'on' state, if they are disabled there's no need to show
> them.
>
> For example take a look at the acpiacad(4) driver. This driver shows
> the 'acpiacad0 connected' sensor if the AC Adapter is connected or
> the 'acpiacad0 disconnected' if the AC Adapter is disconnected.
>
> With your patch, acpiacad(4) would report:
>
> acpiacad0 connected: ON
> acpiacad0 disconnected: OFF
>
> And IMHO it's better what we do now, only show the Indicator sensor
> that has a value and is enabled.
IMO acpiacad (and other drivers) should stop pretending to have
pseudo "reversed" sensors and envstat should just show one of
acpiacad0 connected: ON
or
acpiacad0 connected: OFF
or
acpiacad0 connected: *
ie. what greg's patch does is the way to go.
YAMAMOTO Takashi