Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 2000 16:58:09 -0400 (EDT)
From:      wietse@porcupine.org (Wietse Venema)
To:        freebsd-mobile@freebsd.org
Subject:    FIXED: Premature wakeup (TP600/FBSD3.4/PAO3)
Message-ID:  <20000519205809.8D91B4563D@spike.porcupine.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000519205809.8D91B4563D>