OLPC battery class
dwmw2 at infradead.org
Tue Jun 19 22:57:10 EDT 2007
On Tue, 2007-06-19 at 16:57 +0100, Richard Hughes wrote:
> > > Hmm. I'm not completely convinced (are there any ac adapters that report
> > > temperature current or voltage?)
> > I don't have any. They certainly exist in high-end machines though. And
> > even when they _don't_ have the temp/current/voltage measurements,
> > they're _still_ just another power supply, with fewer of the optional
> > extra properties. Having an entirely separate 'class' of devices just
> > for them is a lot of duplication for no real reason.
> Okay, but are they still under /sys/class/battery/ tho?
It became apparent that 'battery' was a bad name, due to the above. It's
now /sys/class/power_supply/$devname and looks a bit like this...
... and this...
UDEV [1136267947.825844] change /devices/platform/olpc-battery.0/power_supply/olpc-battery (power_supply)
> Is there any chance you can stick the code into a new kernel rpm for me
Soon, when I have it working properly... :)
More information about the Devel