Re: suspend on ThinkPad X31 hangs

Dave Tweten <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
[email protected] said:
>I recently installed 4.8-RC on an IBM thinkpad X31. APM seems to work
>(reporting battery status), and hibernation to a special partition
>(created with the IBM tool) works. But suspend has problems resuming.

That's strange, since FreeBSD 4.8 doesn't know about hibernation.  It just 
thinks it's being put to sleep.  The BIOS knows to copy things to the 
hibernation partition and shut down after the OS has gone to sleep.

You didn't answer any of the following questions in your original message, 
so:

1. Did you put

	options		CPU_SUSP_HALT

   and

	device		apm0

   into your custom kernel config?

2. Did you put all of:

	apm_enable="YES"
	apmd_enable="YES"
	apmd_flags="-f /usr/local/etc/apmd.conf"

   into /etc/rc.conf (changing the path name to the location of your
   customized apmd configuration file)?

3. Did you customize apmd.conf to incorporate

	apm_event SUSPENDREQ, USERSUSPENDREQ {
	    exec "/usr/local/etc/rc.suspend";
	}

	apm_event NORMRESUME, CRITRESUME, STANDBYRESUME {
	    exec "/usr/local/etc/rc.resume";
	}

   or the rough equivalent, to invoke your customized suspend and
   resume scripts?

4. Does your customized suspend script do

	sync && sync && sync
	sleep 3
	zzz

   to make sure all outstanding disk I/O is complete before you
   actually suspend?

5. Are you running any detachable devices (PCCard or USB) when you
   suspend?  If so, you may want to detach them in rc.suspend and
   re-attach them in rc.resume.

You said you've already created a hibernation slice.  If you've done all 
these things, and if your X31 works at all like my T23, suspend and 
hibernate should work well, except for the need to switch to a virtual 
console and back to X when you wake up from hibernation.
-- 
M/S 258-5                    |1024-bit PGP fingerprint:|[email protected]
NASA Ames Research Center    | 41 B0 89 0A  8F 94 6C 59|     (650) 604-4416
Moffett Field, CA  94035-1000| 7C 80 10 20  25 C7 2F E6|FAX: (650) 604-4377
We each earn what freedom of speech we defend for those who most offend us.


_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.