From owner-freebsd-questions Fri Jan 10 9:50: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 EA76F37B401 for ; Fri, 10 Jan 2003 09:50:56 -0800 (PST) Received: from janeway.vonbek.dhs.org (bgm-24-94-58-56.stny.rr.com [24.94.58.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 390DD43F3F for ; Fri, 10 Jan 2003 09:50:56 -0800 (PST) (envelope-from syborg@stny.rr.com) Received: by janeway.vonbek.dhs.org (Postfix, from userid 507) id 1489F4FCA1; Fri, 10 Jan 2003 12:32:11 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by janeway.vonbek.dhs.org (Postfix) with ESMTP id 0CCF54A0F; Fri, 10 Jan 2003 12:32:11 -0500 (EST) Date: Fri, 10 Jan 2003 12:32:11 -0500 (EST) From: John Bleichert X-X-Sender: syborg@janeway.vonbek.dhs.org Reply-To: John Bleichert To: Matthew Seaman Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /dev/apm: device not configured In-Reply-To: <20030110164024.GB22415@happy-idiot-talk.infracaninophi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 10 Jan 2003, Matthew Seaman wrote: > Subject: Re: /dev/apm: device not configured > > 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 > > > > 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 > Whoops! I had forgotten to remove 'disable' from that line. Works like a charm now (although my battery is shot ...). Thanks for the pointer - JB # John Bleichert # http://vonbek.dhs.org/latest.jpg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message