Monitoring Battery...

2008-02-25 Thread Mayuresh Kathe
Hello, Is there any way to monitor the charge left on the battery of a laptop? Like how much percentage of the battery charge is left to allow us to estimate how long it will work without connecting to a wall socket? I googled for monitoring battery openbsd but got nothing satisfactory. Best

Re: Monitoring Battery...

2008-02-25 Thread Antoine Jacoutot
On Mon, 25 Feb 2008, Mayuresh Kathe wrote: I googled for monitoring battery openbsd but got nothing satisfactory. apm(8) -- Antoine

Re: Monitoring Battery...

2008-02-25 Thread Boudewijn Dijkstra
googled for monitoring battery openbsd but got nothing satisfactory. $ apropos power|grep '(8)' apm (8) - Advanced Power Management control program apmd (8) - Advanced Power Management monitor daemon -- Boudewijn Dijkstra Indes - IDS B.V. +31 345 545 535

Re: Monitoring Battery...

2008-02-25 Thread Mayuresh Kathe
On Mon, Feb 25, 2008 at 5:45 PM, Antoine Jacoutot [EMAIL PROTECTED] wrote: On Mon, 25 Feb 2008, Mayuresh Kathe wrote: I googled for monitoring battery openbsd but got nothing satisfactory. apm(8) Thanks for that Antoine. I tried 'apm -b' to get the battery status, but it showed 255, which

Re: Monitoring Battery...

2008-02-25 Thread Karl Sjodahl - dunceor
On Mon, Feb 25, 2008 at 1:22 PM, Mayuresh Kathe [EMAIL PROTECTED] wrote: On Mon, Feb 25, 2008 at 5:45 PM, Antoine Jacoutot [EMAIL PROTECTED] wrote: On Mon, 25 Feb 2008, Mayuresh Kathe wrote: I googled for monitoring battery openbsd but got nothing satisfactory. apm(8) Thanks

Re: Monitoring Battery...

2008-02-25 Thread Boudewijn Dijkstra
Op Mon, 25 Feb 2008 13:22:24 +0100 schreef Mayuresh Kathe [EMAIL PROTECTED]: On Mon, Feb 25, 2008 at 5:45 PM, Antoine Jacoutot [EMAIL PROTECTED] wrote: On Mon, 25 Feb 2008, Mayuresh Kathe wrote: I googled for monitoring battery openbsd but got nothing satisfactory. apm(8) I tried

Re: Monitoring Battery...

2008-02-25 Thread Mayuresh Kathe
googled for monitoring battery openbsd but got nothing satisfactory. apm(8) Thanks for that Antoine. I tried 'apm -b' to get the battery status, but it showed 255, which is 'unknown', is it because my laptop isn't properly supported? Is there anything I could do

Re: Monitoring Battery...

2008-02-25 Thread Peter N. M. Hansteen
Mayuresh Kathe [EMAIL PROTECTED] writes: How do I check whether its a non-apm laptop? It's a ThinkPad R61i, dmesg below; in that case, sysctl hw should give something like [EMAIL PROTECTED]:~$ sysctl hw hw.machine=i386 hw.model=Genuine Intel(R) CPU T2400 @ 1.83GHz (GenuineIntel 686-class)

Re: Monitoring Battery...

2008-02-25 Thread Deanna Phillips
Peter N. M. Hansteen writes: notice the hw.sensors.acpibat0.* values. I haven't really looked for anything that shows those values live or in a graphical form, but that doesn't mean it doesn't exist or could not be easily ported from $elsewhere. This is in systat(1).

Re: Monitoring Battery...

2008-02-25 Thread Peter N. M. Hansteen
Deanna Phillips [EMAIL PROTECTED] writes: notice the hw.sensors.acpibat0.* values. I haven't really looked for anything that shows those values live or in a graphical form, but that doesn't mean it doesn't exist or could not be easily ported from $elsewhere. This is in systat(1). and with

Re: Monitoring Battery...

2008-02-25 Thread Jan
This is how I do it; #!/bin/sh # # Script used for giving system information # Last modified: 27-01-2008 while : ; do cpuspeed0=$(sysctl -n hw.cpuspeed) cputempe0=$(sysctl -n hw.sensors.cpu0.temp0) systempe0=$(sysctl -n hw.sensors.acpitz0.temp0) battcapa0=$(sysctl

Re: Monitoring Battery...

2008-02-25 Thread Christian Weisgerber
Peter N. M. Hansteen [EMAIL PROTECTED] wrote: notice the hw.sensors.acpibat0.* values. I haven't really looked for anything that shows those values live or in a graphical form, but that doesn't mean it doesn't exist or could not be easily ported from $elsewhere. ports/sysutils/xbatt: `xbatt'

Re: Monitoring Battery...

2008-02-25 Thread raven
Peter N. M. Hansteen ha scritto: Mayuresh Kathe [EMAIL PROTECTED] writes: How do I check whether its a non-apm laptop? It's a ThinkPad R61i, dmesg below; in that case, sysctl hw should give something like [EMAIL PROTECTED]:~$ sysctl hw and if not exist hw.sensors and apm -b

Re: Monitoring Battery...

2008-02-25 Thread Peter N. M. Hansteen
raven [EMAIL PROTECTED] writes: and if not exist hw.sensors and apm -b return 255 ? What we can do ? ( i think nothing) dmesg and other data would help, but yes, you may have run into something that's not supported (yet) -- Peter N. M. Hansteen, member of the first RFC 1149 implementation

Re: Monitoring Battery...

2008-02-25 Thread Owain Ainsworth
PROTECTED] wrote: On Mon, 25 Feb 2008, Mayuresh Kathe wrote: I googled for monitoring battery openbsd but got nothing satisfactory. apm(8) Thanks for that Antoine. I tried 'apm -b' to get the battery status, but it showed 255, which is 'unknown