Subject: Problem with ACPI in NetBSD 2.0.3_STABLE.
To: None <netbsd-help@NetBSD.org>
From: dosha@netbsd.pp.ru <dosha@netbsd.pp.ru>
List: netbsd-help
Date: 04/03/2006 18:47:37
ACPI-functions do not work. For example hibernate, etc.
" apmd-d " prints a error - " cannot open device file '/dev/apmctl' ".
/dev/apmctl exists.

Support of ACPI-functions is enabled in a kernel-config. Below a part of 
a kernel-config:

#------------------------------------------------------------------------------------
# These options enable verbose messages for several subsystems.
# Warning, these may compile large string tables into the kernel!
options     ACPIVERBOSE    # verbose ACPI device autoconfig messages

#
# Device configuration
#

mainbus0 at root

cpu* at mainbus?
#!!!!!!!!!!
ioapic* at mainbus?
#!!!!!!!!!!

# Doesn't do anything yet.
p64h2apic* at pci? dev? function?    # P64H2 IOxAPIC

#!!!!!!!!!!
apm0    at mainbus0            # Advanced power management
#!!!!!!!!!!

# Tuning for power management, see apm(4) for more details.
options     APM_NO_IDLE        # Don't call BIOS CPU idle function
options     APM_V10_ONLY        # Use only the APM 1.0 calls
#options     APM_NO_POWEROFF        # Don't power off on halt(8)
options     APM_POWER_PRINT        # Print stats on the console
options     APM_DISABLE_INTERRUPTS=0 # Don't disable interrupts


# Basic Bus Support

# Advanced Control and Power Interface

# This option can be used to retrieve CPU and APIC information.
# that I/O APICs can be used if ACPI is enabled below.
# To use the I/O APIC(s), enable the ioapic line above.
options     MPBIOS        # configure CPUs and APICs using MPBIOS
options     MPBIOS_SCANPCI    # find PCI roots using MPBIOS
options     MPACPI        # configure CPUs and APICs using ACPI
                # (acpi at mainbus must also be enabled)
options     MPACPI_SCANPCI    # find PCI roots using MPACPI

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

# 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

# Mainboard devices
com*         at acpi?        # Serial communications interface
fdc*         at acpi?        # Floppy disk controller
lpt*         at acpi?        # Parallel port
npx*        at acpi?        # Math coprocessor
pckbc*      at acpi?        # PC keyboard controller
#wss*         at acpi?        # NeoMagic 256AV in wss mode
#------------------------------------------------------------------------------------

Bootlog:

