Re: Voltage/current/sensor monitoring interface and Wiegand

From: Jonathan Cameron
Date: Thu Sep 09 2010 - 08:38:24 EST


....
>
> How are voltage *monitors* normally written? (note, not voltage
> *regulators*... this thing does not alter the voltage rails.) I tried
> to make sense of lm-sensors, but that seems very ad-hoc (maybe I missed
> some document that explains it) to me. It's hard to be clear on what is
> the *right* way to report a voltage or current reading to userspace.
typically hwmon, documentation is under /Documentation/hwmon/sysfs-interface.
>
> For the temperature and light sensing... temperature sensors certainly
> exist in the PC world, and maybe I should look closely at how they are
> normally done, but I wasn't sure about the light sensor. I was thinking
> maybe an input device with some new absolute value reported?
Light sensing options are currently either /misc or /staging/iio/light.

There are several different interfaces unfortunately. IIO can work with
a bridge (via uinput) to generate input events is that is what you need.
The interface is still a bit unstable, though it is getting cleaned up
at the moment.
>
> Likewise with the PIR sensor, I notice there's a "gesture" input
> (MSC_GESTURE)... seems appropriate? Or am I barking up the wrong tree?
Does it look like a button (e.g. is it a straight on off device with
no control parameters etc)? Dmitry, what would you put this as and would
this be acceptable in input?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/