From owner-freebsd-current Mon Aug 9 8:11:47 1999 Delivered-To: freebsd-current@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id EADF515216 for ; Mon, 9 Aug 1999 08:11:44 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id JAA09774; Mon, 9 Aug 1999 09:09:42 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id JAA19883; Mon, 9 Aug 1999 09:09:41 -0600 Date: Mon, 9 Aug 1999 09:09:41 -0600 Message-Id: <199908091509.JAA19883@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Mitsuru IWASAKI Cc: plm@xs4all.nl, freebsd-current@FreeBSD.ORG, imp@village.org Subject: Re: recent apm changes In-Reply-To: <199908091431.XAA01774@tasogare.imasy.or.jp> References: <14253.57344.873947.122158@muon.xs4all.nl> <199908091431.XAA01774@tasogare.imasy.or.jp> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > plm> In contract, if I suspend in Linux of Windows, the computer shuts up > plm> immediateley and is quiet. Only sometimes there is a (not too loud) > plm> little fan (I think it is the CPU fan) running for a few more minutes. > > I've read Linux code (v2.2.9) closely, noticed they put cli > before APM BIOS call and save & restore segment registers. The CLI call is bogus. I note a commit I *just* made: ---------------------------- revision 1.49.2.4 date: 1999/07/10 18:36:59; author: nate; state: Exp; lines: +1 -2 - Remove un-necessary CLI statement from apm_int, which casues suspend/resume to fail on at least some IBM Thinkpads. [ FWIW, the cli call is also missing from -current ] Submitted by: "Kenton A. Hoover" ---------------------------- If the CLI is there, my box refuses to suspend. Apparently it was removed from linux a while back, and like many software projects that don't have usable history, the bug is now being re-introduced into Linux again. :( As far as the segment registers, we do an explicit save of them already when we switch into VM86 mode, so it should be necessary to save them twice. > I suspect these two (or only cli?) affect the suspending state. > To clarify, could you try attached patches (for sys/i386/i386/bioscall.s) > one by one? I'd be interested to know if either of the patches did anything... Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message