From owner-freebsd-mobile@FreeBSD.ORG Thu Oct 30 23:23:20 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98FC416A4CE for ; Thu, 30 Oct 2003 23:23:20 -0800 (PST) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C9A943FA3 for ; Thu, 30 Oct 2003 23:23:19 -0800 (PST) (envelope-from shadowcrest@comcast.net) Received: from comcast.net (c-24-126-185-44.we.client2.attbi.com[24.126.185.44]) by comcast.net (sccrmhc11) with SMTP id <2003103107231801100p2fv5e> (Authid: daviskacer); Fri, 31 Oct 2003 07:23:18 +0000 Message-ID: <3FA20DDE.40300@comcast.net> Date: Thu, 30 Oct 2003 23:23:10 -0800 From: Keith Davis User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031025 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Content-Type: multipart/mixed; boundary="------------070004020705050408050603" Subject: ACPI battery status for Compaq Presario 2100 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2003 07:23:20 -0000 This is a multi-part message in MIME format. --------------070004020705050408050603 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I have a laptop that only supports ACPI, not APM, and one of the big problems with it and FBSD 5.1-CURRENT is that I cannot query the battery to determine how much battery life I have left. sysctl hw.acpi doesn't detect when AC is offline ( shows status: charging ) always, and reports bogus values. I have attached sysctl hw.acpi output ( report ) and dmesg. I would appreciate any help with resolving this matter. I will be willing to supply any willing parties with any additional information they might need to resolve this issue. Thank you, Keith --------------070004020705050408050603 Content-Type: text/plain; name="report" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="report" hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S1 hw.acpi.lid_switch_state: S1 hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 5 hw.acpi.s4bios: 0 hw.acpi.verbose: 0 hw.acpi.disable_on_poweroff: 1 hw.acpi.cpu.max_speed: 8 hw.acpi.cpu.current_speed: 8 hw.acpi.cpu.performance_speed: 8 hw.acpi.cpu.economy_speed: 4 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 30 hw.acpi.thermal.tz0.temperature: 3212 hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: 3632 hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 3687 hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.acline: 1 hw.acpi.battery.life: -1 hw.acpi.battery.time: -1 hw.acpi.battery.state: 7 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 --------------070004020705050408050603 Content-Type: text/plain; name="boot.msg" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="boot.msg" Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.1-CURRENT #1: Sat Oct 25 11:49:41 PDT 2003 kdavis@:/usr/obj/usr/src/sys/ADARA Preloaded elf kernel "/boot/kernel/kernel" at 0xc0b0c000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0b0c244. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Mobile Intel(R) Celeron(R) CPU 1.80GHz (1794.36-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 Features=0xbfebf9ff real memory = 469172224 (447 MB) avail memory = 446050304 (425 MB) Pentium Pro MTRR support enabled VESA: v2.0, 65472k memory, flags:0x1, mode table:0xc09eb762 (1000022) VESA: ATI RS200M npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard pcibios: BIOS version 2.10 Using $PIR table, 9 entries at 0xc00fdf30 acpi0: Power Button (fixed) Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 unknown: I/O range not supported acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 acpi_cpu0: port 0x530-0x537 on acpi0 acpi_tz0: port 0x530-0x537 on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib0: slot 2 INTA is routed to irq 10 pcib0: slot 6 INTA is routed to irq 5 pcib0: slot 18 INTA is routed to irq 10 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 5.0 (no driver attached) ohci0: mem 0xd0000000-0xd0000fff irq 10 at device 2.0 on pci0 usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered pcm0: port 0x1000-0x10ff mem 0xd0001000-0xd0001fff irq 5 at device 6.0 on pci0 pcm0: isab0: at device 7.0 on pci0 isa0: on isab0 pci0: at device 8.0 (no driver attached) cbb0: mem 0xd0003000-0xd0003fff at device 10.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 pcib0: slot 10 INTA is routed to irq 11 cbb0: [MPSAFE] atapci0: port 0x2000-0x200f at device 16.0 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] pci0: at device 17.0 (no driver attached) sis0: port 0x2400-0x24ff mem 0xd0004000-0xd0004fff irq 10 at device 18.0 on pci0 sis0: Silicon Revision: DP83816A sis0: Ethernet address: 00:0b:cd:31:63:c0 miibus0: on sis0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto acpi_button0: on acpi0 acpi_lid0: on acpi0 acpi_acad0: on acpi0 acpi_cmbat0: on acpi0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 acpi_ec0: port 0x66,0x62 on acpi0 ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 0 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/1 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A orm0: