Re: apm in 5.4

2005-05-12 Thread Ronald Klop
On Thu, 12 May 2005 16:07:29 +0200, Matthias Buelow <[EMAIL PROTECTED]> wrote:
Hi,
is apm not available in 5.4?
I've loaded the apm module in loader.conf, and kldstat shows it loaded
but /dev/apm* isn't created and there are no messages in dmesg either.
How do I enable this?
It is available. I'm running it on my laptop now.
I've these in my config.
grep apm /etc/rc.conf
apm_enable="YES"
apmd_enable="YES"
And I know you can't use acpi and apm together, so make sure you are not  
using acpi. If you are using acpi, you should prefer that above apm.

Ronald.
PS: posting more info, like the output of dmesg is helpfull.
--
 Ronald Klop
 Amsterdam, The Netherlands
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apm in 5.4

2005-05-12 Thread Byung-Hee HWANG
On Thu, May 12, 2005 at 04:07:29PM +0200, Matthias Buelow wrote:
> Hi,
> 
> is apm not available in 5.4?
> 
> I've loaded the apm module in loader.conf, and kldstat shows it loaded
> but /dev/apm* isn't created and there are no messages in dmesg either.
> How do I enable this?

Please, use acpi instead of apm.
That's default rule.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apm in 5.4

2005-05-12 Thread Matthias Buelow
Ronald Klop wrote:

> It is available. I'm running it on my laptop now.
> I've these in my config.
> 
> grep apm /etc/rc.conf
> apm_enable="YES"
> apmd_enable="YES"

Do you have apm(4) compiled into the kernel?  I've loaded the module in
loader.conf and during boot aswell when I try to use apm(8), I get:

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

kldstat output is the following:

Id Refs AddressSize Name
 12 0xc040 5dde24   kernel
 21 0xc09de000 62b4 apm.ko

The machine is a Compaq Armada m700, kernel is GENERIC from fresh
installation; dmesg output is attached.

mkb.

