Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!orcenl!hthomas From: hthomas@oracle.nl (Huw Lyan Thomas) Newsgroups: comp.sys.laptops Subject: Battery-low warning interrupt Keywords: Low-battery, detecting Message-ID: <1192@nlsun1.oracle.nl> Date: 25 Jan 91 19:34:09 GMT Organization: Oracle Europe Lines: 13 Does anyone know if there is a general method used to tell laptop software that the battery is about to die? I disassembled a TSR utility supplied with my Zeos notebook, which makes the machine beep shortly before the battery finally gives up, so you get a chance to save your work. This utility hooks onto the NMI (non-maskable interrupt). Is the NMI used in this way on other laptops too? If not, how do they do it? The reason I need to know is I am writing a disk cache, and want to flush it to disk before the power disappears. Thanks for any information, Huw Thomas