Subject: apm enabled in kernel but not configured on boot
To: None <netbsd-help@netbsd.org>
From: Tim Heckman <theckman@panix.com>
List: netbsd-help
Date: 04/14/2003 11:40:38
--------------Boundary-00=_QJBCMQB4HYNYW6R0Q9KL
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello all,

I am trying to set up NetBSD 1.6 on a laptop, and I want to get apm suppo=
rt=20
working. The kernel I'm using is GENERIC_LAPTOP, modified to add support =
for=20
my ethernet interface (sip0).

apm is enabled in the configuration file:
apm0=09at mainbus0=09=09=09# Advanced power management

And I have "apmd=3DYES" in rc.conf. However, apmd fails to start, giving =
the=20
message "cannot open device file '/dev/apmctl'"

The device file does exist, though:
crw-r--r--  1 root  wheel  21, 0 Apr  8 09:53 /dev/apm
crw-r--r--  1 root  wheel  21, 8 Apr  8 09:53 /dev/apmctl

In the output of dmesg, I also notice the following:
Acer Labs M7101 Power Management Controller (miscellaneous bridge) at pci=
0 dev=20
17 function 0 not configured

Can anyone offer any help with this? The full dmesg output is attached.

Thanks,
Tim Heckman
theckman@panix.com

=20
--------------Boundary-00=_QJBCMQB4HYNYW6R0Q9KL
Content-Type: text/plain;
  charset="us-ascii";
  name="dmesg.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="dmesg.txt"

NetBSD 1.6 (MYKERNEL_LAPTOP) #1: Tue Apr  8 09:12:04 EDT 2003
    root@gaddis.timheckman.com:/usr/src/sys/arch/i386/compile/MYKERNEL_LAPTOP
cpu0: AMD K7 (Athlon) (686-class), 1656.54 MHz
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 256 KB 64b/line 16-way
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
total memory = 446 MB
avail memory = 409 MB
using 5741 buffers containing 22964 KB of memory
BIOS32 rev. 0 found at 0xfd730
PCI BIOS rev. 2.1 found at 0xfd87b
pcibios: config mechanism [1][x], special cycles [x][x], last bus 2
PCI IRQ Routing Table rev. 1.0 found at 0xfdf10, size 208 bytes (11 entries)
PCI Interrupt Router at 000:07:0 (Acer Labs M1543 PCI-ISA Bridge)
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:06:0 0x10b9 0x5451   A  0x07   5  0    already assigned
000:08:0 0x10b9 0x5457   A  0x06   3  0    already assigned
000:10:0 0x1217 0x6972   A  0x05  11  0    WARNING: preserving irq 5
000:18:0 0x100b 0x0020   A  0x01  11  0    already assigned
001:05:0 0x1002 0x4336   A  0x00  10  0    already assigned
------------------------------------------
PCI fixup examining 1002:cab0
PCI fixup examining 1002:700f
PCI fixup examining 1002:4336
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 10b9:5237
PCI fixup examining 10b9:5451
PCI fixup examining 10b9:1533
PCI fixup examining 10b9:5457
PCI fixup examining 1217:6972
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI fixup examining 10b9:5229
PCI fixup examining 10b9:7101
PCI fixup examining 100b:20
PCI bus #2 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x1002 0xcab0 
	10h mem  0xd4000000 0x04000000
	14h mem  0xd0500000 0x00001000
	18h port 0x00008090 0x00000004
		[OK]
000:01:0 0x1002 0x700f 
		[OK]
000:02:0 0x10b9 0x5237 
	10h mem  0xd0000000 0x00001000
		[OK]
000:06:0 0x10b9 0x5451 
	10h port 0x00008400 0x00000100
	14h mem  0xd0001000 0x00001000
		[OK]
000:07:0 0x10b9 0x1533 
		[OK]
000:08:0 0x10b9 0x5457 
	10h mem  0xd0002000 0x00001000
	14h port 0x00008800 0x00000100
		[OK]
000:10:0 0x1217 0x6972 
	10h mem  0x80000000 0x00001000
		[OK]
000:16:0 0x10b9 0x5229 
	20h port 0x00008080 0x00000010
		[OK]
000:17:0 0x10b9 0x7101 
		[OK]
000:18:0 0x100b 0x0020 
	10h port 0x00008c00 0x00000100
	14h mem  0xd0003000 0x00001000
		[OK]
001:05:0 0x1002 0x4336 
	10h mem  0xe0000000 0x10000000
	14h port 0x00009000 0x00000100
	18h mem  0xd0100000 0x00010000
		[OK]
--------------------------[  0 devices bogus]
 Physical memory end: 0x1beee000
 PCI memory mapped I/O space start: 0x1bf00000
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: ATI Technologies product 0xcab0 (rev. 0x13)
agp at pchb0 not configured
ppb0 at pci0 dev 1 function 0: ATI Technologies product 0x700f (rev. 0x01)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 5 function 0: ATI Technologies product 0x4336 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ohci0 at pci0 dev 2 function 0: Acer Labs M5237 USB Host Controller (rev. 0x03)
ohci0: interrupting at irq 9
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
autri0 at pci0 dev 6 function 0: Acer Labs M5451 AC-Link Controller Audio Device (rev. 0x02)
autri0: interrupting at irq 5
autri0: CXT41 codec; reserved, headphone, 18 bit DAC, 18 bit ADC, no 3D stereo
audio0 at autri0: full duplex, mmap, independent
midi0 at autri0: 4DWAVE MIDI UART
pcib0 at pci0 dev 7 function 0
pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0x00)
Acer Labs product 0x5457 (modem communications) at pci0 dev 8 function 0 not configured
cbb0 at pci0 dev 10 function 0: O2 Micro Inc product 0x6972 (rev. 0x00)
pciide0 at pci0 dev 16 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc4)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <TOSHIBA MK6021GAS>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 57231 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 117210240 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <TOSHIBA DVD-ROM SD-R2312, 237L905178, 1905> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
Acer Labs M7101 Power Management Controller (miscellaneous bridge) at pci0 dev 17 function 0 not configured
sip0 at pci0 dev 18 function 0: NatSemi DP83815 10/100 Ethernet, rev 00
sip0: interrupting at irq 11
sip0: Ethernet address 00:0b:cd:33:d5:a5
nsphyter0 at sip0 phy 0: DP83815 10/100 media interface, rev. 1
nsphyter0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
cbb0: interrupting at irq 5
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0
pcmcia0 at cardslot0
biomask e76d netmask ef6d ttymask ffef
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
IP Filter: v3.4.27 initialized.  Default = pass all, Logging = enabled
wsdisplay0: screen 1 added (80x50, vt100 emulation)
wsdisplay0: screen 2 added (80x50, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

--------------Boundary-00=_QJBCMQB4HYNYW6R0Q9KL--