On Mon, Feb 25, 2008 at 6:25 PM, Karl Sjodahl - dunceor <[EMAIL PROTECTED]> wrote: > > 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 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 to help developers support it better? > > > > Best, > > > > ~Mayuresh > > > > > > If its an non-apm laptop you can check it via acpi. Use sysctl and > check the hw section. There it was how many volts left.
How do I check whether its a non-apm laptop? It's a ThinkPad R61i, dmesg below; OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44 MDT 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) Dual CPU T2310 @ 1.46GHz ("GenuineIntel" 686-class) 1.47 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR real mem = 526667776 (502MB) avail mem = 501596160 (478MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 06/28/07, BIOS32 rev. 0 @ 0xfdca0, SMBIOS rev. 2.4 @ 0xe0010 (71 entries) bios0: vendor LENOVO version "7OET24WW (1.03 )" date 06/28/2007 bios0: LENOVO 8932A32 pcibios0 at bios0: rev 3.0 @ 0xfdc30/0x3d0 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde80/304 (17 entries) pcibios0: bad IRQ table checksum pcibios0: PCI BIOS has 17 Interrupt Routing table entries pcibios0: no compatible PCI ICU found pcibios0: Warning, unable to fix up PCI interrupt routing pcibios0: PCI bus #22 is the last bus bios0: ROM list: 0xc0000/0x10000! 0xd0000/0x1a00 0xd1a00/0x1000 0xe0000/0x10000! acpi at mainbus0 not configured cpu0 at mainbus0 cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130b2b06000613 cpu0: using only highest and lowest power states cpu0: Enhanced SpeedStep 800 MHz (1004 mV): speeds: 1467, 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "Intel 82965GM MCH" rev 0x0c vga1 at pci0 dev 2 function 0 "Intel 82965GM Video" rev 0x0c: aperture at 0xe0000000, size 0x8000000 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) "Intel 82965GM Video" rev 0x0c at pci0 dev 2 function 1 not configured uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: irq 11 uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: irq 11 ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: irq 11 ehci0: timed out waiting for BIOS usb0 at ehci0: USB revision 2.0 uhub0 at usb0: Intel EHCI root hub, rev 2.00/1.00, addr 1 azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x03: irq 11 azalia0: host: High Definition Audio rev. 1.0 azalia0: codec: Conexant/0x5045 (rev. 1.0), HDA version 1.0 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03 pci1 at ppb0 bus 2 ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03 pci2 at ppb1 bus 3 wpi0 at pci2 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: irq 11, MoW1, address 00:1c:bf:2c:fd:aa ppb2 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x03 pci3 at ppb2 bus 4 bge0 at pci3 dev 0 function 0 "Broadcom BCM5787M" rev 0x02, BCM5754/5787 A2 (0xb002): irq 11, address 00:1a:6b:d4:c9:0e brgphy0 at bge0 phy 1: BCM5787 10/100/1000baseT PHY, rev. 0 ppb3 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x03 pci4 at ppb3 bus 5 ppb4 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x03 pci5 at ppb4 bus 13 uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: irq 10 uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: irq 11 uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x03: irq 11 ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x03: irq 11 ehci1: timed out waiting for BIOS usb1 at ehci1: USB revision 2.0 uhub1 at usb1: Intel EHCI root hub, rev 2.00/1.00, addr 1 ppb5 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf3 pci6 at ppb5 bus 21 cbb0 at pci6 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0xba: irq 10 "Ricoh 5C832 Firewire" rev 0x04 at pci6 dev 0 function 1 not configured sdhc0 at pci6 dev 0 function 2 "Ricoh 5C822 SD/MMC" rev 0x21: irq 11 sdmmc0 at sdhc0 "Ricoh 5C843" rev 0x11 at pci6 dev 0 function 3 not configured "Ricoh 5C592 Memory Stick" rev 0x11 at pci6 dev 0 function 4 not configured "Ricoh 5C852 xD" rev 0x11 at pci6 dev 0 function 5 not configured cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 22 device 0 cacheline 0x0, lattimer 0xb0 pcmcia0 at cardslot0 ichpcib0 at pci0 dev 31 function 0 "Intel 82801HBM LPC" rev 0x03: PM disabled pciide0 at pci0 dev 31 function 1 "Intel 82801HBM IDE" rev 0x03: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVDRAM GSA-T20N, WX05> SCSI0 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 ignored (disabled) ahci0 at pci0 dev 31 function 2 "Intel 82801HBM SATA" rev 0x03: irq 10, AHCI 1.1 scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 0 lun 0: <ATA, HITACHI HTS54168, SB2I> SCSI2 0/direct fixed sd0: 76319MB, 9729 cyl, 255 head, 63 sec, 512 bytes/sec, 156301488 sec total ichiic0 at pci0 dev 31 function 3 "Intel 82801H SMBus" rev 0x03: irq 11 iic0 at ichiic0 usb2 at uhci0: USB revision 1.0 uhub2 at usb2: Intel UHCI root hub, rev 1.00/1.00, addr 1 usb3 at uhci1: USB revision 1.0 uhub3 at usb3: Intel UHCI root hub, rev 1.00/1.00, addr 1 usb4 at uhci2: USB revision 1.0 uhub4 at usb4: Intel UHCI root hub, rev 1.00/1.00, addr 1 usb5 at uhci3: USB revision 1.0 uhub5 at usb5: Intel UHCI root hub, rev 1.00/1.00, addr 1 usb6 at uhci4: USB revision 1.0 uhub6 at usb6: Intel UHCI root hub, rev 1.00/1.00, addr 1 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 aps0 at isa0 port 0x1600/31 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 biomask effd netmask effd ttymask ffff pctr: 686-class user-level performance counters enabled mtrr: Pentium Pro MTRR support ugen0 at uhub2 port 1 ugen0: Broadcom Corp BCM2045B, rev 2.00/1.00, addr 2 dkcsum: sd0 matches BIOS drive 0x80 root on sd0a swap on sd0b dump on sd0b