Copyright (c) 1992-2005 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.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Pentium III (845.85-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  
Features=0x383f9ff
real memory  = 469696512 (447 MB)
avail memory = 449949696 (429 MB)
npx0:  on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0:  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 
0x4010-0x401f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0:  port 0x4020-0x403f irq 11 at 
device 7.2 on pci0
usb0:  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:  at device 7.3 (no driver attached)
pci0:  at device 8.0 (no driver attached)
fxp0:  port 0x2000-0x203f mem 
0x4120-0x4121,0x4128-0x41280fff irq 11 at device 9.0 on pci0
miibus0:  on fxp0
inphy0:  on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:d0:59:64:93:3b
pci0:  at device 9.1 (no driver attached)
orm0:  at iomem 0xd-0xd17ff,0xc-0xc on isa0
pmtimer0 on isa0
atkbdc0:  at port 0x64,0x60 on isa0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
psm0:  irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
fdc0:  at port 0x3f0-0x3f5 irq 6 drq 2 on isa0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0:  at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0:  on ppc0
plip0:  on ppbus0
lpt0:  on ppbus0
lpt0: Interrupt-driven port
ppi0:  on ppbus0
sc0:  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
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
unknown:  can't assign resources (port)
unknown:  can't assign resources (irq)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
sio4:  at port 0x100-0x107,0x3e8-0x3ef irq 3 drq 5 on isa0
sio4: type 16550A
unknown:  can't assign resources (port)
Timecounter "TSC" frequency 845849804 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 19077MB  [38760/16/63] at ata0-master UDMA33
acd0: DVDROM  at ata0-slave PIO4
wi0:  at port 0x180-0x1bf irq 11 function 0 config 1 on 
pccard0
wi0: using Lucent Technologies, WaveLAN/IEEE
wi0: Lucent Firmware: Station (8.36.1)
wi0: Ethernet address: 00:02:2d:a9:07:71
wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Mounting root from ufs:/dev/ad0s1a
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apm in 5.4

2005-05-12 Thread Ronald Klop
On Thu, 12 May 2005 16:48:36 +0200, Matthias Buelow <[EMAIL PROTECTED]> wrote:
Ronald Klop wrote:
It is available. I'm running it on my laptop now.
I've these in my config.
grep apm /etc/rc.conf
apm_enable="YES"
apmd_enable="YES"
Do you have apm(4) compiled into the kernel?  I've loaded the module in
loader.conf and during boot aswell when I try to use apm(8), I get:
apm: can't open /dev/apm: No such file or directory
kldstat output is the following:
Id Refs AddressSize Name
 12 0xc040 5dde24   kernel
 21 0xc09de000 62b4 apm.ko
The machine is a Compaq Armada m700, kernel is GENERIC from fresh
installation; dmesg output is attached.
Yes, I have apm build into the kernel. Does your machine have apm?
As somebody else mentioned first try if you have ACPI support on your  
machine. It is a modern, more advanced version of apm. If ACPI works never  
look at APM again.

Ronald.
--
 Ronald Klop
 Amsterdam, The Netherlands
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apm in 5.4

2005-05-12 Thread Ronald Klop
On Thu, 12 May 2005 17:23:52 +0200, Matthias Buelow <[EMAIL PROTECTED]> wrote:
Ronald Klop wrote:
Yes, I have apm build into the kernel. Does your machine have apm?
As somebody else mentioned first try if you have ACPI support on your
machine. It is a modern, more advanced version of apm. If ACPI works
never  look at APM again.
Yes, it does have APM, I've used it with Linux and NetBSD without any
problems.  FreeBSD's ACPI is flakey on that machine.. if I use the wi-fi
pccard, I always get a freeze (if it's already inserted) or panic (if I
insert it).
Report your panic on the mailinglist or using send-pr. I can't help you  
with it, but there are people who can.
Try to compile a kernel with apm in and acpi not in and I think I have  
also something like pmtimer which is used by apm. And make sure acpi isn't  
loaded as a module.

Ronald.
--
 Ronald Klop
 Amsterdam, The Netherlands
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apm in 5.4

2005-05-12 Thread Matthias Buelow
Ronald Klop wrote:

> Report your panic on the mailinglist or using send-pr. I can't help you 
> with it, but there are people who can.
> Try to compile a kernel with apm in and acpi not in and I think I have 
> also something like pmtimer which is used by apm. And make sure acpi
> isn't  loaded as a module.

I don't know if that's worth it... acpi is known to be rather flakey on
older machines (such as this notebook) and, given the average response
time to the PRs I have filed, I'm not sure I still have this machine
when it then gets some attention...  I'll now try and build a kernel
with apm built in, as apparently the .ko doesn't do anything.  Maybe
this will work.

mkb.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apm in 5.4

2005-05-12 Thread Matthias Buelow
I wrote:

> I'll now try and build a kernel
> with apm built in, as apparently the .ko doesn't do anything.  Maybe
> this will work.

Doesn't work either.. same thing as with apm.ko loaded.  No errors, no
device node.

mkb.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apm in 5.4

2005-05-12 Thread Ronald Klop
On Thu, 12 May 2005 19:40:20 +0200, Matthias Buelow <[EMAIL PROTECTED]> wrote:
I wrote:
I'll now try and build a kernel
with apm built in, as apparently the .ko doesn't do anything.  Maybe
this will work.
Doesn't work either.. same thing as with apm.ko loaded.  No errors, no
device node.
I found this quote for you. Maybe it helps.
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/laptop/article.html
On FreeBSD 5.X, you also have to set hint.apm.0.disabled="0" in
/boot/device.hints.
--
  Ronald Klop
  Amsterdam, The Netherlands
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apm in 5.4

2005-05-12 Thread Matthias Buelow
I wrote:

> Doesn't work either.. same thing as with apm.ko loaded.  No errors, no
> device node.

The cause was that I didn't change in /boot/devices.hint the line:
hint.apm.0.disabled="0" to "1"...  Thanks to Ronald Klop for the hint.
I didn't know it was explicitly disabled by default, maybe I should read
the handbook more often.

mkb.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apm in 5.4

2005-05-12 Thread Matthias Buelow
> The cause was that I didn't change in /boot/devices.hint the line:
> hint.apm.0.disabled="0" to "1"...  Thanks to Ronald Klop for the hint.

Or rather, the other way round, of course.

mkb.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apm in 5.4

2005-05-13 Thread Craig Boston
On Thu, May 12, 2005 at 05:16:47PM +0200, Ronald Klop wrote:
> On Thu, 12 May 2005 16:48:36 +0200, Matthias Buelow <[EMAIL PROTECTED]> wrote:
> >The machine is a Compaq Armada m700, kernel is GENERIC from fresh
> >installation; dmesg output is attached.
> 
> Yes, I have apm build into the kernel. Does your machine have apm?
> As somebody else mentioned first try if you have ACPI support on your  
> machine. It is a modern, more advanced version of apm. If ACPI works never  
> look at APM again.

Don't bother -- I've been fighting with ACPI on and off for the last
couple years on an m700.  I always end up giving up and going back to
APM.  No suspend, but at least the battery level can be read.

After MANY variations of ASL hacks it can be made to boot but is never
stable.  I would be surprised if ACPI worked right even in Windows on
these laptops.  There are a few others with the same model who have had
similar expeiences -- AFAIK nobody has ever managed to get it working
reliably.

Craig
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"