Subject: ACPI problems with halt -p
To: None <port-i386@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: port-i386
Date: 06/15/2005 21:45:53
Hi!

I'm running 3.99.6 on a FujitsuSiemens Lifebook S6120 and since 3.99.5
(or maybe .4?) I can't shutdown the PC anymore correctly. Here's
what's going on:

# halt -p
<close the lid>
<open the lid and the pc powers up>

I've tried with and without ACPI_DISABLE_ON_POWEROFF but it doesn't
make any difference. What can I do? Below is my kernel config file's
diff against GENERIC.

Martti


--- GENERIC	2005-06-10 06:25:57.000000000 +0300
+++ LIFEBOOK	2005-06-15 18:24:58.000000000 +0300
@@ -114,7 +114,7 @@
  options 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
  #options 	KGDB		# remote debugger
  #options 	KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600
-#makeoptions	DEBUG="-g"	# compile full symbol table
+makeoptions	DEBUG="-g"	# compile full symbol table

  # Compatibility options
  options 	COMPAT_NOMID	# NetBSD 0.8, 386BSD, and BSDI
@@ -329,19 +329,19 @@
  				# (acpi at mainbus must also be enabled)
  #options 	MPACPI_SCANPCI	# find PCI roots using MPACPI

-#acpi0 		at mainbus0
+acpi0 		at mainbus0
  #options 	ACPI_PCI_FIXUP		# PCI interrupt routing via ACPI
  #options 	ACPI_ACTIVATE_DEV	# If set, activate inactive devices
  #options 	ACPICA_PEDANTIC		# force strict conformance to the Spec.
-#options 	ACPI_DISABLE_ON_POWEROFF	# disable acpi on power off
+options 	ACPI_DISABLE_ON_POWEROFF	# disable acpi on power off

  # ACPI devices
-#acpiacad* 	at acpi?		# ACPI AC Adapter
-#acpibat* 	at acpi?		# ACPI Battery
-#acpibut* 	at acpi?		# ACPI Button
-#acpiec* 	at acpi?		# ACPI Embedded Controller
-#acpilid* 	at acpi?		# ACPI Lid Switch
-#acpitz* 	at acpi?		# ACPI Thermal Zone
+acpiacad* 	at acpi?		# ACPI AC Adapter
+acpibat* 	at acpi?		# ACPI Battery
+acpibut* 	at acpi?		# ACPI Button
+acpiec* 	at acpi?		# ACPI Embedded Controller
+acpilid* 	at acpi?		# ACPI Lid Switch
+acpitz* 	at acpi?		# ACPI Thermal Zone

  # Mainboard devices
  #attimer*	at acpi?		# AT Timer