On 27-Jan-11 10:40:14, Chris G wrote:
[snip] The eeePc is running from an *external* battery supply, not from its own internal battery. Hence, from its point of view, 'mains' power will always be available and /proc/acpi/battery/BAT0/state won't change.
I don't want to run it from a mains power supply and rely on its internal battery to last over any mains power failures. A mains power failure where it is might last for a day or two because it will probably be caused by local circuit breakers tripping and they will need someone to go and reset them.
Please define "external battery". Is this "external battery" a UPS unit? If so, why not just query the UPS?
No, the "external battery" is simply the 400 Ah 'Leisure' battery on the boat. Come to think of it though you may have pointed me at a possibility, the battery charger that maintains the leisure battery has a remote display which has presumably some sort of interface to driveit. It could well be that I can get information from there into the computer.
-- Chris Green
A slightly "hands dirty" thought which occurred to me earlier in this thread may possibly be becoming relevent ...
Since the eeePc already has the external battery plugged into its "mains" socket, it can't monitor the mains. But perhaps you have something like one of those old "dictaphone" type mini cassette recorders lying around unused, where you could connect the mains to the recorder, and connect say the headphone output of the recorder to an input socket on the eeePc, leaving the recorder switched on, which could then be monitored by the eeePc.
That way, if mains power failed, the signal on the recorder output would drop and the eeePc would know.
Or maybe some similar bit of kit which produces a low output voltage when connected to a live mains.
Any mileage in that? Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) ted.harding@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 27-Jan-11 Time: 10:59:24 ------------------------------ XFMail ------------------------------