How create /dev/apm* ???

Armand Passelac apasselac at free.fr
Fri Aug 22 09:24:34 PDT 2003


[---- On Fri, 22 Aug, 2003 at  8:41, Kevin Oberman wrote: ----]
> > Date: Fri, 22 Aug 2003 16:10:16 +0200
> > From: Armand Passelac <apasselac at free.fr>
> > Sender: owner-freebsd-current at freebsd.org
> > 
> > 
> > Hi,
> > I have installed a FreeBSD 5.1 on my Laptop (Compaq Armada E500).
> > I have a problem with the power management :
> > 
> > - I can't use the ACPI module : the kernel can't be loaded.
> > OK no problem !
> > As I saw within many FAQs, it's normal (it depends on the type of the laptop).
> > 
> > - I would like to use APM so !
> > I realize the following stages (see http://freebsd.unixtech.be/doc/en_US.ISO8859-1/articles/laptop/x61.html) :
> > 
> > 	* I build my kernel with "device apm"
> > 
> > 	* /boot/device.hints :
> > 	hint.acpi.0.disabled="1"
> > 	#hw.acpi.ec.event_driven="1"
> > 	hint.apm.0.disabled="0"
> > 	hint.apm.0.flags="0x20"
> > 
> > 	* /boot/loader.conf :
> > 	apm_load="YES"
> > 
> > 	* /etc/rc.conf 
> > 	apm_enable="YES"
> > 
> > 
> > But during the boot I get an error : "can't open /dev/apm"
> > 
> > Indeed, there is no device with apm* name within /dev
> > 
> > How can I create this device (In the freebsd-questions list somebody tails me that's not possible with 5.X there is no possibility to use a kind of makedev).
> > 
> 
> That is correct. The apm driver creates the device automagically with
> devfs. S0 the question is why it is not doing so.
> 
> Please attach the output of dmesg. (Actually, all of the apm stuff
> should be in the first 15 lines.)
My dmesg is in attach.
I see nothing aboutt apm !
But during the boot I can see the message tailling /dev/apm no such file



> -- 
> R. Kevin Oberman, Network Engineer
> Energy Sciences Network (ESnet)
> Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
> E-mail: oberman at es.net			Phone: +1 510 486-8634
[---- End of original mail from Kevin Oberman ----]

-- 
"No guts No glory"

=] PASSELAC Armand [=
     (  @ @ )   
Ingenieur Systemes-Reseaux & Securite
ORBYTES INGENIERIE
-------------- next part --------------
Copyright (c) 1992-2003 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.1-RELEASE #0: Sat Jul 19 23:33:27 CEST 2003
    root at freebie.freebsd.org:/usr/obj/usr/src/sys/FREEBIE
Preloaded elf kernel "/boot/kernel/kernel" at 0xc06f1000.
Preloaded elf module "/boot/kernel/snd_driver.ko" at 0xc06f11cc.
Preloaded elf module "/boot/kernel/snd_vibes.ko" at 0xc06f127c.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc06f132c.
Preloaded elf module "/boot/kernel/snd_via82c686.ko" at 0xc06f13d8.
Preloaded elf module "/boot/kernel/snd_t4dwave.ko" at 0xc06f148c.
Preloaded elf module "/boot/kernel/snd_solo.ko" at 0xc06f153c.
Preloaded elf module "/boot/kernel/snd_sbc.ko" at 0xc06f15ec.
Preloaded elf module "/boot/kernel/snd_sb16.ko" at 0xc06f1698.
Preloaded elf module "/boot/kernel/snd_sb8.ko" at 0xc06f1748.
Preloaded elf module "/boot/kernel/snd_neomagic.ko" at 0xc06f17f4.
Preloaded elf module "/boot/kernel/snd_mss.ko" at 0xc06f18a8.
Preloaded elf module "/boot/kernel/snd_maestro3.ko" at 0xc06f1954.
Preloaded elf module "/boot/kernel/snd_maestro.ko" at 0xc06f1a08.
Preloaded elf module "/boot/kernel/snd_ich.ko" at 0xc06f1ab8.
Preloaded elf module "/boot/kernel/snd_fm801.ko" at 0xc06f1b64.
Preloaded elf module "/boot/kernel/snd_ess.ko" at 0xc06f1c14.
Preloaded elf module "/boot/kernel/snd_es137x.ko" at 0xc06f1cc0.
Preloaded elf module "/boot/kernel/snd_emu10k1.ko" at 0xc06f1d70.
Preloaded elf module "/boot/kernel/snd_ds1.ko" at 0xc06f1e20.
Preloaded elf module "/boot/kernel/snd_csa.ko" at 0xc06f1ecc.
Preloaded elf module "/boot/kernel/snd_cs4281.ko" at 0xc06f1f78.
Preloaded elf module "/boot/kernel/snd_cmi.ko" at 0xc06f2028.
Preloaded elf module "/boot/kernel/snd_als4000.ko" at 0xc06f20d4.
Preloaded elf module "/boot/kernel/snd_ad1816.ko" at 0xc06f2184.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 596923840 Hz
CPU: Intel Pentium III (596.92-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 201261056 (191 MB)
avail memory = 187969536 (179 MB)
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0x50000000-0x53ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
cbb0: <TI1225 PCI-CardBus Bridge> mem 0x41100000-0x41100fff irq 11 at device 4.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb1: <TI1225 PCI-CardBus Bridge> mem 0x41180000-0x41180fff irq 11 at device 4.1 on pci0
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x3420-0x342f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x3400-0x341f irq 11 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
pcm0: <ESS Technology Maestro-2E> port 0x3000-0x30ff irq 11 at device 8.0 on pci0
pcm0: <SigmaTel STAC9721/23 AC97 Codec>
fxp0: <Intel 82557/8/9 EtherExpress Pro/100(B) Ethernet> port 0x3440-0x347f mem 0x41200000-0x4121ffff,0x41280000-0x41280fff irq 11 at device 9.0 on pci0
fxp0: Ethernet address 00:d0:59:1a:04:8d
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <simple comms, UART> at device 9.1 (no driver attached)
orm0: <Option ROMs> at iomem 0xd0000-0xd17ff,0xc0000-0xcffff on isa0
pmtimer0 on isa0
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
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0401> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
sio4: configured irq 3 not in bitmap of probed irqs 0
sio4: port may not be enabled
unknown: <PNP0c02> can't assign resources (port)
Timecounters tick every 10.000 msec
ad0: 28615MB <IC25N030ATCS04-0> [58140/16/63] at ata0-master UDMA33
acd0: DVD-ROM <Compaq DVD-ROM SD-C2402> at ata0-slave PIO4
Mounting root from ufs:/dev/ad0s3a


More information about the freebsd-current mailing list