From owner-acpi-jp@jp.freebsd.org  Sat Jul  7 06:59:02 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id GAA58367;
	Sat, 7 Jul 2001 06:59:02 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from mass.dis.org (dhcp44-21.dis.org [216.240.44.21])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id GAA58362
	for <acpi-jp@jp.freebsd.org>; Sat, 7 Jul 2001 06:59:01 +0900 (JST)
	(envelope-from msmith@mass.dis.org)
Received: from mass.dis.org (localhost [127.0.0.1])
	by mass.dis.org (8.11.4/8.11.3) with ESMTP id f66MCTa02081;
	Fri, 6 Jul 2001 15:12:30 -0700 (PDT)
	(envelope-from msmith@mass.dis.org)
Message-Id: <200107062212.f66MCTa02081@mass.dis.org>
X-Mailer: exmh version 2.1.1 10/15/1999
To: Josef Karthauser <joe@tao.org.uk>
cc: acpi-jp@jp.freebsd.org
In-reply-to: Your message of "Fri, 06 Jul 2001 22:44:44 BST."
             <20010706224444.A1799@tao.org.uk> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 06 Jul 2001 15:12:29 -0700
From: Mike Smith <msmith@freebsd.org>
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1157
Subject: [acpi-jp 1157] Re: Sleep on Inspiron 5000e. 
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: msmith@freebsd.org

> On Fri, Jul 06, 2001 at 02:32:31PM -0700, Mike Smith wrote:
> > > I'm playing with ACPI on my Dell Inspiron 5000e again to see whether the
> > > most recent -current changes will allow me to suspend.  It kind of
> > > works.  If I close the lid the machine does go into some kind of power
> > > saving mode as the power light flashes, but the internal fans are still
> > > running.  Is anyone working on this issue?
> >
> > Which issue?  There are a heap of interrelated, intertwined factors here.
> >
> > If you want to get involved, I need a lot of help. 8)
> 
> Ok.  Tell me what I need to do to get up to speed.
> I remember what you told me about ACPI at BSDCon last year.

A couple of questions; why are the fans running?  Did the ACPI thermal 
code turn them on, or are they always on?  Check the output of

sysctl -a |grep tz0

if the 'active' field is not -1, you've got fans running because of 
temperature, which is OK.

If this is the case, the thermal code (in acpi_thermal.c) needs to notice 
that the system is being suspended and temporarily turn everything off.  
You can probably do this just by adding suspend and resume methods; the 
suspend method should call acpi_tz_all_off() and the resume method should 
call acpi_tz_monitor() to restart things.

You might also want to turn on some debugging (see acpi.4) and make sure 
that the system is actually properly going to sleep.  When I hit the lid 
switch on my system, the backlight goes off and ACPI notices, but I think 
it wakes right back up again.

The ata code also needs extending to put drives into suspend mode when it 
is suspended.  You can find information on doing this in the ATA 
specifications; Soren can probably point you at those.


-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E


