From owner-freebsd-mobile Thu Aug 15 17:46:39 2002 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 1B19B37B400 for ; Thu, 15 Aug 2002 17:46:36 -0700 (PDT) Received: from la-mail3.digilink.net (la3.digilink.net [205.147.0.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FD3943E6A for ; Thu, 15 Aug 2002 17:46:35 -0700 (PDT) (envelope-from metrol@metrol.net) Received: from metrol@metrol.net (metrol@mach26-2.testequity.net [205.147.16.59] (may be forged)) by la-mail3.digilink.net (8.11.3/8.11.3) with ESMTP id g7G0jij29953 for ; Thu, 15 Aug 2002 17:45:44 -0700 (PDT) Content-Type: text/plain; charset="iso-8859-1" From: Michael Collette To: "Kevin Oberman" Subject: Re: Thinkpad T23 Coming Out of Sleep Date: Thu, 15 Aug 2002 17:45:43 -0700 User-Agent: KMail/1.4.2 Cc: Andy Sparrow , FreeBSD Mailing Lists References: <20020810210250.67E555D04@ptavv.es.net> In-Reply-To: <20020810210250.67E555D04@ptavv.es.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208151745.43465.metrol@metrol.net> Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Just to get a quick follow up on this out there. After almost a week of going into and out of sleep mode without incident, today it wacked out again on me. One thing that was a little different this time was that I was running on battery. Of course it had to happen right in the middle of a management meeting! I had put it into sleep mode 3 times prior in that same meeting, as it kept seeming like the meeting was coming to close when it wasn't. Those 3 prior times, no incident. #4 wake up glitched me. Also different was the symptoms. Instead of just going into a reboot, the system just went about accessing the drive like crazy for over 5 minutes. Keyboard and mouse were dead, so I powered it down out of frustration. In the "messages" log, nothing at all of interest. Some entries concerning the ATA driver waking up, some complaining from Samba that it couldn't find a route, but nothing at all about "I'm about to go freaky nuts lock you out" in there. Tonight I'll try adding in those additional flags to the psm entry in the kernel config as suggested. Also, I'll do my testing under batter power to see if that makes any kind of difference. Later on, On Saturday 10 August 2002 02:02 pm, Kevin Oberman wrote: > > From: "Michael W. Collette" > > Date: Sat, 10 Aug 2002 13:43:58 -0700 > > > > On Friday 09 August 2002 08:22 am, Kevin Oberman wrote: > > > Have you tried the HOOKRESUME (and, if that does not do it, > > > INITAFTERSUSPEND) flag on the psm device in your kernel. HOOKRESUME > > > (0x2000) did the trick for my IBM T30. > > > > I found the following entries in LINT that seemed to relate to what you > > suggested... > > > > # Options for psm: > > options PSM_HOOKRESUME #hook the system resume event, > > useful #for some laptops > > options PSM_RESETAFTERSUSPEND #reset the device at the resume > > event > > > > I'm compiling these options into my kernel as I write this. The ugly > > part about this is that it may be weeks before I can say it's actually > > fixed. At least it's something to try! > > > > The main thing I didn't quite get from your post though was the address > > reference. How would that go into that entry?? > > > > options PSM_HOOKRESUME (0x2000) > > options PSM_HOOKRESUME=0x2000 > > options PSM_HOOKRESUME 0x2000 > > > > LINT doesn't provide for any syntax on this one for anything more than > > the option itself. > > > > Oh well, trying the lines that are in LINT as shown there for now. > > Sorry. These are flags for the "device psm" line in the config. > device psm at atkbdc? irq 12 flags 0x2000 (or 0x6000) > > How these compare with the kernel options in LINT, I am unsure. While > the man page lists some kernel option, it does not mention those. > > R. Kevin Oberman, Network Engineer > Energy Sciences Network (ESnet) > Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) > E-mail: oberman@es.net Phone: +1 510 486-8634 -- "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message