From owner-freebsd-mobile Fri Dec 10 9: 4:51 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mail.wzrd.com (mail.wzrd.com [206.99.165.3]) by hub.freebsd.org (Postfix) with ESMTP id 2754714C85 for ; Fri, 10 Dec 1999 09:04:48 -0800 (PST) (envelope-from danh@wzrd.com) Received: by mail.wzrd.com (Postfix, from userid 91) id 520335D02B; Fri, 10 Dec 1999 12:04:47 -0500 (EST) Subject: APM woes To: freebsd-mobile@freebsd.org Date: Fri, 10 Dec 1999 12:04:47 -0500 (EST) X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 3857 Message-Id: <19991210170447.520335D02B@mail.wzrd.com> From: danh@wzrd.com (Dan Harnett) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I too, am unable to get APM working correctly on my laptop. The machine is a Dell Inspiron 3500. I have the following currently in my kernel configuration file regarding APM using 3.4-RC: options "VM86" device apm0 at isa? The problem seems to be when the laptop is in trying to resume from suspend. This laptop has the ability to suspend either to disk or to RAM, and in either case I get the same results (as I understand it, this probably isn't a factor anyways). What happens is the laptop gets the resume event (at least according to the debug info), and then freezes with what appears to be a lot of disk activity. It doesn't seem to matter whether or not I have pccards plugged in or not at the time, I still get the same behavior. Also, I have tried without the VM86 option in the kernel and have ended up with the same results. apmd was running and there were two cards in the two available slots when this information was gathered. Anyone have any ideas? Dan Harnett dmesg output including APM debug info: ------------------------------------------------------------ apm: BIOS probe/32-bit connect successful apm0 on isa apm: APM BIOS version 0102 apm: Code32 0xc00f0000, Code16 0xc00f0000, Data 0xc0000400 apm: Code entry 0x0000433e, Idling CPU disabled, Management enabled apm: CS32_limit=0xffff, CS16_limit=0xffff, DS_limit=0xffff apm: Engaged control enabled apm: found APM BIOS version 1.2 apm: Slow Idling CPU disabled Add hook "default suspend" Add hook "default resume" PC-Card VLSI 82C146 (5 mem & 2 I/O windows) Add hook "VLSI 82C146" Add hook "VLSI 82C146" pcic: controller irq 11 Add hook "VLSI 82C146" Add hook "VLSI 82C146" Initializing PC-card drivers: ep sio changing root device to wd0s1a Card inserted, slot 0 Card inserted, slot 1 APM ioctl: cmd = 0x20005005 called apm_event_enable() apmwrite: event 0x2 enabled apmwrite: event 0x3 enabled apmwrite: event 0xa enabled apmwrite: event 0xb enabled Info from /usr/sbin/apm ------------------------------------------------------------ APM version: 1.2 APM Managment: Enabled AC Line status: on-line Battery status: high Remaining battery life: 100% Remaining battery time: 3:20:00 Number of batteries: 2 Resume timer: disabled Resume on ring indicator: disabled APM Capacities: global standby state global suspend state resume timer from standby resume timer from suspend Debug information resulting from '/usr/sbin/apm -Z' (standby, works fine) ------------------------------------------------------------ Dec 10 11:37:29 rover /kernel: APM ioctl: cmd = 0x2000500c Dec 10 11:37:37 rover /kernel: Received APM Event: PMEV_STANDBYRESUME Dec 10 11:37:39 rover /kernel: Execute APM hook "default resume." Dec 10 11:37:39 rover /kernel: resumed from suspended mode (slept 00:00:07) Dec 10 11:37:39 rover /kernel: Execute APM hook "system keyboard." Dec 10 11:37:39 rover /kernel: Execute APM hook "VLSI 82C146." Dec 10 11:37:39 rover /kernel: Execute APM hook "VLSI 82C146." Dec 10 11:37:39 rover /kernel: APM ioctl: cmd = 0x40284164 Dec 10 11:37:39 rover last message repeated 2 times Dec 10 11:37:37 rover apmd[177]: apmevent 000b index 1 Dec 10 11:37:39 rover apmd: resumed at 19991210 11:37:39 Debug information resulting from '/usr/sbin/apm -z' (suspend, hangs) ------------------------------------------------------------ APM ioctl: cmd = 0x20005001 Execute APM hook "VLSI 82C146." sio1: unload,gone Return IRQ=3 Card disabled, slot 0 Execute APM hook "VLSI 82C146." ep0: unload Return IRQ=9 Card disabled, slot 1 Execute APM hook "default suspend." Received APM Event: PMEV_POWERSTATECHANGE Received APM Event: PMEV_NORMRESUME Execute APM hook "default resume." Execute APM hook "system keyboard." Execute APM hook "VLSI 82C146." Execute APM hook "VLSI 82C146." APM ioctl: cmd = 0x40284164 APM ioctl: cmd = 0x40284164 APM ioctl: cmd = 0x40284164 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message