Apr  1 21:25:15 psynet /netbsd: NetBSD 2.0.3_STABLE (Newrose-$Revision: 
1.595.2.11 $) #7: Sat Apr  1 21:23:26 UTC 2006
Apr  1 21:25:15 psynet /netbsd:     
root@psynet:/usr/src/sys/arch/i386/compile/NEWROSE
Apr  1 21:25:15 psynet /netbsd: total memory = 255 MB
Apr  1 21:25:15 psynet /netbsd: avail memory = 245 MB
Apr  1 21:25:15 psynet /netbsd: BIOS32 rev. 0 found at 0xfb2f0
Apr  1 21:25:15 psynet /netbsd: mainbus0 (root)
Apr  1 21:25:15 psynet /netbsd: cpu0 at mainbus0: apid 0 (boot processor)
Apr  1 21:25:15 psynet /netbsd: cpu0: AMD Unknown K7 (Athlon) 
(686-class), 1608.17 MHz, id 0x20fc2
Apr  1 21:25:15 psynet /netbsd: cpu0: features 
78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
Apr  1 21:25:15 psynet /netbsd: cpu0: features 
78bfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMX>
Apr  1 21:25:15 psynet /netbsd: cpu0: features 78bfbff<FXSR,SSE,SSE2>
Apr  1 21:25:15 psynet /netbsd: cpu0: calibrating local timer
Apr  1 21:25:15 psynet /netbsd: cpu0: apic clock running at 201 MHz
Apr  1 21:25:15 psynet /netbsd: ioapic0 at mainbus0 apid 2 (I/O APIC)
Apr  1 21:25:15 psynet /netbsd: ioapic0: pa 0xfec00000, version 3, 24 pins
Apr  1 21:25:15 psynet /netbsd: acpi0 at mainbus0
Apr  1 21:25:15 psynet /netbsd: acpi0: using Intel ACPI CA subsystem 
version 20040211
Apr  1 21:25:15 psynet /netbsd: acpi0: X/RSDT: OemId <VIAK8 
,AWRDACPI,42302e31>, AslId <AWRD,01010101>
Apr  1 21:25:15 psynet /netbsd: acpi0: SCI interrupting at int 9
Apr  1 21:25:15 psynet /netbsd: acpi0: fixed-feature power button present
Apr  1 21:25:15 psynet /netbsd: ACPI Object Type 'Processor' (0x0c) at 
acpi0 not configured
Apr  1 21:25:15 psynet /netbsd: acpi: activated PNP0C0F
Apr  1 21:25:15 psynet last message repeated 3 times
Apr  1 21:25:15 psynet /netbsd: acpibut0 at acpi0 (PNP0C0C): ACPI Power 
Button
Apr  1 21:25:15 psynet /netbsd: PNP0C01 [System Board] at acpi0 not 
configured
Apr  1 21:25:15 psynet /netbsd: PNP0A03 [PCI Bus] at acpi0 not configured
Apr  1 21:25:15 psynet /netbsd: PNP0C02 [Plug and Play motherboard 
register resources] at acpi0 not configured
Apr  1 21:25:15 psynet /netbsd: PNP0C0F [PCI interrupt link device] at 
acpi0 not configured
Apr  1 21:25:15 psynet last message repeated 11 times
Apr  1 21:25:15 psynet /netbsd: PNP0C02 [Plug and Play motherboard 
register resources] at acpi0 not configured
Apr  1 21:25:15 psynet /netbsd: PNP0000 [AT Interrupt Controller] at 
acpi0 not configured
Apr  1 21:25:15 psynet /netbsd: PNP0200 [AT DMA Controller] at acpi0 not 
configured
Apr  1 21:25:15 psynet /netbsd: PNP0100 [AT Timer] at acpi0 not configured
Apr  1 21:25:15 psynet /netbsd: PNP0B00 [AT Real-Time Clock] at acpi0 
not configured
Apr  1 21:25:15 psynet /netbsd: PNP0800 [AT-style speaker sound] at 
acpi0 not configured
Apr  1 21:25:15 psynet /netbsd: npx1 at acpi0 (PNP0C04)
Apr  1 21:25:15 psynet /netbsd: npx1: io 0xf0-0xff irq 13
Apr  1 21:25:15 psynet /netbsd: npx1: using exception 16
Apr  1 21:25:15 psynet /netbsd: fdc1 at acpi0 (PNP0700)
Apr  1 21:25:15 psynet /netbsd: fdc1: io 0x3f0-0x3f5,0x3f7 irq 6 drq 2
Apr  1 21:25:15 psynet /netbsd: com2 at acpi0 (PNP0501-1)
Apr  1 21:25:15 psynet /netbsd: com2: io 0x3f8-0x3ff irq 4
Apr  1 21:25:15 psynet /netbsd: com2: ns16550a, working fifo
Apr  1 21:25:15 psynet /netbsd: com3 at acpi0 (PNP0501-2)
Apr  1 21:25:15 psynet /netbsd: com3: io 0x2f8-0x2ff irq 3
Apr  1 21:25:15 psynet /netbsd: com3: ns16550a, working fifo
Apr  1 21:25:15 psynet /netbsd: lpt3 at acpi0 (PNP0401)
Apr  1 21:25:15 psynet /netbsd: lpt3: io 0x378-0x37f,0x778-0x77b irq 7 drq 3
Apr  1 21:25:15 psynet /netbsd: pckbc1 at acpi0 (PNP0F13): aux port
Apr  1 21:25:15 psynet /netbsd: pckbc1: irq 12
Apr  1 21:25:15 psynet /netbsd: pckbc2 at acpi0 (PNP0303): kbd port
Apr  1 21:25:15 psynet /netbsd: pckbc2: io 0x60,0x64 irq 1
Apr  1 21:25:15 psynet /netbsd: pckbd0 at pckbc2 (kbd slot)
Apr  1 21:25:15 psynet /netbsd: pckbc2: using irq 1 for kbd slot
Apr  1 21:25:15 psynet /netbsd: wskbd0 at pckbd0: console keyboard
Apr  1 21:25:15 psynet /netbsd: pms0 at pckbc2 (aux slot)
Apr  1 21:25:15 psynet /netbsd: pckbc2: using irq 12 for aux slot
Apr  1 21:25:15 psynet /netbsd: wsmouse0 at pms0 mux 0
Apr  1 21:25:15 psynet /netbsd: pci0 at mainbus0 bus 0: configuration mode 1
Apr  1 21:25:15 psynet /netbsd: pci0: i/o space, memory space enabled, 
rd/line, rd/mult, wr/inv ok
Apr  1 21:25:15 psynet /netbsd: pchb0 at pci0 dev 0 function 0
Apr  1 21:25:15 psynet /netbsd: pchb0: vendor 0x1106 product 0x0282 
(rev. 0x00)
Apr  1 21:25:15 psynet /netbsd: agp0 at pchb0: aperture at 0xf0000000, 
size 0xe900000
Apr  1 21:25:15 psynet /netbsd: pchb1 at pci0 dev 0 function 1
Apr  1 21:25:15 psynet /netbsd: pchb1: vendor 0x1106 product 0x1282 
(rev. 0x00)
Apr  1 21:25:15 psynet /netbsd: pchb2 at pci0 dev 0 function 2
Apr  1 21:25:15 psynet /netbsd: pchb2: vendor 0x1106 product 0x2282 
(rev. 0x00)
Apr  1 21:25:15 psynet /netbsd: pchb3 at pci0 dev 0 function 3
Apr  1 21:25:15 psynet /netbsd: pchb3: vendor 0x1106 product 0x3282 
(rev. 0x00)
Apr  1 21:25:15 psynet /netbsd: pchb4 at pci0 dev 0 function 4
Apr  1 21:25:15 psynet /netbsd: pchb4: vendor 0x1106 product 0x4282 
(rev. 0x00)
Apr  1 21:25:15 psynet /netbsd: pchb5 at pci0 dev 0 function 7
Apr  1 21:25:15 psynet /netbsd: pchb5: vendor 0x1106 product 0x7282 
(rev. 0x00)
Apr  1 21:25:15 psynet /netbsd: ppb0 at pci0 dev 1 function 0: vendor 
0x1106 product 0xb188 (rev. 0x00)
Apr  1 21:25:15 psynet /netbsd: pci1 at ppb0 bus 1
Apr  1 21:25:15 psynet /netbsd: pci1: i/o space, memory space enabled
Apr  1 21:25:15 psynet /netbsd: vga1 at pci1 dev 0 function 0: vendor 
0x10de product 0x0110 (rev. 0xb2)
Apr  1 21:25:15 psynet /netbsd: wsdisplay0 at vga1 kbdmux 1: console 
(80x25, vt100 emulation), using wskbd0
Apr  1 21:25:15 psynet /netbsd: wsmux1: connecting to wsdisplay0
Apr  1 21:25:15 psynet /netbsd: vendor 0x14f1 product 0x1085 
(miscellaneous communications, revision 0x08) at pci0 dev 10 function 0 
not configured
Apr  1 21:25:15 psynet /netbsd: viaide0 at pci0 dev 15 function 0
Apr  1 21:25:15 psynet /netbsd: viaide0: VIA Technologies VT8237 ATA133 
controller
Apr  1 21:25:15 psynet /netbsd: viaide0: bus-master DMA support present
Apr  1 21:25:15 psynet /netbsd: viaide0: primary channel configured to 
compatibility mode
Apr  1 21:25:15 psynet /netbsd: viaide0: primary channel interrupting at 
ioapic0 pin 14 (irq 14)
Apr  1 21:25:15 psynet /netbsd: atabus0 at viaide0 channel 0
Apr  1 21:25:15 psynet /netbsd: viaide0: secondary channel configured to 
compatibility mode
Apr  1 21:25:15 psynet /netbsd: viaide0: secondary channel interrupting 
at ioapic0 pin 15 (irq 15)
Apr  1 21:25:15 psynet /netbsd: atabus1 at viaide0 channel 1
Apr  1 21:25:15 psynet /netbsd: uhci0 at pci0 dev 16 function 0: vendor 
0x1106 product 0x3038 (rev. 0x81)
Apr  1 21:25:15 psynet /netbsd: uhci0: interrupting at ioapic0 pin 10 
(irq 10)
Apr  1 21:25:15 psynet /netbsd: usb0 at uhci0: USB revision 1.0
Apr  1 21:25:15 psynet /netbsd: uhub0 at usb0
Apr  1 21:25:15 psynet /netbsd: uhub0: vendor 0x1106 UHCI root hub, 
class 9/0, rev 1.00/1.00, addr 1
Apr  1 21:25:15 psynet /netbsd: uhub0: 2 ports with 2 removable, self 
powered
Apr  1 21:25:15 psynet /netbsd: uhci1 at pci0 dev 16 function 1: vendor 
0x1106 product 0x3038 (rev. 0x81)
Apr  1 21:25:15 psynet /netbsd: uhci1: interrupting at ioapic0 pin 10 
(irq 10)
Apr  1 21:25:15 psynet /netbsd: usb1 at uhci1: USB revision 1.0
Apr  1 21:25:15 psynet /netbsd: uhub1 at usb1
Apr  1 21:25:15 psynet /netbsd: uhub1: vendor 0x1106 UHCI root hub, 
class 9/0, rev 1.00/1.00, addr 1
Apr  1 21:25:15 psynet /netbsd: uhub1: 2 ports with 2 removable, self 
powered
Apr  1 21:25:15 psynet /netbsd: uhci2 at pci0 dev 16 function 2: vendor 
0x1106 product 0x3038 (rev. 0x81)
Apr  1 21:25:15 psynet /netbsd: uhci2: interrupting at ioapic0 pin 5 (irq 5)
Apr  1 21:25:15 psynet /netbsd: usb2 at uhci2: USB revision 1.0
Apr  1 21:25:15 psynet /netbsd: uhub2 at usb2
Apr  1 21:25:15 psynet /netbsd: uhub2: vendor 0x1106 UHCI root hub, 
class 9/0, rev 1.00/1.00, addr 1
Apr  1 21:25:15 psynet /netbsd: uhub2: 2 ports with 2 removable, self 
powered
Apr  1 21:25:15 psynet /netbsd: uhci3 at pci0 dev 16 function 3: vendor 
0x1106 product 0x3038 (rev. 0x81)
Apr  1 21:25:15 psynet /netbsd: uhci3: interrupting at ioapic0 pin 5 (irq 5)
Apr  1 21:25:15 psynet /netbsd: usb3 at uhci3: USB revision 1.0
Apr  1 21:25:15 psynet /netbsd: uhub3 at usb3
Apr  1 21:25:15 psynet /netbsd: uhub3: vendor 0x1106 UHCI root hub, 
class 9/0, rev 1.00/1.00, addr 1
Apr  1 21:25:15 psynet /netbsd: uhub3: 2 ports with 2 removable, self 
powered
Apr  1 21:25:15 psynet /netbsd: ehci0 at pci0 dev 16 function 4: vendor 
0x1106 product 0x3104 (rev. 0x86)
Apr  1 21:25:15 psynet /netbsd: ehci0: interrupting at ioapic0 pin 11 
(irq 11)
Apr  1 21:25:15 psynet /netbsd: ehci0: EHCI version 1.0
Apr  1 21:25:15 psynet /netbsd: ehci0: companion controllers, 2 ports 
each: uhci0 uhci1 uhci2 uhci3
Apr  1 21:25:15 psynet /netbsd: usb4 at ehci0: USB revision 2.0
Apr  1 21:25:15 psynet /netbsd: uhub4 at usb4
Apr  1 21:25:15 psynet /netbsd: uhub4: vendor 0x1106 EHCI root hub, 
class 9/0, rev 2.00/1.00, addr 1
Apr  1 21:25:15 psynet /netbsd: uhub4: 8 ports with 8 removable, self 
powered
Apr  1 21:25:15 psynet /netbsd: pcib0 at pci0 dev 17 function 0
Apr  1 21:25:15 psynet /netbsd: pcib0: vendor 0x1106 product 0x3227 
(rev. 0x00)
Apr  1 21:25:15 psynet /netbsd: auvia0 at pci0 dev 17 function 5: VIA 
VT8235 AC'97 (rev 0x60)
Apr  1 21:25:15 psynet /netbsd: auvia0: interrupting at ioapic0 pin 11 
(irq 11)
Apr  1 21:25:15 psynet /netbsd: auvia0: ac97: Avance Logic ALC850 codec; 
no 3D stereo
Apr  1 21:25:15 psynet /netbsd: auvia0: ac97: ext id 
9c6<AC97_23,LDAC,SDAC,CDAC,SPDIF,DRA>
Apr  1 21:25:15 psynet /netbsd: audio0 at auvia0: full duplex, independent
Apr  1 21:25:15 psynet /netbsd: rtk0 at pci0 dev 19 function 0: Realtek 
8139 10/100BaseTX
Apr  1 21:25:15 psynet /netbsd: rtk0: interrupting at ioapic0 pin 18 
(irq 11)
Apr  1 21:25:15 psynet /netbsd: rtk0: Ethernet address 00:14:85:88:99:2a
Apr  1 21:25:15 psynet /netbsd: OUI 0x000000 model 0x0000 rev 0 at rtk0 
phy 7 not configured
Apr  1 21:25:15 psynet /netbsd: pchb6 at pci0 dev 24 function 0
Apr  1 21:25:15 psynet /netbsd: pchb6: vendor 0x1022 product 0x1100 
(rev. 0x00)
Apr  1 21:25:16 psynet /netbsd: pchb7 at pci0 dev 24 function 1
Apr  1 21:25:16 psynet /netbsd: pchb7: vendor 0x1022 product 0x1101 
(rev. 0x00)
Apr  1 21:25:16 psynet /netbsd: pchb8 at pci0 dev 24 function 2
Apr  1 21:25:16 psynet /netbsd: pchb8: vendor 0x1022 product 0x1102 
(rev. 0x00)
Apr  1 21:25:16 psynet /netbsd: pchb9 at pci0 dev 24 function 3
Apr  1 21:25:16 psynet /netbsd: pchb9: vendor 0x1022 product 0x1103 
(rev. 0x00)
Apr  1 21:25:16 psynet /netbsd: isa0 at pcib0
Apr  1 21:25:16 psynet /netbsd: pcppi0 at isa0 port 0x61
Apr  1 21:25:16 psynet /netbsd: midi0 at pcppi0: PC speaker
Apr  1 21:25:16 psynet /netbsd: sysbeep0 at pcppi0
Apr  1 21:25:16 psynet /netbsd: isapnp0 at isa0 port 0x279: ISA Plug 'n 
Play device support
Apr  1 21:25:16 psynet /netbsd: isapnp0: no ISA Plug 'n Play devices found
Apr  1 21:25:16 psynet /netbsd: ioapic0: enabling
Apr  1 21:25:16 psynet /netbsd: fd0 at fdc1 drive 0: density unknown
Apr  1 21:25:16 psynet /netbsd: Kernelized RAIDframe activated
Apr  1 21:25:16 psynet /netbsd: IPsec: Initialized Security Association 
Processing.
Apr  1 21:25:16 psynet /netbsd: wd0 at atabus0 drive 0: <WDC WD200BB-32CFC0>
Apr  1 21:25:16 psynet /netbsd: wd0: drive supports 16-sector PIO 
transfers, LBA addressing
Apr  1 21:25:16 psynet /netbsd: wd0: 19092 MB, 38792 cyl, 16 head, 63 
sec, 512 bytes/sect x 39102336 sectors
Apr  1 21:25:16 psynet /netbsd: wd0: 32-bit data port
Apr  1 21:25:16 psynet /netbsd: wd0: drive supports PIO mode 4, DMA mode 
2, Ultra-DMA mode 5 (Ultra/100)
Apr  1 21:25:16 psynet /netbsd: wd0(viaide0:0:0): using PIO mode 4, 
Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
Apr  1 21:25:16 psynet /netbsd: atapibus0 at atabus1: 2 targets
Apr  1 21:25:16 psynet /netbsd: cd0 at atapibus0 drive 0: <_NEC CD-RW 
NR-9400A, , R800> cdrom removable
Apr  1 21:25:16 psynet /netbsd: cd0: 32-bit data port
Apr  1 21:25:16 psynet /netbsd: cd0: drive supports PIO mode 4, DMA mode 
2, Ultra-DMA mode 2 (Ultra/33)
Apr  1 21:25:16 psynet /netbsd: cd0(viaide0:1:0): using PIO mode 4, 
Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
Apr  1 21:25:16 psynet /netbsd: boot device: wd0
Apr  1 21:25:16 psynet /netbsd: root on wd0a dumps on wd0b
Apr  1 21:25:16 psynet /netbsd: root file system type: ffs
Apr  1 21:25:16 psynet /netbsd: wsdisplay0: screen 1 added (80x25, vt100 
emulation)
Apr  1 21:25:16 psynet /netbsd: wsdisplay0: screen 2 added (80x25, vt100 
emulation)
Apr  1 21:25:16 psynet /netbsd: wsdisplay0: screen 3 added (80x25, vt100 
emulation)
Apr  1 21:25:16 psynet /netbsd: wsdisplay0: screen 4 added (80x25, vt100 
emulation)
Apr  1 21:25:16 psynet /netbsd: wsdisplay0: screen 5 added (80x25, vt100 
emulation)
Apr  1 21:25:16 psynet /netbsd: wsdisplay0: screen 6 added (80x25, vt100 
emulation)
Apr  1 21:25:16 psynet /netbsd: wsdisplay0: screen 7 added (80x25, vt100 
emulation)
Apr  1 21:25:15 psynet savecore: no core dump
Apr  1 21:25:16 psynet apmd: cannot open device file `/dev/apmctl'

Artemy P. dosha@netbsd.pp.ru