NetBSD Problem Report #6910

Received: (qmail 1603 invoked from network); 29 Jan 1999 18:30:42 -0000
Message-Id: <199901291830.MAA01837@guild.plethora.net>
Date: Fri, 29 Jan 1999 12:30:39 -0600
From: seebs@plethora.net
Sender: seebs@guild.plethora.net
Reply-To: seebs@guild.plethora.net
To: gnats-bugs@gnats.netbsd.org
Subject: apm -z doesn't recover well on my thinkpad 380Z
X-Send-Pr-Version: 3.95

>Number:         6910
>Category:       kern
>Synopsis:       apm -z doesn't recover well on my thinkpad 380Z
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 29 10:35:00 +0000 1999
>Closed-Date:    Tue Nov 09 10:34:20 +0000 1999
>Last-Modified:  Tue Nov 09 10:35:00 +0000 1999
>Originator:     Peter Seebach
>Release:        1.3.3
>Organization:
>Environment:
System: NetBSD binder.fleet.plethora.net 1.3.3 NetBSD 1.3.3 (BINDER) #0: Thu Jan 28 08:16:10 PST 1999 root@binder.fleet.plethora.net:/usr/src/sys/arch/i386/compile/BINDER i386


>Description:
My laptop seems to handle 'apm -S' just fine, but '-S' leaves it with disk
running and processor churning - it only really seems to turn off the display.
'apm -z' works great - laptop goes completely to sleep.  I hit a button, and
the display comes back, but that's all she wrote; nothing else ever happens.
The machine no longer responds to pings.  It chirps once coming back up,
but that's it.

>How-To-Repeat:
'apm -z'
>Fix:
>Release-Note:
>Audit-Trail:

From: "Perry E. Metzger" <perry@piermont.com>
To: seebs@guild.plethora.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/6910: apm -z doesn't recover well on my thinkpad 380Z
Date: 29 Jan 1999 20:20:33 -0500

 seebs@plethora.net writes:
 > >Description:
 > My laptop seems to handle 'apm -S' just fine, but '-S' leaves it with disk
 > running and processor churning - it only really seems to turn off the display.
 > 'apm -z' works great - laptop goes completely to sleep.  I hit a button, and
 > the display comes back, but that's all she wrote; nothing else ever happens.
 > The machine no longer responds to pings.  It chirps once coming back up,
 > but that's it.

 There is a patch for the thinkpad 600 in the PR database that
 reputedly fixes an identical problem. Please try it out and let us
 know if it helps you, too...

From: seebs@plethora.net
To: perry@piermont.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/6910: apm -z doesn't recover well on my thinkpad 380Z 
Date: Fri, 29 Jan 1999 21:21:20 -0600

 In message <87yamltv32.fsf@jekyll.piermont.com>, "Perry E. Metzger" writes:
 >There is a patch for the thinkpad 600 in the PR database that
 >reputedly fixes an identical problem. Please try it out and let us
 >know if it helps you, too...

 Oh, very cool!  Uhm.  I know this is a stupid question, but where in the pr
 database, and how would I grab it?  Also, should it work with 1.3.3?

 (Sorry to be putting a burden on you, but I have about 2 waking hours before
 my flight, and I gotta pack, but I'd love such a patch.)

 -s

From: seebs@plethora.net
To: perry@piermont.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/6910: apm -z doesn't recover well on my thinkpad 380Z 
Date: Fri, 29 Jan 1999 22:02:49 -0600

 In message <87yamltv32.fsf@jekyll.piermont.com>, "Perry E. Metzger" writes:
 >There is a patch for the thinkpad 600 in the PR database that
 >reputedly fixes an identical problem. Please try it out and let us
 >know if it helps you, too...

 Hmm.  Well, the patch doesn't apply logically to my machine - that code
 is different.  BUT... I found a 'cli' in the code in 1.3.3, and so I'm
 trying
 	#if 0
 		cli
 	#else
 		clc
 	#endif

 (because the "patch" showed a clc right before the cli, and I'm thinking
 maybe it was useful), and if that doesn't work I'll try just diking it all
 out, and I'll see if it works.

 The patch was for apmcall.s 1.1.1.3, I have 1.2.

 (I'll drop you another note if I get any results... It looks like the system
 thinks it needs to recompile a few things.  Maybe I made clean.  Oops.)

 -s

From: "Heiko W.Rupp" <hwr@shanagary.xlink.net>
To: seebs@plethora.net, gnats-bugs@gnats.netbsd.org
Cc:  Subject: Re: kern/6910
Date: Fri, 5 Feb 1999 14:07:02 +0100 (MET)

 Hi,

 just as an idea:

 define APMDEBUG in i386/apm.c , build a new kernel and retry.
 This seems to work more or less for me on my HP Omnibook 800C

From: joda@pdc.kth.se (Johan Danielsson)
To: seebs@guild.plethora.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/6910: apm -z doesn't recover well on my thinkpad 380Z
Date: 08 Nov 1999 14:26:01 +0100

 seebs@plethora.net writes:

 > Well, the patch doesn't apply logically to my machine - that code
 > is different.  BUT... I found a 'cli' in the code in 1.3.3, and so I'm
 > trying
 >        #if 0
 >                cli
 >        #else
 >                clc
 >        #endif

 There should be no `cli' to get this to work on IBM:s.

 Did you try this with 1.3.3 or 1.4? Is it still a problem?

 /Johan

From: seebs@plethora.net
To: joda@pdc.kth.se (Johan Danielsson)
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/6910: apm -z doesn't recover well on my thinkpad 380Z 
Date: Mon, 08 Nov 1999 10:44:40 -0600

 In message <xofd7tl9kt2.fsf@blubb.pdc.kth.se>, Johan Danielsson writes:
 >There should be no `cli' to get this to work on IBM:s.
 >
 >Did you try this with 1.3.3 or 1.4? Is it still a problem?

 It was, but someone added an option you can set to not disable interrupts
 during sleep, and now I'm happy.

 -s

From: joda@pdc.kth.se (Johan Danielsson)
To: seebs@plethora.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/6910: apm -z doesn't recover well on my thinkpad 380Z
Date: 08 Nov 1999 20:15:18 +0100

 seebs@plethora.net writes:

 > It was, but someone added an option you can set to not disable
 > interrupts during sleep, and now I'm happy.

 Ok, then I'll close this PR.

 /Johan
State-Changed-From-To: open->closed 
State-Changed-By: joda 
State-Changed-When: Tue Nov 9 02:34:20 PST 1999 
State-Changed-Why:  
fixed by apmcall.s 1.6 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.