From owner-freebsd-mobile@FreeBSD.ORG Mon Jun 9 17:53:40 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 268F937B401 for ; Mon, 9 Jun 2003 17:53:40 -0700 (PDT) Received: from gilmore.nas.nasa.gov (gilmore.nas.nasa.gov [129.99.33.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id A248F43F3F for ; Mon, 9 Jun 2003 17:53:39 -0700 (PDT) (envelope-from tweten@nas.nasa.gov) Received: from gilmore.nas.nasa.gov (IDENT:s03GEYOWL5B6+rAKzmYVjrdFwwOUW/Vk@localhost.nas.nasa.gov [127.0.0.1]) by gilmore.nas.nasa.gov (8.12.9/8.12.9) with ESMTP id h5A0rd2o004344; Mon, 9 Jun 2003 17:53:39 -0700 (PDT) (envelope-from tweten@gilmore.nas.nasa.gov) X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Dan Pelleg From: Dave Tweten Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 09 Jun 2003 17:53:39 -0700 Message-ID: <4343.1055206419@gilmore.nas.nasa.gov> Sender: tweten@nas.nasa.gov cc: mobile@freebsd.org Subject: Re: suspend on ThinkPad X31 hangs X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David.E.Tweten@nasa.gov List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 00:53:40 -0000 daniel+bsd@pelleg.org 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:|tweten@nas.nasa.gov 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.