From owner-freebsd-mobile Fri May 19 13:58:16 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from spike.porcupine.org (umbilical.porcupine.org [168.100.189.1]) by hub.freebsd.org (Postfix) with ESMTP id 1B52437B88C for ; Fri, 19 May 2000 13:58:12 -0700 (PDT) (envelope-from wietse@porcupine.org) Received: by spike.porcupine.org (Postfix, from userid 100) id 8D91B4563D; Fri, 19 May 2000 16:58:09 -0400 (EDT) Subject: FIXED: Premature wakeup (TP600/FBSD3.4/PAO3) To: freebsd-mobile@freebsd.org X-Time-Zone: USA EST, 6 hours behind central European time Message-Id: <20000519205809.8D91B4563D@spike.porcupine.org> Date: Fri, 19 May 2000 16:58:09 -0400 (EDT) From: wietse@porcupine.org (Wietse Venema) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thinkpad 600 + FreeBSD 3.4-RELEASE + generic PAO3 kernel. > I wrote: > > There is still one problem: after zzz or closing the lid, the > > machine wakes up a few seconds after it suspends, even when it was > > turned on from battery power. > > Update: the premature wakeup happens only when a pc card is present. Here's a fix, in case someone experiences the same problem. 1. Run apmd (set apmd=YES in /etc/rc.conf). 2. Add to the middle of /etc/rc.suspend the moral equivalent of: /usr/sbin/pccardc power 0 0 /usr/sbin/pccardc power 1 0 3. Add to the middle of /etc/rc.resume the moral equivalent of: /usr/sbin/pccardc power 0 1 /usr/sbin/pccardc power 1 1 Hopefully there is a command that can find out what slots exist, so that the above can be made more generic. Perhaps adding such commands to /etc/rc.{suspend,resume} is a worthwhile suggestion for future releases. These commands can avoid unnecessary confusion with future users. Wietse To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message