On Mon, Jun 15, 2015 at 11:17:04PM +0200, Riccardo Mottola wrote:
> Hi,
> 
> on my HP laptop (dmesg below) I notice that both with acpi and with apm,
> it is always reported that the power adapter is connected, even if it is
> not. The power level of the battery seems reasonable.


Can you send an acpidump please?

-ml

> 
> With power cord attached:
> hw.sensors.acpitz0.temp0=56.00 degC (zone temperature)
> hw.sensors.acpiac0.indicator0=On (power supply)
> hw.sensors.acpibat0.volt0=14.80 VDC (voltage)
> hw.sensors.acpibat0.volt1=12.48 VDC (current voltage)
> hw.sensors.acpibat0.current0=unknown (rate), UNKNOWN
> hw.sensors.acpibat0.amphour0=4.10 Ah (last full capacity)
> hw.sensors.acpibat0.amphour1=0.21 Ah (warning capacity)
> hw.sensors.acpibat0.amphour2=0.12 Ah (low capacity)
> hw.sensors.acpibat0.amphour3=4.10 Ah (remaining capacity), OK
> hw.sensors.acpibat0.amphour4=6.00 Ah (design capacity)
> hw.sensors.acpibat0.raw0=0 (battery full), OK
> hw.sensors.acpibtn2.indicator0=On (lid open)
> 
> Without:
> hw.sensors.acpitz0.temp0=56.00 degC (zone temperature)
> hw.sensors.acpiac0.indicator0=On (power supply)
> hw.sensors.acpibat0.volt0=14.80 VDC (voltage)
> hw.sensors.acpibat0.volt1=11.84 VDC (current voltage)
> hw.sensors.acpibat0.current0=unknown (rate), UNKNOWN
> hw.sensors.acpibat0.amphour0=4.10 Ah (last full capacity)
> hw.sensors.acpibat0.amphour1=0.21 Ah (warning capacity)
> hw.sensors.acpibat0.amphour2=0.12 Ah (low capacity)
> hw.sensors.acpibat0.amphour3=4.00 Ah (remaining capacity), OK
> hw.sensors.acpibat0.amphour4=6.00 Ah (design capacity)
> hw.sensors.acpibat0.raw0=1 (battery discharging), OK
> hw.sensors.acpibtn2.indicator0=On (lid open)
> 
> 
> acpiac0 seems wrong to me.
> 
> Riccardo
> 
> OpenBSD 5.7 (GENERIC.MP) #881: Sun Mar  8 11:04:17 MDT 2015
>     dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 2129461248 (2030MB)
> avail mem = 2068914176 (1973MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xdc010 (19 entries)
> bios0: vendor Hewlett-Packard version "F.58" date 06/16/2008
> bios0: Hewlett-Packard HP Pavilion dv6500 Notebook PC
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP HPET MCFG TMOR APIC BOOT SLIC SSDT SSDT SSDT SSDT
> acpi0: wakeup devices PWRB(S4) PXSX(S3) PXSX(S4) PS2K(S3) PS2M(S3)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz, 2394.68 MHz
> cpu0:
> FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
> cpu0: 4MB 64b/line 16-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 199MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz, 2194.75 MHz
> cpu1:
> FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
> cpu1: 4MB 64b/line 16-way L2 cache
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (PEGP)
> acpiprt2 at acpi0: bus 2 (RP01)
> acpiprt3 at acpi0: bus 4 (RP02)
> acpiprt4 at acpi0: bus 8 (RP06)
> acpiprt5 at acpi0: bus 9 (PCIB)
> acpiec0 at acpi0
> acpicpu0 at acpi0: C3, C2, C1, PSS
> acpicpu1 at acpi0: C3, C2, C1, PSS
> acpitz0 at acpi0acpitz0: THR1: failed to read _CRT
> acpitz0: THR1: failed to read _CRT
> : no critical temperature defined
> acpibtn0 at acpi0: PWRB
> acpibtn1 at acpi0: SLPB
> acpiac0 at acpi0: AC unit online
> acpibat0 at acpi0: BAT0 model "Primary" serial   type LION oem
> "Hewlett-Packard"
> acpibtn2 at acpi0: LID_
> acpivideo0 at acpi0: VGA_
> acpivout0 at acpivideo0: LCD_
> acpivideo1 at acpi0: GFX0
> cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2201, 2200, 1600, 1200, 800 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c
> ppb0 at pci0 dev 1 function 0 "Intel GM965 PCIE" rev 0x0c: msi
> pci1 at ppb0 bus 1
> vga1 at pci1 dev 0 function 0 "NVIDIA GeForce 8400M GS" rev 0xa1
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 2 int 16
> uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: apic 2 int 21
> ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 2 int 18
> 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: msi
> azalia0: codecs: Realtek ALC268, Motorola/0x3055, using Realtek ALC268
> audio0 at azalia0
> ppb1 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03: msi
> pci2 at ppb1 bus 2
> wpi0 at pci2 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02:
> msi, MoW2, address 00:1c:bf:0d:dc:cc
> ppb2 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03: msi
> pci3 at ppb2 bus 4
> ppb3 at pci0 dev 28 function 5 "Intel 82801H PCIE" rev 0x03: msi
> pci4 at ppb3 bus 8
> re0 at pci4 dev 0 function 0 "Realtek 8101E" rev 0x01: RTL8101E
> (0x3400), msi, address 00:1b:24:b9:4d:0f
> rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1
> uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: apic 2 int 23
> uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: apic 2 int 19
> uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x03: apic 2 int 18
> ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x03: apic 2 int 23
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf3
> pci5 at ppb4 bus 9
> "Ricoh 5C832 Firewire" rev 0x05 at pci5 dev 9 function 0 not configured
> sdhc0 at pci5 dev 9 function 1 "Ricoh 5C822 SD/MMC" rev 0x22: apic 2 int 21
> sdmmc0 at sdhc0
> "Ricoh 5C843 MMC" rev 0x12 at pci5 dev 9 function 2 not configured
> "Ricoh 5C592 Memory Stick" rev 0x12 at pci5 dev 9 function 3 not configured
> "Ricoh 5C852 xD" rev 0x12 at pci5 dev 9 function 4 not configured
> pcib0 at pci0 dev 31 function 0 "Intel 82801HBM LPC" rev 0x03
> 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
> scsibus1 at atapiscsi0: 2 targets
> cd0 at scsibus1 targ 0 lun 0: <PIONEER, DVDRW DVR-K17B, 1.02> ATAPI
> 5/cdrom removable
> cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
> pciide0: channel 1 disabled (no drives)
> ahci0 at pci0 dev 31 function 2 "Intel 82801HBM AHCI" rev 0x03: msi,
> AHCI 1.1
> ahci0: PHY offline on port 1
> scsibus2 at ahci0: 32 targets
> sd0 at scsibus2 targ 0 lun 0: <ATA, WDC WD2500BEVS-6, 01.0> SCSI3
> 0/direct fixed naa.50014ee2ab4625a6
> sd0: 238475MB, 512 bytes/sector, 488397168 sectors
> ichiic0 at pci0 dev 31 function 3 "Intel 82801H SMBus" rev 0x03: apic 2
> int 19
> iic0 at ichiic0
> spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
> spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
> 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 pcib0
> 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
> pms0: Synaptics touchpad, firmware 6.3
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> uvideo0 at uhub1 port 4 configuration 1 interface 0 "Chicony Electronics
> Co., Ltd. HP Webcam" rev 2.00/6.06 addr 2
> video0 at uvideo0
> ugen0 at uhub5 port 1 "AuthenTec Fingerprint Sensor" rev 1.10/6.23 addr 2
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> root on sd0a (255b4caf4f8b1563.a) swap on sd0b dump on sd0b

Reply via email to