Re: How create /dev/apm* ???

2003-08-22 Thread Armand Passelac
[ On Fri, 22 Aug, 2003 at  8:41, Kevin Oberman wrote: ]
> > Date: Fri, 22 Aug 2003 16:10:16 +0200
> > From: Armand Passelac <[EMAIL PROTECTED]>
> > Sender: [EMAIL PROTECTED]
> > 
> > 
> > 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: [EMAIL PROTECTED] Phone: +1 510 486-8634
[ End of original mail from Kevin Oberman ]

-- 
"No guts No glory"

=] PASSELAC Armand [=
 (  @ @ )   
Ingenieur Systemes-Reseaux & Securite
ORBYTES INGENIERIE
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
[EMAIL PROTECTED]:/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
real memory  = 201261056 (191 MB)
avail memory = 187969536 (179 MB)
Pentium Pro MTRR support enabled
npx0:  on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
pcib0:  at pcibus 0 on motherboard
pci0:  on pcib0
agp0:  mem 0x5000-0x53ff at device 
0.0 on pci0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
pci1:  at device 0.0 (no driver attached)
cbb0:  mem 0x4110-0x41100fff irq 11 at device 4.0 on 
pci0
cardbus0:  on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb1:  mem 0x4118-0x41180fff irq 11 at device 4.1 on 
pci0
cardbus1:  on cbb1
pccard1: <16-bit PCCard bus> on cbb1
isab0:  at device 7.0 on pci0
isa0:  on isab0
atapci0:  port 0x3420-0x342f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0:  port 0x3400-0x341f irq 11 at device 
7.2 on pci0
usb0:  on uhci0
usb0: USB re

Re: How create /dev/apm* ???

2003-08-22 Thread Kevin Oberman
> Date: Fri, 22 Aug 2003 16:10:16 +0200
> From: Armand Passelac <[EMAIL PROTECTED]>
> Sender: [EMAIL PROTECTED]
> 
> 
> 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.)
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How create /dev/apm* ???

2003-08-22 Thread Armand Passelac

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).


Thanks a lot.


-- 
"No guts No glory"

=] PASSELAC Armand [=
 (  @ @ )   
Ingenieur Systemes-Reseaux & Securite
ORBYTES INGENIERIE
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"