From owner-freebsd-questions Fri Jan 10 8:40:58 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 166D337B6C1 for ; Fri, 10 Jan 2003 08:40:55 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59A0A43ED8 for ; Fri, 10 Jan 2003 08:40:54 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id h0AGeTVg022972 for ; Fri, 10 Jan 2003 16:40:29 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id h0AGeOtT022971 for freebsd-questions@FreeBSD.ORG; Fri, 10 Jan 2003 16:40:24 GMT Date: Fri, 10 Jan 2003 16:40:24 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: /dev/apm: device not configured Message-ID: <20030110164024.GB22415@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-3.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT,USER_AGENT_MUTT version=2.43 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 10, 2003 at 10:35:40AM -0500, John Bleichert wrote: > I'm trying to use apmd on my Thinkpad but I can't seem to figure it out. I > have the support in my kernel: > > root:/home/johnnyb > dmesg | grep pm > intpm0: port 0xefa0-0xefaf irq > 9 at device 7.3 on pci0 > intpm0: I/O mapped efa0 > intpm0: intr IRQ 9 enabled revision 0 > intpm0: PM I/O mapped ef00 > > but as you can see, no /dev/apm0 (which I'm expecting to be in dmesg). If > I try to use it, it fails: > > johnnyb:~ > apm -l > apm: can't open /dev/apm: Device not configured > > Any hints on where I'm going wrong? I have > > apmd_enable="YES" > > in rc.conf and it doesn't seem to error out at boot time, but it doesn't > work and I can't load it from the command line (same error about the > unconfigured device). You need the apm0 device in your kernel, as well as the specific device for the particular Power management bus chipset you have: % grep pm /var/run/dmesg.boot apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 viapropm0: SMBus I/O base at 0xe800 viapropm0: port 0xe800-0xe80f at device 17.0 on pci0 viapropm0: SMBus revision code 0x0 ie. edit the Kernel config to add a 'device apm0' line as follows: device apm0 at nexus? flags 0x20 # Advanced Power Management apm0 is in GENERIC, but it's marked 'disable' by default. I think you can enable it using the GENERIC kernel by: ena apm0 in /boot/kernel.conf and userconfig_script_load="YES" in /boot/loader.conf, but as I tend to automatically build myself a custom kernel I have never spent much time investigating. FreeBSD-5.0 might or might not work the same way, and you may find that ACPI is a better alternative for that OS version on some motherboards. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message