From owner-freebsd-mobile@FreeBSD.ORG Thu Jan 1 13:44:17 2004 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 BAB3216A4CE; Thu, 1 Jan 2004 13:44:17 -0800 (PST) Received: from conure.mail.pas.earthlink.net (conure.mail.pas.earthlink.net [207.217.120.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1FF743D58; Thu, 1 Jan 2004 13:44:04 -0800 (PST) (envelope-from fabrizio@nldesign.com) Received: from 1cust158.tnt2.harrisonburg.va.da.uu.net ([67.201.40.158] helo=192.168.0.46) by conure.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1AcAbl-0002zK-00; Thu, 01 Jan 2004 13:43:59 -0800 From: Fabrizio Parrella Organization: NLDesign To: mobile@freebsd.org, current@freebsd.org Date: Thu, 1 Jan 2004 16:43:42 +0000 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401011643.43172.fabrizio@nldesign.com> Subject: ACPI - APM .. weird things 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: Thu, 01 Jan 2004 21:44:17 -0000 HI! I sent an email few days ago about ACPI and APM problems on my compaq presario 1800. I update the system,from 5.1-RELEASE to 5.2-RC2, downalod the sys with cvsup, recompile ONLY the kernel to : >uname -a FreeBSD 127.0.0.1 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Dec 31 15:04:17 GMT 2003 root@127.0.0.1:/usr/obj/usr/src/sys/MYKERNEL i386 (MYKERNEL is the GENERIC with device pcm, because adding snd_ess_load="YES" on loader.conf wasn't actually creating /dev/dsp.. but this is a different story :p) with 5.1-RELEASE, 5.2 RC2 and now 5.2 CURRENT, the problem is still the same, the ACPI doesn't show the life time of the battery. with the 5.2 CURRENT I have tried to enable the apm: >loader.conf: add apm_load="YES" #added >device.hints : hint.acpi.0.disabled=1 #added hint.apm.0.disabled=0 #modified >rc.conf apm_enabled="YES" #added apmd_enabled="YES" #added after the reboot, nothing didn't change, the apm was only saying that I had a battery and the total charge of it, but still nothing about the time, so I decide to put back the acpi, so I remmed out in device.hints the lines that I added, and delete the line on loader.conf, forgottin to delete the lines in the rc.conf after the reboot I saw the line in the dmesg that said that apm wasn't compiled with the kernel, I remmed out that lines, but before reboot I checked the battery status writing APM >apm APM version: 1.2 APM Management: Disabled AC Line status: off-line Battery status: high Remaining battery life: 83% Remaining battery time: 2:56:00 Number of batteries: 1 Battery 0: Battery status: high Remaining battery life: 83% Remaining battery time: 2:56:00 Resume timer: unknown [...] I can see the battery time... I start KDE and also KDE was working fine with it, reading the life and the time of the battery.... I rebooted with the lines in the rc.conf remmed out, I still get error on the boot from the ACPI (I'll copy the dmesg), but I still can see the life and time of the battery, except for KDE, that says that apm is not running... AND.. when I "put to sleep" the computer, the monitor doesn't go off, except if I close the lid. when I try to "wake up" the computer, sometime I get some errors after: ata0: resetting devices .. but everything works fine. I don't get the errors if I am in X (KDE) last thing: when I was running 5.1-RELEASE the acpi was putting down the use of the CPU in battery mode from 8 to 4, with 5.2 the cpu works always at 8: >sysctl -a hw.acpi (with acline =1) hw.acpi.supported_sleep_state: S1 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: 1 hw.acpi.verbose: 0 hw.acpi.disable_on_poweroff: 1 hw.acpi.reset_video: 1 hw.acpi.cpu.throttle_max: 8 hw.acpi.cpu.throttle_state: 8 hw.acpi.cpu.cx_supported: C1/0 C2/10 hw.acpi.cpu.cx_lowest: 0 hw.acpi.cpu.cx_history: 767689/0 0/0 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 30 hw.acpi.thermal.tz0.temperature: 3252 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: 3732 hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.battery.life: 88 hw.acpi.battery.time: -1 hw.acpi.battery.state: 2 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 hw.acpi.acline: 1 >sysctl -a ha.acpi (with the battery only) hw.acpi.supported_sleep_state: S1 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: 1 hw.acpi.verbose: 0 hw.acpi.disable_on_poweroff: 1 hw.acpi.reset_video: 1 hw.acpi.cpu.throttle_max: 8 hw.acpi.cpu.throttle_state: 8 hw.acpi.cpu.cx_supported: C1/0 C2/10 hw.acpi.cpu.cx_lowest: 0 hw.acpi.cpu.cx_history: 772436/0 0/0 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 30 hw.acpi.thermal.tz0.temperature: 3252 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: 3732 hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.battery.life: 88 hw.acpi.battery.time: 576 hw.acpi.battery.state: 1 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 hw.acpi.acline: 0 >dmesg 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.2-CURRENT #0: Wed Dec 31 15:04:17 GMT 2003 root@127.0.0.1:/usr/obj/usr/src/sys/MYKERNEL Preloaded elf kernel "/boot/kernel/kernel" at 0xc0af4000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0af41f4. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel Pentium III (796.54-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x387f9ff real memory = 134152192 (127 MB) avail memory = 121618432 (115 MB) Pentium Pro MTRR support enabled npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard pcibios: BIOS version 2.10 Using $PIR table, 9 entries at 0xc00fdf30 ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST acpi0: Power Button (fixed) Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 acpi_cpu0: port 0x530-0x537 on acpi0 acpi_tz0: port 0x530-0x537 on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib0: slot 7 INTD is routed to irq 11 pcib0: slot 9 INTA is routed to irq 3 pcib0: slot 17 INTA is routed to irq 5 pcib0: slot 18 INTA is routed to irq 11 agp0: mem 0xf4000000-0xf7ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pcib1: slot 0 INTA is routed to irq 5 pci1: at device 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x14a0-0x14af at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] uhci0: port 0x1480-0x149f irq 11 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at device 7.3 (no driver attached) pci0: at device 9.0 (no driver attached) cbb0: 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] pcm0: port 0x14d8-0x14db,0x14dc-0x14df,0x14b0-0x14bf,0x14c0-0x14cf,0x1400-0x143f irq 5 at device 17.0 on pci0 fxp0: port 0x1440-0x147f mem 0xf0000000-0xf00fffff,0xf0100000-0xf0100fff irq 11 at device 18.0 on pci0 fxp0: Ethernet address 00:02:a5:14:aa:7a miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST ACPI-0175: *** Error: Method execution failed [\\_SB_.BATT._STA] (Node 0xc1f52d00), AE_NOT_EXIST acpi_cmbat0: on acpi0 acpi_acad0: on acpi0 acpi_lid0: 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 fdc0: cannot reserve control I/O port range (control port) fdc0: cannot reserve control I/O port range (control port) orm0: