Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 1999 18:58:23 +1200
From:      Mike Muir <mmuir@es.co.nz>
To:        Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: followup to apm problems.
Message-ID:  <37C8DA0F.2F8A9D7A@es.co.nz>
References:  <37C3C2F4.DE91BB21@es.co.nz> <199908270647.PAA08317@tasogare.imasy.or.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Mitsuru IWASAKI wrote:

> OK.  Probably `slept 00:00:00 - 00:00:40' problem was caused by PS/2
> mouse, I think.  Do we need something to do with psm on suspending as
> well as resuming?

Im not sure anything needs to be done for PS/2.. check out these
results..

> > > > ed1: <NE2000 PCI Ethernet (RealTek 8029)> irq 3 at device 9.0 on pci0

> Ahh, I meant just unplug cable tentatively to confirm.
> # and uninstall NIC if possible :)
> After the problem analyzed, we just try to fix it in proper place.

Unplugged NIC, not diabled:

Standby:

Aug 29 18:33:44 pyros /kernel.old: APM ioctl: cmd = 0x2000500c
Aug 29 18:36:28 pyros /kernel.old: Received APM Event:
PMEV_STANDBYRESUME
Aug 29 18:36:28 pyros /kernel.old: Execute APM hook "default resume."
Aug 29 18:36:28 pyros /kernel.old: resumed from suspended mode (slept
00:02:42)
Aug 29 18:36:28 pyros /kernel.old: Execute APM hook "PS/2 mouse."
Aug 29 18:36:28 pyros /kernel.old: APM ioctl: cmd = 0x40284164
Aug 29 18:36:28 pyros /kernel.old: APM ioctl: cmd = 0x40284164
Aug 29 18:36:28 pyros apmd[355]: apmevent 000b index 3 
Aug 29 18:36:28 pyros apmd: resumed at 19990829 18:36:28
Aug 29 18:36:28 pyros /kernel.old: APM ioctl: cmd = 0x40284164


And i pressed a key because i couldnt be biffed waiting any longer :) So
it seems to be working properly!
(Yes i am running apmd as well)

Suspend:

Aug 29 18:41:17 pyros /kernel.old: APM ioctl: cmd = 0x20005001
Aug 29 18:42:33 pyros /kernel.old: Execute APM hook "default suspend."
Aug 29 18:42:33 pyros /kernel.old: Received APM Event: PMEV_NORMRESUME
Aug 29 18:42:33 pyros /kernel.old: Execute APM hook "default resume."
Aug 29 18:42:33 pyros /kernel.old: resumed from suspended mode (slept
00:01:15)
Aug 29 18:42:33 pyros /kernel.old: Execute APM hook "PS/2 mouse."
Aug 29 18:42:33 pyros /kernel.old: APM ioctl: cmd = 0x40284164
Aug 29 18:42:33 pyros /kernel.old: APM ioctl: cmd = 0x40284164
Aug 29 18:42:33 pyros apmd[355]: apmevent 0003 index 5 
Aug 29 18:42:33 pyros apmd: resumed at 19990829 18:42:33
Aug 29 18:42:33 pyros /kernel.old: APM ioctl: cmd = 0x40284164

Same deal, I resumed it manually - so it seems to be working also.

> At least, apm is in /usr/sbin/, apm -z touches /dev/apm and apmd
> writes log on /var/log/ via syslog :)
> Using `sysctl -w machdep.apm_suspend_delay=30 (or enough time for
> spinning down)' and moving `camcontrol stop' to the end of command
> list would be success.  Otherwise, please forgive me. :)

I tried that and the drive spins down, and right about 5 seconds before
the 30 seconds is up, it spins back up again by itself, then it goes
into suspend, but then comes right back out (presumably because of the
disk activity).

P.S plugging it back in, i do notice it resumes whenever there is
activity on the hub :D


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37C8DA0F.2F8A9D7A>