Re: Battery monitoring does not work properly

2011-06-03 Thread MERIGHI Marcus
Hello jeanfrancois,

jfsimon1...@gmail.com (jeanfrancois), 2011.06.01 (Wed) 19:00 (CEST):
 I have seen the battery monitoring working properly after starting apmd

What does I have seen mean in terms of time that passed since then?

 however it just disappeared and I'm not able to make it work again, it

What happened between it worked and just disappeared?

 results in
 Battery state: absent, 0% remaining, unknown life estimate
 Any idea how to make it properly work ?

Just a wild guess:
You might have moved from apm to acpi:
http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yesnumbers=6569
(Do not get bored scrolling down that page, there is an important point
at the bottom.)

What exactly is your computer manufacturer and type? How old is it? 
You could try using apm instead of acpi - if your computer supports it. 
(Do not blame me in case it does not.)

Marcus

 OpenBSD 4.9 (GENERIC.MP) #794: Wed Mar  2 07:19:02 MST 2011
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
 cpu0: Genuine Intel(R) CPU T1400 @ 1.73GHz (GenuineIntel 686-class)
 2.17 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,TM2,SSSE3,CX16,xTPR,PDCM
 real mem  = 3184750592 (3037MB)
 avail mem = 3122503680 (2977MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 05/22/09, BIOS32 rev. 0 @ 0xf0010,
 SMBIOS rev. 2.5 @ 0xfce70 (31 entries)
 bios0: vendor American Megatrends Inc. version 1.03 date 05/22/2009
 bios0: ASRock Golden Series
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP APIC MCFG ECDT DBGP BOOT OEMB HPET GSCI ATKG
 SSDT
 acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB5(S3) EUSB(S3)
 USB3(S3) USB4(S3) USB6(S3) USBE(S3) HDAC(S3) P0P1(S4) GLAN(S4) P0P2(S3)
 WLAN(S3) P0P3(S3) P0P4(S3) P0P5(S3) P0P8(S4) P0P9(S3) SLPB(S4)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: apic clock running at 166MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Genuine Intel(R) CPU T1400 @ 1.73GHz (GenuineIntel 686-class)
 2.17 GHz
 cpu1:
 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,TM2,SSSE3,CX16,xTPR,PDCM
 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
 acpimcfg0 at acpi0 addr 0xe000, bus 0-255
 acpiec0 at acpi0
 acpihpet0 at acpi0: 14318179 Hz
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 1 (P0P1)
 acpiprt2 at acpi0: bus 2 (P0P2)
 acpiprt3 at acpi0: bus 3 (P0P3)
 acpiprt4 at acpi0: bus 5 (P0P4)
 acpiprt5 at acpi0: bus 6 (P0P5)
 acpicpu0 at acpi0: C2, C1
 acpicpu1 at acpi0: C2, C1
 acpitz0 at acpi0: critical temperature 112 degC
 acpiac0 at acpi0: AC unit in unknown state
 acpibat0 at acpi0: BAT0 not present
 acpibtn0 at acpi0: SLPB
 acpibtn1 at acpi0: LID_
 acpivideo0 at acpi0: VGA_
 acpivout0 at acpivideo0: DVID
 acpivout1 at acpivideo0: CRTD
 acpivout2 at acpivideo0: LCDD
 acpivout3 at acpivideo0: HDMI
 bios0: ROM list: 0xc/0x1!
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
 vga1 at pci0 dev 2 function 0 Intel GM45 Video rev 0x07
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 intagp0 at vga1
 agp0 at intagp0: aperture at 0xd000, size 0x1000
 inteldrm0 at vga1: apic 2 int 16 (irq 10)
 drm0 at inteldrm0
 Intel GM45 Video rev 0x07 at pci0 dev 2 function 1 not configured
 uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 2 int
 16 (irq 10)
 uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 2 int
 21 (irq 7)
 uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 2 int
 19 (irq 3)
 ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 2 int
 18 (irq 6)
 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 82801I HD Audio rev 0x03: apic
 2 int 22 (irq 4)
 azalia0: codecs: Realtek ALC662, ATT/Lucent/0x1040, Intel/0x2802, using
 Realtek ALC662
 audio0 at azalia0
 ppb0 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: apic 2 int
 16 (irq 10)
 pci1 at ppb0 bus 1
 re0 at pci1 dev 0 function 0 Realtek 8168 rev 0x03: RTL8168D/8111D
 (0x2800), apic 2 int 16 (irq 10), address 00:26:18:47:d2:f0
 rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
 ppb1 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: apic 2 int
 17 (irq 5)
 pci2 at ppb1 bus 2
 athn0 at pci2 dev 0 function 0 Atheros AR9285 rev 0x01: apic 2 int 17
 (irq 5)
 athn0: AR9285 rev 2 (1T1R), ROM rev 13, address 00:25:d3:0a:c8:a4
 ppb2 at pci0 dev 28 function 2 Intel 82801I PCIE rev 0x03: apic 2 int
 18 (irq 6)
 pci3 at ppb2 bus 3
 ppb3 at pci0 dev 28 function 3 Intel 82801I PCIE rev 0x03: apic 2 int
 19 (irq 3)
 pci4 at ppb3 bus 5
 ppb4 

Re: Battery monitoring does not work properly

2011-06-02 Thread Matthias Guedemann
Hi,

not sure what to do, perhaps you can provide some more details, I had
some problems with batteries on laptops, I'll try to help

 OpenBSD 4.9 (GENERIC.MP) #794: Wed Mar  2 07:19:02 MST 2011
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP

did you use this kernel before when it worked?

 acpibat0 at acpi0: BAT0 not present

It says battery absent on boot. Are you booting without battery and
insert it later?

Btw: Does the battery work at all? What Laptop is it exactly?

The battery may simply be broken ...

regards
Matthias