From owner-freebsd-mobile Wed Oct 27 7:26:59 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by hub.freebsd.org (Postfix) with ESMTP id 2B9A014C92; Wed, 27 Oct 1999 07:26:53 -0700 (PDT) (envelope-from iwasaki@jp.FreeBSD.org) Received: from localhost (isdnb25.imasy.or.jp [202.227.24.153]) by tasogare.imasy.or.jp (8.9.3+3.2W/3.7W-tasogare/smtpfeed 1.01) with ESMTP id XAA11152; Wed, 27 Oct 1999 23:26:49 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Message-Id: <199910271426.XAA11152@tasogare.imasy.or.jp> To: steveo@iol.ie Cc: freebsd-mobile@freebsd.org, cvs-committers@FreeBSD.org Subject: Re: FreeBSD on a Compaq 1690 In-Reply-To: Your message of "Mon, 25 Oct 1999 13:59:17 +0100 (IST)" References: X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 27 Oct 1999 23:26:44 +0900 From: Mitsuru IWASAKI X-Dispatcher: imput version 980905(IM100) Lines: 30 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, > >> Suspend and resume slows the system down hugely (apmconf -t doesn't help), > >> doing it twice makes things worse, I haven't tried more. What should I > >> try in order to get a handle on this. > >> > >> All this with 3.3-STABLE about two weeks old. > > > > i8254 on your laptop seemds having problem after resuming. > ># my SHARP laptop too. > > Please try the attached patch. > > That did the trick nicely, is this patch or near equivalent heading into > -stable any time soon ? OK, I'll commit them this coming weekend if nobody have objections. Linux people also are doing also reloading the countdown register of i8254 after suspend in the same way. It couldn't hurt, I think. #ifdef INIT_TIMER_AFTER_SUSPEND save_flags(flags); cli(); /* set the clock to 100 Hz */ outb_p(0x34,0x43); /* binary, mode 2, LSB/MSB, ch 0 */ udelay(10); outb_p(LATCH & 0xff , 0x40); /* LSB */ udelay(10); outb(LATCH >> 8 , 0x40); /* MSB */ udelay(10); restore_flags(flags); #endif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message