From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 26 01:00:32 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D05116A4CE for ; Sun, 26 Dec 2004 01:00:32 +0000 (GMT) Received: from mail.revolutionsp.com (ganymede.revolutionsp.com [64.246.0.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B4C943D1F for ; Sun, 26 Dec 2004 01:00:32 +0000 (GMT) (envelope-from security@revolutionsp.com) Received: from mail.revolutionsp.com (localhost [127.0.0.1]) by mail.revolutionsp.com (Postfix) with ESMTP id 8FAE115CA7 for ; Sat, 25 Dec 2004 15:55:52 -0600 (CST) Received: from 81.84.175.77 (SquirrelMail authenticated user security@revolutionsp.com); by mail.revolutionsp.com with HTTP; Sat, 25 Dec 2004 15:55:52 -0600 (CST) Message-ID: <62945.81.84.175.77.1104011752.squirrel@81.84.175.77> In-Reply-To: <200412261043.30020.doconnor@gsoft.com.au> References: <62903.81.84.175.77.1104000639.squirrel@81.84.175.77> <200412261043.30020.doconnor@gsoft.com.au> Date: Sat, 25 Dec 2004 15:55:52 -0600 (CST) From: security@revolutionsp.com To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: Unable to get APM working -- help! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Dec 2004 01:00:32 -0000 Hey, Thanks for the reply! Indeed, I do have a /dev/apm with APM off and ACPI on, but.. APM version: 1.2 APM Management: Enabled AC Line status: unknown Battery Status: charging Remaining battery life: invalid value (0xffffffff) Remaining battery time: unknown Number of batteries: 0 # acpiconf -i0 acpiconf: get battery info (0) failed: Device not configured o CPU Frequency: 1600ghz o Battery left : -1% o Battery time : -1 hrs o Wireless stat: Radio is ON Neither APM or acpiconf or estctrl (it's a port) are doing their jobs. estctrl was correctly lowering the CPU clock to 600ghz, when there was no load, and maxing it (1.6GHz) under load, but with ACPI off. With ACPI on it's always at 1.6GHz. Plus, I've noticed the 'top' CPU values are plain wrong. I was compiling thunderbird, xmms, and firefox and it showed all processes with 0.00% CPU. Are there any battery status/etc KDE applications? I've searched, and found none. Here is a dmesg: Copyright (c) 1992-2004 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.3-RELEASE #1: Sat Dec 25 03:41:40 WET 2004 hugo@porntatil.bsdlan.org:/usr/src/sys/i386/compile/laptop-kernel WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant WARNING: MPSAFE network stack disabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) M processor 1.60GHz (1598.65-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6d6 Stepping = 6 Features=0xafe9f9bf real memory = 535691264 (510 MB) avail memory = 514539520 (490 MB) acpi0: on motherboard acpi0: Power Button (fixed) acpi_ec0: port 0x66,0x62 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 acpi_tz0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe0000000-0xefffffff at device 0.0 on pci0 pci0: at device 0.1 (no driver attached) pci0: at device 0.3 (no driver attached) pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) uhci0: port 0x1800-0x181f irq 6 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] 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 uhci1: port 0x1820-0x183f irq 6 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1840-0x185f irq 6 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pci0: at device 29.7 (no driver attached) pcib2: at device 30.0 on pci0 pci2: on pcib2 bfe0: mem 0xd0204000-0xd0205fff irq 6 at device 2.0 on pci2 miibus0: on bfe0 bmtphy0: on miibus0 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bfe0: Ethernet address: 00:c0:9f:6a:8e:1c bfe0: [GIANT-LOCKED] pci2: at device 4.0 (no driver attached) cbb0: mem 0xd0209000-0xd0209fff irq 10 at device 6.0 on pci2 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 fwohci0: <1394 Open Host Controller Interface> mem 0xd0200000-0xd0203fff,0xd020a000-0xd020a7ff irq 10 at device 6.2 on pci2 fwohci0: [GIANT-LOCKED] fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:c0:9f:00:00:32:14:de fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:c0:9f:32:14:de fwe0: Ethernet address: 02:c0:9f:32:14:de sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) pci2: at device 6.3 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1860-0x186f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pci0: at device 31.3 (no driver attached) pci0: at device 31.5 (no driver attached) pci0: at device 31.6 (no driver attached) acpi_lid0: on acpi0 acpi_button0: on acpi0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 npx0: [FAST] npx0: on motherboard npx0: INT 16 interface orm0: at iomem 0xe0000-0xe3fff,0xdf800-0xdffff,0xd0000-0xd17ff,0xc0000-0xcffff on isa0 pmtimer0 on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1598649123 Hz quality 800 Timecounters tick every 10.000 msec WARNING: apm_saver module requires apm enabled IPsec: Initialized Security Association Processing. acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0% ad0: 57231MB [116280/16/63] at ata0-master UDMA100 acd0: DVDR at ata1-master UDMA33 Mounting root from ufs:/dev/ad0s3a Enhanced Speedstep running at 1600 MHz iwi0: mem 0xd0208000-0xd0208fff irq 10 at device 4.0 on pci2 iwi0: Ethernet address: 00:0e:35:8d:db:e3 iwi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps iwi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps iwi0: [GIANT-LOCKED] pcm0: port 0x18c0-0x18ff,0x1c00-0x1cff mem 0xd0000800-0xd00008ff,0xd0000c00-0xd0000dff irq 10 at device 31.5 on pci0 pcm0: [GIANT-LOCKED] pcm0: > On Sun, 26 Dec 2004 05:20, security@revolutionsp.com wrote: >> Still, /dev/apm*'s never show up. Except if I actually disable APM and >> enable ACPI instead, /dev/apm will show.. but no /dev/apmctl. >> >> I'm new to the laptop world and I really would like to enable power >> saving >> features on this laptop.. I managed to get est/estctrl running, and it >> was >> changing my CPU from 600 to 1600 ghz according to the load, but when I >> disabled APM and enabled ACPI this ceases to work and the CPU will >> always >> run at 1600ghz. Also, acpiconf -i0 says device not configured.. > > Use ACPI. > It will provide an APM like interface (/dev/apm) for userland apps to use > to > get info. > > It's possible your laptop doesn't even _do_ APM :) > >> As far as I was able to see, most battery monitoring stuff (integrated >> on >> KDE and all) will depend on APM.. So I'd really like to enable it! > > ACPI will allow you to do this plus a lot more. > > If you want to do things based on power related state changes (eg lid > close, > power button press, AC unplugged etc..) you can use devd which can respond > to > ACPI events. > > -- > Daniel O'Connor software and network engineer > for Genesis Software - http://www.gsoft.com.au > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C >