Re: Generic battery interface



On Wednesday 02 August 2006 17:18, Jean Delvare wrote:
Hi Pavel,

frequently it can read from the chip. And no hardware monitoring chip I
know of can tell when the monitored value has changed - you have to
read the chip registers to know.

ACPI battery can tell when values change in significant way. (Like
battery becoming critical).

Ah, good to know. But is there a practical use for this? I'd suspect
that the user wants to know the battery charge% all the time anyway,
critical or not.

Yes, the user may want to know the battery state all the time, but will not
notice the difference between the system reporting battery changes every 100
microseconds or every 10 seconds, unless the hardware eats its battery
sources for breakfast?

The system cares though, very much so in fact:

If the battery becomes critical the system should either shut down or suspend
to disk (if this is supported).
This obviously would be triggered by some sort of daemon (powersaved comes to
mind).
Ideally the suspend to disk or shutdown event triggers another event that
allows any desktop to save it's state or possibly unmount shares that could
otherwise be corrupted.

This scenario is quite different to an application reading the battery level.


Marek Wawrzyczny
-
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/



Relevant Pages

  • Re: First-timer buying AS/400 and have questions
    ... > (writes memory to disk for the next boot). ... > the 170 has a battery, which you will probably need to replace it ... Ahh, makes a little more sense now how Silverlake relates to Rochester, ...
    (comp.sys.ibm.as400.misc)
  • Re: OT - Computer question
    ... It's close to 4 years old and the battery has died. ... In the olden days, when a program wrote something to disk, it was ... A UPS is intended to give you enough time to shut the system down 'cleanly', ... A surge protector protects against 'over-voltage' damage to the _hardware_ ...
    (rec.outdoors.rv-travel)
  • Re: Powerbook G3 Wallstreet with new PRAM still wont start
    ... I wrote in March about a problem with startup: ... installation, when I pushed the restart button the computer wouldn't ... I have just installed a new PRAM battery this ... Wallstreet couldn't find its disk. ...
    (comp.sys.mac.portables)
  • Re: why use "turn off monitor or disks" when you can use system st
    ... lower speed if you have the setting at Max Battery. ... when system standby kicked in after 2 minutes. ... set up various power schemes that will shut the hard disk down and/or the ... monitor after so many minutes of inactivity. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Request for help (not me however)
    ... Recently I got a mail from someone (Ron Maurer ron@xxxxxxxxxxxxx), asking for some help regarding a Mod. ... We then get the picture of a floppy drive outline, picture of the floppy disk with an animated arrow indicating to insert a disk into the drive, and function keys across the bottom with arrows pointing to the F1 key. ... As far as I can see he has a problem with either a no-longer working / loused-up reference disk *or* a dead FDD - which would not surprise me at all. ... From an earlier mail I take that they'd replaced the BIOS battery already with no further success. ...
    (comp.sys.ibm.ps2.hardware)