Hi! > > It would be nice to move that to some arch independent generic > > implementation of these things and to leave the APM emulation behind. > > The battery information should be a sysfs class (see the backlight/led > > classes as examples of sysfs classes). The suspend/resume event handling > > would be something new as far as I know and ideally should support > > suspending/resuming individual sections of device hardware as well as > > the whole system. > > Triggering suspend/resume is already generic in the form of the > /sys/power/state interface. There's been discussion of producing a > generic battery class lately. There's some trend towards tying suspend > requests into the input layer, but how appropriate that is may > > depend on suspend requests into input layer.. No, I do not think Dmitry will allow us to do that. Yes, we definitely want some kind of "generic battery" layer. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html