Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jul 2004 17:46:56 -0700
From:      "Darren Pilgrim" <dmp@bitfreak.org>
To:        <current@freebsd.org>
Subject:   Upgraded from 4.9 to 5.2.1, apm no longer works?
Message-ID:  <000b01c47117$bb62fe30$132a15ac@spud>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
I had RELENG_4_9 working flawlessly on an older machine.  I upgraded to
5.2.1-R by means of wiping and installing from scratch, then source-upgraded
to RELENG_5_2.  The computer does not have ACPI support, only APM.  The
kernel has "device apm" compiled in and hint.apm.0.disable="0" in
/boot/loader.conf, but no apm device is detected.  Subsequently, `apm -e
enable` fails:

apm: can't open /dev/apm: No such file or directory

The only reason I use APM on this machine is so that `init 0` turns the
machine off rather than just halting.  How do I get this functionality back?

[-- Attachment #2 --]
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.2.1-RELEASE-p9 #0: Tue Jul 20 20:31:46 PDT 2004
    root@spud.techno.pagans:/var/speck_build/obj/usr/src/sys/SPECK
Preloaded elf kernel "/boot/kernel/kernel" at 0xc06f6000.
Preloaded elf module "/boot/kernel/if_fxp.ko" at 0xc06f6154.
Preloaded elf module "/boot/kernel/miibus.ko" at 0xc06f6200.
Preloaded elf module "/boot/kernel/fdc.ko" at 0xc06f62ac.
Calibrating clock(s) ... i8254 clock: 1193228 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254" frequency 1193182 Hz quality 0
Calibrating TSC clock ... TSC clock: 332387821 Hz
CPU: Overdrive Pentium II/Pentium II Xeon/Celeron (332.39-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x1631  Stepping = 1
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 125829120 (120 MB)
Physical memory chunk(s):
0x0000000000001000 - 0x000000000009efff, 647168 bytes (158 pages)
0x0000000000100000 - 0x00000000003fffff, 3145728 bytes (768 pages)
0x0000000000826000 - 0x00000000075bdfff, 114917376 bytes (28056 pages)
avail memory = 116793344 (111 MB)
bios32: Found BIOS32 Service Directory header at 0xc00fd9e0
bios32: Entry = 0xfd9f0 (c00fd9f0)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xf0000+0xda11
pnpbios: Found PnP BIOS data at 0xc00fa330
pnpbios: Entry = f0000:a430  Rev = 1.0
Other BIOS signatures found:
null: <null device, zero device>
random: <entropy source>
mem: <memory & I/O>
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pci_open(1):	mode 1 addr port (0x0cf8) is 0x80000058
pci_open(1a):	mode1res=0x80000000 (0x80000000)
pci_cfgcheck:	device 0 [class=060000] [hdr=00] is there (id=12378086)
pcibios: BIOS version 2.10
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci0: physical bus=0
found->	vendor=0x8086, dev=0x1237, revid=0x02
	bus=0, slot=0, func=0
	class=06-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0106, statreg=0x2280, cachelnsz=0 (dwords)
	lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
found->	vendor=0x8086, dev=0x7000, revid=0x01
	bus=0, slot=7, func=0
	class=06-01-00, hdrtype=0x00, mfdev=1
	cmdreg=0x000f, statreg=0x0280, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	map[20]: type 4, range 32, base 0000ffa0, size  4, enabled
found->	vendor=0x8086, dev=0x7010, revid=0x00
	bus=0, slot=7, func=1
	class=01-01-80, hdrtype=0x00, mfdev=0
	cmdreg=0x0005, statreg=0x0280, cachelnsz=0 (dwords)
	lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	map[10]: type 1, range 32, base fb000000, size 24, enabled
	map[14]: type 4, range 32, base 0000fc00, size  8, enabled
pci_cfgintr: can't route an interrupt to 0:11 INTA
found->	vendor=0x100c, dev=0x3208, revid=0x14
	bus=0, slot=11, func=0
	class=03-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0023, statreg=0x0400, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	intpin=a, irq=11
	map[10]: type 3, range 32, base ffbe7000, size 12, enabled
	map[14]: type 4, range 32, base 0000ff40, size  5, enabled
	map[18]: type 1, range 32, base ff800000, size 20, enabled
pci_cfgintr: can't route an interrupt to 0:17 INTA
found->	vendor=0x8086, dev=0x1229, revid=0x05
	bus=0, slot=17, func=0
	class=02-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0117, statreg=0x0290, cachelnsz=8 (dwords)
	lattimer=0x48 (2160 ns), mingnt=0x08 (2000 ns), maxlat=0x38 (14000 ns)
	intpin=a, irq=9
	powerspec 1  supports D0 D1 D2 D3  current D0
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 WDMA2 controller> port 0xffa0-0xffaf at device 7.1 on pci0
ata0: reset tp1 mask=03 ostat0=50 ostat1=00
ata0-master: stat=0x50 err=0x01 lsb=0x00 msb=0x00
ata0-slave:  stat=0x00 err=0x01 lsb=0x00 msb=0x00
ata0: reset tp2 mask=03 stat0=50 stat1=00 devices=0x1<ATA_MASTER>
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: reset tp1 mask=03 ostat0=50 ostat1=01
ata1-master: stat=0x10 err=0x01 lsb=0x14 msb=0xeb
ata1-slave:  stat=0x01 err=0x04 lsb=0x14 msb=0xeb
ata1: reset tp2 mask=03 stat0=10 stat1=01 devices=0x4<ATAPI_MASTER>
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pci0: <display, VGA> at device 11.0 (no driver attached)
fxp0: <Intel 82558 Pro/100 Ethernet> port 0xff40-0xff5f mem 0xff800000-0xff8fffff,0xffbe7000-0xffbe7fff irq 9 at device 17.0 on pci0
fxp0: using memory space register mapping
fxp0: Ethernet address 00:a0:c9:d8:ad:58
fxp0: PCI IDs: 8086 1229 8086 0009 0005
fxp0: Dynamic Standby mode is disabled
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: bpf attached
ata: ata0 already exists; skipping it
ata: ata1 already exists; skipping it
pnpbios: 15 devices, largest 247 bytes
PNP0201: adding io range 0-0xf, size=0x10, align=0x1
PNP0201: adding io range 0x80-0x90, size=0x11, align=0x1
PNP0201: adding io range 0x94-0x9f, size=0xc, align=0x1
PNP0201: adding io range 0xc0-0xde, size=0x1f, align=0x1
PNP0201: adding io range 0x40b-0x40b, size=0x1, align=0x1
PNP0201: adding io range 0x410-0x43f, size=0x30, align=0x1
PNP0201: adding io range 0x481-0x483, size=0x3, align=0x1
PNP0201: adding io range 0x487-0x487, size=0x1, align=0x1
PNP0201: adding io range 0x489-0x48c, size=0x4, align=0x1
PNP0201: adding io range 0x4d6-0x4d6, size=0x1, align=0x1
PNP0201: adding dma mask 0x10
pnpbios: handle 1 device ID PNP0201 (0102d041)
PNP0100: adding io range 0x40-0x43, size=0x4, align=0x1
PNP0100: adding irq mask 0x1
pnpbios: handle 2 device ID PNP0100 (0001d041)
PNP0b00: adding io range 0x70-0x71, size=0x2, align=0x1
PNP0b00: adding irq mask 0x100
pnpbios: handle 3 device ID PNP0b00 (000bd041)
PNP0800: adding io range 0x61-0x61, size=0x1, align=0x1
pnpbios: handle 4 device ID PNP0800 (0008d041)
PNP0c04: adding io range 0xf0-0xff, size=0x10, align=0x1
PNP0c04: adding irq mask 0x2000
pnpbios: handle 5 device ID PNP0c04 (040cd041)
PNP0303: adding io range 0x60-0x60, size=0x1, align=0x1
PNP0303: adding io range 0x64-0x64, size=0x1, align=0x1
PNP0303: adding irq mask 0x2
pnpbios: handle 6 device ID PNP0303 (0303d041)
pnpbios: handle 7 device ID PNP0f13 (130fd041)
PNP0c01: adding fixed memory32 range 0xe8000-0xfffff, size=0x18000
PNP0c01: adding fixed memory32 range 0-0x9ffff, size=0xa0000
PNP0c01: adding fixed memory32 range 0x100000-0x77fffff, size=0x7700000
PNP0c01: adding fixed memory32 range 0xfff80000-0xffffffff, size=0x80000
pnpbios: handle 8 device ID PNP0c01 (010cd041)
PNP0a03: adding io range 0xcf8-0xcff, size=0x8, align=0x1
pnpbios: handle 9 device ID PNP0a03 (030ad041)
PNP0700: adding io range 0x3f2-0x3f5, size=0x4, align=0x1
PNP0700: adding irq mask 0x40
PNP0700: adding dma mask 0x4
pnpbios: handle 10 device ID PNP0700 (0007d041)
PNP0401: adding io range 0x378-0x37f, size=0x8, align=0x1
PNP0401: adding io range 0x778-0x77f, size=0x8, align=0x1
PNP0401: adding irq mask 0x20
PNP0401: adding dma mask 0x8
pnpbios: handle 11 device ID PNP0401 (0104d041)
PNP0501: adding io range 0x3f8-0x3ff, size=0x8, align=0x1
PNP0501: adding irq mask 0x10
pnpbios: handle 12 device ID PNP0501 (0105d041)
PNP0501: adding io range 0x2f8-0x2ff, size=0x8, align=0x1
PNP0501: adding irq mask 0x8
pnpbios: handle 13 device ID PNP0501 (0105d041)
PNP0c02: adding io range 0x78-0x7f, size=0x8, align=0x1
PNP0c02: adding io range 0x2e-0x2f, size=0x2, align=0x1
pnpbios: handle 14 device ID PNP0c02 (020cd041)
Trying Read_Port at 203
Trying Read_Port at 243
Trying Read_Port at 283
Trying Read_Port at 2c3
Trying Read_Port at 303
Trying Read_Port at 343
Trying Read_Port at 383
Trying Read_Port at 3c3
sc: sc0 already exists; skipping it
vga: vga0 already exists; skipping it
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
orm0: <Option ROMs> at iomem 0xea000-0xebfff,0xe8000-0xe9fff,0xc0000-0xc7fff on isa0
adv0: not probed (disabled)
aha0: not probed (disabled)
aic0: not probed (disabled)
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0065
atkbd: keyboard ID 0x41ab (2)
kbd0 at atkbd0
kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d0000
psm0: current command byte:0065
psm0: failed to reset the aux device.
bt0: not probed (disabled)
cs0: not probed (disabled)
ed0: not probed (disabled)
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
fe0: not probed (disabled)
ie0: not probed (disabled)
le0: not probed (disabled)
lnc0: not probed (disabled)
pcic0 failed to probe at port 0x3e0 iomem 0xd0000 on isa0
pcic1: not probed (disabled)
ppc0: parallel port found at 0x378
ppc0: using extended I/O port range
ppc0: ECP SPP SPP
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
sio0: irq maps: 0x21 0x31 0x21 0x21
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: irq maps: 0x21 0x29 0x21 0x21
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
sio2: not probed (disabled)
sio3: not probed (disabled)
sn0: not probed (disabled)
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fb0: vga0, vga, type:VGA (5), flags:0x7007f
fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000
fb0: init mode:24, bios mode:3, current mode:24
fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k
VGA parameters upon power-up
50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 07 80 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
VGA parameters in BIOS for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
EGA/VGA parameters to be used for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
vt0: not probed (disabled)
isa_probe_children: probing PnP devices
unknown: <PNP0201> failed to probe at port 0x4d6,0x489-0x48c,0x487,0x481-0x483,0x410-0x43f,0x40b,0xc0-0xde,0x94-0x9f,0x80-0x90,0-0xf drq 4 on isa0
unknown: <PNP0800> failed to probe at port 0x61 on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0303> at port 0x60 on isa0
psmcpnp0: irq resource info is missing; assuming irq 12
psmcpnp0: <PS/2 mouse port> at irq 12 on isa0
psm0: current command byte:0065
psm0: failed to reset the aux device.
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0700> at port 0x3f2-0x3f5 on isa0
unknown: <PNP0401> can't assign resources (port)
unknown: <PNP0401> at port 0x378-0x37f on isa0
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> at port 0x3f8-0x3ff on isa0
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> at port 0x2f8-0x2ff on isa0
Device configuration finished.
Timecounter "TSC" frequency 332387821 Hz quality 800
Timecounters tick every 1.000 msec
lo0: bpf attached
ata1: spurious interrupt - status=0x01 error=0x04
ata0-master: pio=0x0c wdma=0x22 udma=0x45 cable=80pin
ata0-master: setting PIO4 on Intel PIIX3 chip
ata0-master: setting WDMA2 on Intel PIIX3 chip
GEOM: create disk ad0 dp=0xc1b62960
ad0: <WDC WD1200BB-00CAA1/17.07W17> ATA-5 disk at ata0-master
ad0: 114473MB (234441648 sectors), 232581 C, 16 H, 63 S, 512 B
ad0: 16 secs/int, 1 depth queue, WDMA2
GEOM: new disk ad0
ata1-master: pio=0x0c wdma=0x22 udma=0x42 cable=40pin
ata1-master: setting PIO4 on Intel PIIX3 chip
acd0: <CD-ROM 50X L/15> CDROM drive at ata1 as master
acd0: read 8593KB/s (8593KB/s), 128KB buffer, PIO4
acd0: Reads: CDR, CDRW, CDDA stream, packet
acd0: Writes:
acd0: Audio: play, 255 volume levels
acd0: Mechanism: ejectable tray, unlocked
acd0: Medium: no/blank disc
[0] f:80 typ:165 s(CHS):0/1/1 e(CHS):15/254/63 s:63 l:256977
[1] f:00 typ:165 s(CHS):16/0/1 e(CHS):1023/254/63 s:257040 l:21752010
[2] f:00 typ:165 s(CHS):1023/255/63 e(CHS):1023/52/63 s:22013082 l:212426802
[3] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
GEOM: Configure ad0s1, start 32256 length 131572224 end 131604479
GEOM: Configure ad0s2, start 131604480 length 11137029120 end 11268633599
GEOM: Configure ad0s3, start 11270697984 length 108762522624 end 120033220607
GEOM: Configure ad0s1a, start 0 length 131572224 end 131572223
GEOM: Configure ad0s1c, start 0 length 131572224 end 131572223
GEOM: Configure ad0s2b, start 0 length 2147483648 end 2147483647
GEOM: Configure ad0s2c, start 0 length 11137029120 end 11137029119
GEOM: Configure ad0s2d, start 2147483648 length 1073741824 end 3221225471
GEOM: Configure ad0s2e, start 3221225472 length 1073741824 end 4294967295
GEOM: Configure ad0s3c, start 0 length 108762522624 end 108762522623
GEOM: Configure ad0s3e, start 0 length 108762522624 end 108762522623
Mounting root from ufs:/dev/ad0s1a
start_init: trying /sbin/init

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000b01c47117$bb62fe30$132a15ac>