From owner-acpi-jp@jp.FreeBSD.org Mon Mar 15 23:48:56 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i2FEmuC16960;
	Mon, 15 Mar 2004 23:48:56 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id i2FEmt716955
	for <acpi-jp@jp.freebsd.org>; Mon, 15 Mar 2004 23:48:55 +0900 (JST)
	(envelope-from faber@ISI.EDU)
Received: from pun.isi.edu (pun.isi.edu [128.9.160.150])
	by boreas.isi.edu (8.11.6p2+0917/8.11.2) with ESMTP id i2FEmrp23075;
	Mon, 15 Mar 2004 06:48:53 -0800 (PST)
Received: from pun.isi.edu (localhost [127.0.0.1])
	by pun.isi.edu (8.12.10/8.12.10) with ESMTP id i2FEmrDE062318;
	Mon, 15 Mar 2004 06:48:53 -0800 (PST)
	(envelope-from faber@pun.isi.edu)
Received: (from faber@localhost)
	by pun.isi.edu (8.12.10/8.12.10/Submit) id i2FEmnRB062317;
	Mon, 15 Mar 2004 06:48:49 -0800 (PST)
	(envelope-from faber)
From: Ted Faber <faber@ISI.EDU>
To: acpi-jp@jp.FreeBSD.org
Cc: Ted Faber <faber@ISI.EDU>
Message-ID: <20040315144849.GB62226@pun.isi.edu>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="aVD9QWMuhilNxW9f"
Content-Disposition: inline
User-Agent: Mutt/1.4.2.1i
X-url: http://www.isi.edu/~faber
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Mon, 15 Mar 2004 06:48:49 -0800
X-Sequence: acpi-jp 3106
Subject: [acpi-jp 3106] [faber@ISI.EDU: [faber@ISI.EDU: power mgmt woes on CURRENT with Dell Latitude C610]]
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: faber@ISI.EDU
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+040307


--aVD9QWMuhilNxW9f
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi.  I've submitted this to both -hackers and -current and there have
been no takers.  Please let me know if you have any ideas.  Thanks!

I'm not on acpi-jp and din't see an easy way to get on it, so please
copy me on the replies.

Thanks again.

----- Forwarded message from Ted Faber <faber@ISI.EDU> -----

From: Ted Faber <faber@ISI.EDU>
Date: Fri, 12 Mar 2004 18:24:14 -0800
To: freebsd-current@freebsd.org
Subject: [faber@ISI.EDU: power mgmt woes on CURRENT with Dell Latitude C610]
X-url: http://www.isi.edu/~faber
X-Spam-Level:=20
X-Spam-Status: No, hits=3D-4.9 required=3D5.0 tests=3DBAYES_00 autolearn=3D=
ham=20
	version=3D2.63

I sent this imcomplete problem report to hackers earlier before I read
the appropriate handbook pages.  All this stuff remains true.  I've also
tried setting hw.acpi.disable_on_poweroff both ways and fooling with the
osname.  The only settings of those two that produced a change was
"Microsoft Windows NT" and  hw.acpi.disable_on_poweroff=3D0 which caused
the power cycle  omn resume instead of suspend.

There's a dmesg from a boot -v with ACPI at
http://www.isi.edu/~faber/tmp/dmesg.boot

Booting without ACPI stops at 0xc00fc42f with "Fatal trap 12: page fault
while in kernel mode." Typing trace at the debug prompt gives:
kernbase(b0a, c075684d, c00fbc50, c00fbc52, c0c21a9c) at 0xc00fc42f
I couldn't get a dmesg from that.

sysctl hw.acpi gives:
hw.acpi.supported_sleep_state: S1 S3 S4 S5=20
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: S1
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 5
hw.acpi.s4bios: 1
hw.acpi.verbose: 1
hw.acpi.disable_on_poweroff: 1
hw.acpi.reset_video: 1
hw.acpi.cpu.cx_supported: C1/0 C2/50 C3/50
hw.acpi.cpu.cx_lowest: 0
hw.acpi.cpu.cx_history: 225859/0 0/0 0/0
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 10
hw.acpi.thermal.tz0.temperature: 3227
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: -1
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 3732
hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
hw.acpi.acline: 1
hw.acpi.battery.life: 123
hw.acpi.battery.time: -1
hw.acpi.battery.state: 0
hw.acpi.battery.units: 2
hw.acpi.battery.info_expire: 5

The ASL is available from
http://www.isi.edu/~faber/tmp/faber-dell-latitude-c610.asl

The kernel is CURRENT from wednesday noonish and I upgraded the bios to
A16 this morning.

If I'm still short info or in the wrong place (again) let me know.

----- Forwarded message from Ted Faber <faber@ISI.EDU> -----

From: Ted Faber <faber@ISI.EDU>
Date: Fri, 12 Mar 2004 10:28:31 -0800
To: freebsd-hackers@freebsd.org
Subject: power mgmt woes on CURRENT with Dell Latitude C610
X-url: http://www.isi.edu/~faber
X-Spam-Level:=20
X-Spam-Status: No, hits=3D-4.9 required=3D5.0 tests=3DBAYES_00 autolearn=3D=
ham=20
	version=3D2.63

Hi.

I just upgraded my laptop (Dell Latitude C610 A16 BIOS) to CURRENT and
most things work dandy.  However, I'm having trouble getting power
management to work.  Suspending the laptop is abig deal for me, so I'd
like to get a decent workaround or fix and I'm happy to help.

Here are the details.

With ACPI enabled, sleeping to S1 leaves the LCD on and fan running,
sleeping to S3 suspends the way apm did under 4.9, but immediately after
suspend is complete (screen goes out, fan stops) the keyboard LEDs flash
and the system reboots from power off.  Not so good.

I can't turn ACPI off, because I panic (page fault in supervisor mode)
on boot up.  It looks like pcib is expecting acpi to be there, though it
isn't.  Apm worked fine under 4.9, so I think if I could get ACPI out of
the way, I could use apm again and be happy.

I've tried many combinations of partially disabling ACPI and kernels
with and without SMP and apic.

This is really easy to reproduce with GENERIC, and I'm happy to
experiment and pass on debugging results if someone's interested in the
data.  Let me know what you need.

I'd love to get this working, so I can play with -CURRENT more.


----- End forwarded message -----

--=20
Ted Faber
http://www.isi.edu/~faber           PGP: http://www.isi.edu/~faber/pubkeys.=
asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#=
SIG=20



----- End forwarded message -----

--=20
Ted Faber
http://www.isi.edu/~faber           PGP: http://www.isi.edu/~faber/pubkeys.=
asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#=
SIG=20

--aVD9QWMuhilNxW9f
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAVcJRaUz3f+Zf+XsRAhtkAJ9+DeMTkTuI0kAgvcEkb8LlaaOrtwCg3xzX
3g1vnXuXoGjH6JaT7vxxiPg=
=330P
-----END PGP SIGNATURE-----

--aVD9QWMuhilNxW9f--
