apm device not configured ?!

2004-01-24 Thread Julian Holley
Hi all - I'm still having problems persuading my laptop to work with apm
- apparently my machine should work on 4.9 - I have re-compiled with apm
enabled, set rc.conf to enable apm etc, but apmd, apm will not operate
and gives the message :-

apm device not configured, although /dev/apm does exist !?

what do I have to do to configure apm ? on bsd 4.9 
what is the difference between apm and apm0 ?

IBM TP 390x 2626FOG on FreeBSD4.9

any help much appreciated, J

incidently on 5.2 apm appears, and loads, but alas crashes on resume :(
 
  Powered by IBM Running Linux
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apm device not configured ?!

2004-01-24 Thread pbdlists
Julian,

Did you try to add the following line to your /boot/kernel.conf file?

en apm

and make sure the file ends with a q all by itself on a line.

Unfortunately I have quite some issues with either apm or acpi on my
Dell laptop as well when installing FBSD 5.2; it stops during boot when
a battery is connected and ACPI not disabled. It crashes on resume and
my 3Com PCMCIA ethernet card stops working sometimes, needing an
ifconfig down; ifconfig up. Maybe the PC-card problem is not apm/ACPI
related?

On Sat, Jan 24, 2004 at 04:27:53PM +, Julian Holley wrote:
 Hi all - I'm still having problems persuading my laptop to work with apm
 - apparently my machine should work on 4.9 - I have re-compiled with apm
 enabled, set rc.conf to enable apm etc, but apmd, apm will not operate
 and gives the message :-
 
 apm device not configured, although /dev/apm does exist !?
 
 what do I have to do to configure apm ? on bsd 4.9 
 what is the difference between apm and apm0 ?
 
 IBM TP 390x 2626FOG on FreeBSD4.9
 
 any help much appreciated, J
 
 incidently on 5.2 apm appears, and loads, but alas crashes on resume :(
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apm device not configured ?!

2004-01-24 Thread Dinesh Nair

On Sat, 24 Jan 2004, Julian Holley wrote:

 Hi all - I'm still having problems persuading my laptop to work with apm
 - apparently my machine should work on 4.9 - I have re-compiled with apm
 enabled, set rc.conf to enable apm etc, but apmd, apm will not operate
 and gives the message :-

when booting, do you see a message like the one below:
apm0: APM BIOS on motherboard
apm0: found APM BIOS v1.2, connected at v1.2

Regards,   /\_/\   All dogs go to heaven.
[EMAIL PROTECTED](0 0)http://www.alphaque.com/
+==oOO--(_)--OOo==+
| for a in past present future; do|
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo The opinions here in no way reflect the opinions of my $a $b.  |
| done; done  |
+=+

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


/dev/apm: device not configured

2003-01-10 Thread John Bleichert
Hello All

I'm trying to use apmd on my Thinkpad but I can't seem to figure it out. I 
have the support in my kernel:

root:/home/johnnyb  dmesg | grep pm
intpm0: Intel 82371AB Power management controller port 0xefa0-0xefaf irq 
9 at device 7.3 on pci0
intpm0: I/O mapped efa0
intpm0: intr IRQ 9 enabled revision 0
intpm0: PM I/O mapped ef00 

but as you can see, no /dev/apm0 (which I'm expecting to be in dmesg). If 
I try to use it, it fails:

johnnyb:~  apm -l
apm: can't open /dev/apm: Device not configured

Any hints on where I'm going wrong? I have 

apmd_enable=YES

in rc.conf and it doesn't seem to error out at boot time, but it doesn't 
work and I can't load it from the command line (same error about the 
unconfigured device).

Any hints on how to get this working appreciated!

Thanks - JB



#  John Bleichert 
#  http://vonbek.dhs.org/latest.jpg


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /dev/apm: device not configured

2003-01-10 Thread Matthew Seaman
On Fri, Jan 10, 2003 at 10:35:40AM -0500, John Bleichert wrote:

 I'm trying to use apmd on my Thinkpad but I can't seem to figure it out. I 
 have the support in my kernel:
 
 root:/home/johnnyb  dmesg | grep pm
 intpm0: Intel 82371AB Power management controller port 0xefa0-0xefaf irq 
 9 at device 7.3 on pci0
 intpm0: I/O mapped efa0
 intpm0: intr IRQ 9 enabled revision 0
 intpm0: PM I/O mapped ef00 
 
 but as you can see, no /dev/apm0 (which I'm expecting to be in dmesg). If 
 I try to use it, it fails:
 
 johnnyb:~  apm -l
 apm: can't open /dev/apm: Device not configured
 
 Any hints on where I'm going wrong? I have 
 
 apmd_enable=YES
 
 in rc.conf and it doesn't seem to error out at boot time, but it doesn't 
 work and I can't load it from the command line (same error about the 
 unconfigured device).

You need the apm0 device in your kernel, as well as the specific
device for the particular Power management bus chipset you have:

% grep pm /var/run/dmesg.boot
apm0: APM BIOS on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
viapropm0: SMBus I/O base at 0xe800
viapropm0: VIA VT8233 Power Management Unit port 0xe800-0xe80f at device 17.0 on 
pci0
viapropm0: SMBus revision code 0x0

ie. edit the Kernel config to add a 'device apm0' line as follows:

device  apm0at nexus? flags 0x20 # Advanced Power Management

apm0 is in GENERIC, but it's marked 'disable' by default.  I think you
can enable it using the GENERIC kernel by:

ena apm0

in /boot/kernel.conf and 

userconfig_script_load=YES

in /boot/loader.conf, but as I tend to automatically build myself a
custom kernel I have never spent much time investigating.  FreeBSD-5.0
might or might not work the same way, and you may find that ACPI is a
better alternative for that OS version on some motherboards.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /dev/apm: device not configured

2003-01-10 Thread John Bleichert
On Fri, 10 Jan 2003, Matthew Seaman wrote:
 Subject: Re: /dev/apm: device not configured
 
 On Fri, Jan 10, 2003 at 10:35:40AM -0500, John Bleichert wrote:
 
  I'm trying to use apmd on my Thinkpad but I can't seem to figure it out. I 
  have the support in my kernel:
  
  root:/home/johnnyb  dmesg | grep pm
  intpm0: Intel 82371AB Power management controller port 0xefa0-0xefaf irq 
  9 at device 7.3 on pci0
  intpm0: I/O mapped efa0
  intpm0: intr IRQ 9 enabled revision 0
  intpm0: PM I/O mapped ef00 
  
  but as you can see, no /dev/apm0 (which I'm expecting to be in dmesg). If 
  I try to use it, it fails:
  
  johnnyb:~  apm -l
  apm: can't open /dev/apm: Device not configured
  
snip
 
 You need the apm0 device in your kernel, as well as the specific
 device for the particular Power management bus chipset you have:
 
 % grep pm /var/run/dmesg.boot
 apm0: APM BIOS on motherboard
 apm0: found APM BIOS v1.2, connected at v1.2
 viapropm0: SMBus I/O base at 0xe800
 viapropm0: VIA VT8233 Power Management Unit port 0xe800-0xe80f at device 17.0 
on pci0
 viapropm0: SMBus revision code 0x0
 
 ie. edit the Kernel config to add a 'device apm0' line as follows:
 
 device  apm0at nexus? flags 0x20 # Advanced Power Management
 
snip

Whoops! I had forgotten to remove 'disable' from that line. Works like a 
charm now (although my battery is shot ...).

Thanks for the pointer - JB

#  John Bleichert 
#  http://vonbek.dhs.org/latest.jpg


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message