Re: Just how standard is APM?

2001-01-04 Thread Warner Losh

In message <[EMAIL PROTECTED]> Graham Wheeler writes:
: Hi all
: 
: I'm running FreeBSD 4.2-S on a Compaq Presario laptop. This laptop seems
: to have APM support (at least it does under MS-Windows), but FreeBSD
: doesn't recognise it as such. I've gone so far as to add additional log
: messages in the kernel probes for the APM BIOS, and these log that the
: initial vm86 BIOS call to get the APM BIOS version fail.
: 
: Is this really exceptional, or are there lots of unsupported APM BIOSes?
: I believe that APM is a WinTel `standard'; just how standard is it
: really?

APM is standard.  Except when it is broken in some brain damaged ways.

However, you likely have your apm device disabled in your kernel and
all you need to do is enable it.

Warner


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



Re: Just how standard is APM?

2001-01-04 Thread Graham Wheeler

Warner Losh wrote:
> 
> APM is standard.  Except when it is broken in some brain damaged ways.
> 
> However, you likely have your apm device disabled in your kernel and
> all you need to do is enable it.
> 

Nope - as I said, I added log messages to apm.c to log the BIOS probe
and they log a failure (I have "device apm0" in my config file).

gram

-- 
Dr Graham WheelerE-mail: [EMAIL PROTECTED]
Director, Research and Development   WWW:http://www.cequrux.com
CEQURUX Technologies Phone:  +27(21)423-6065
Firewalls/VPN SpecialistsFax:+27(21)424-3656


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



Re: Just how standard is APM?

2001-01-04 Thread Donald J . Maddox

Yeah, I thought that APM was APM, but the apm device does nothing
on my desktop with power management hardware...  That is, things like
'shutdown -p now' don't work, both 'apm' and 'apmd' just return
'device not configured', etc.  Interestingly, at least 'shutdown -p'
does work with ACPI anyway :)  Of course, maybe I'm just misunder-
standing the whole thing anyway...  Is power management hardware
== APM?

On Fri, Jan 05, 2001 at 07:48:48AM +0200, Graham Wheeler wrote:
> Warner Losh wrote:
> > 
> > APM is standard.  Except when it is broken in some brain damaged ways.
> > 
> > However, you likely have your apm device disabled in your kernel and
> > all you need to do is enable it.
> > 
> 
> Nope - as I said, I added log messages to apm.c to log the BIOS probe
> and they log a failure (I have "device apm0" in my config file).
> 
> gram
> 
> -- 
> Dr Graham WheelerE-mail: [EMAIL PROTECTED]
> Director, Research and Development   WWW:http://www.cequrux.com
> CEQURUX Technologies Phone:  +27(21)423-6065
> Firewalls/VPN SpecialistsFax:+27(21)424-3656
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message


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



Re: Just how standard is APM?

2001-01-04 Thread Mike Smith

> Warner Losh wrote:
> > 
> > APM is standard.  Except when it is broken in some brain damaged ways.
> > 
> > However, you likely have your apm device disabled in your kernel and
> > all you need to do is enable it.
> > 
> 
> Nope - as I said, I added log messages to apm.c to log the BIOS probe
> and they log a failure (I have "device apm0" in my config file).

How new is this laptop?  It may be ACPI-only.

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
   V I C T O R Y   N O T   V E N G E A N C E




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



Re: Just how standard is APM?

2001-01-04 Thread Peter Pentchev

On Fri, Jan 05, 2001 at 07:48:48AM +0200, Graham Wheeler wrote:
> Warner Losh wrote:
> > 
> > APM is standard.  Except when it is broken in some brain damaged ways.
> > 
> > However, you likely have your apm device disabled in your kernel and
> > all you need to do is enable it.
> > 
> 
> Nope - as I said, I added log messages to apm.c to log the BIOS probe
> and they log a failure (I have "device apm0" in my config file).

I think I've heard rumors of some BIOS's only supporting APM in real mode;
and also rumors that this was the reason for Windows sometimes shutting
down so slowly - it has to do a switch to real mode to make the APM
poweroff calls.  Feel free to correct me if I've heard wrong :)

I *know* APM in 4.2-stable did not and does not work on my laptop (some
kind of Asus).  The ACPI from -current worked fine once when I tested it,
but I had to go back to -stable for various reasons, and now I've already
gotten used to turning it off by hand after the shutdown command.
(Note: no bad feelings here, if it's the BIOS's fault, there's nothing
the FreeBSD developers can do about it; and no, I would not want anyone
to add mode switching code to FreeBSD solely for shutdown purposes :)

G'luck,
Peter

-- 
Hey, out there - is it *you* reading me, or is it someone else?


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



Re: Just how standard is APM?

2001-01-04 Thread Graham Wheeler

Mike Smith wrote:
> 
> How new is this laptop?  It may be ACPI-only.

I believe it is quite new ("designed for Windows Me").

I have to admit my ignorance - I've never heard of ACPI.

-- 
Dr Graham WheelerE-mail: [EMAIL PROTECTED]
Director, Research and Development   WWW:http://www.cequrux.com
CEQURUX Technologies Phone:  +27(21)423-6065
Firewalls/VPN SpecialistsFax:+27(21)424-3656


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



Re: Just how standard is APM?

2001-01-04 Thread Mike Smith

> Mike Smith wrote:
> > 
> > How new is this laptop?  It may be ACPI-only.
> 
> I believe it is quite new ("designed for Windows Me").

It's probably ACPI-only; welcome to FreeBSD-current. 8)

> I have to admit my ignorance - I've never heard of ACPI.

ACPI is the successor to APM, as well as trying to tie up a lot of loose 
ends in other parts of the system.  We're working on support for it (with 
a boatload of help from Intel), but it's not quite there yet.

Don't ask about backporting.  Please. 8)

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
   V I C T O R Y   N O T   V E N G E A N C E




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



Re: Just how standard is APM?

2001-01-05 Thread Daniel C. Sobral

"Donald J . Maddox" wrote:
> 
> Yeah, I thought that APM was APM, but the apm device does nothing
> on my desktop with power management hardware...  That is, things like
> 'shutdown -p now' don't work, both 'apm' and 'apmd' just return
> 'device not configured', etc.  Interestingly, at least 'shutdown -p'
> does work with ACPI anyway :)  Of course, maybe I'm just misunder-
> standing the whole thing anyway...  Is power management hardware
> == APM?

If this is still about the Presario laptop, APM works (or did up to
november) on the Compaq Presario 1621. Note the apm and acpi can't be
used together in the same kernel.

-- 
Daniel C. Sobral(8-DCS)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

"The bronze landed last, which canceled that method of impartial
choice."


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



Re: Just how standard is APM?

2001-01-05 Thread Graham Wheeler

"Daniel C. Sobral" wrote:
> 
> If this is still about the Presario laptop, APM works (or did up to
> november) on the Compaq Presario 1621. Note the apm and acpi can't be
> used together in the same kernel.

It's a 1700; previously I had a 1600 which worked better with everything
(the VIA sound was supported, the APM BIOS worked, etc). It had a flaky
touchpad, so I exchanged it, and took a 1700 because I wanted the CD-RW
drive and lighter weight - but now I have lots of unsupported hardware
(Conexant LANtastic Ethernet/modem, ESS1988 Allegro sound, and, it
seems, ACPI - which is unsupported in -stable, I gather). Fortunately I
have a 3Com PCMCIA EtherNIC, so I have enough working to make it quite
usable with FreeBSD anyway.

-- 
Dr Graham WheelerE-mail: [EMAIL PROTECTED]
Director, Research and Development   WWW:http://www.cequrux.com
CEQURUX Technologies Phone:  +27(21)423-6065
Firewalls/VPN SpecialistsFax:+27(21)424-3656


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



Re: Just how standard is APM?

2001-01-05 Thread Josef Karthauser

On Thu, Jan 04, 2001 at 11:57:37PM -0800, Mike Smith wrote:
> > Warner Losh wrote:
> > > 
> > > APM is standard.  Except when it is broken in some brain damaged ways.
> > > 
> > > However, you likely have your apm device disabled in your kernel and
> > > all you need to do is enable it.
> > > 
> > 
> > Nope - as I said, I added log messages to apm.c to log the BIOS probe
> > and they log a failure (I have "device apm0" in my config file).
> 
> How new is this laptop?  It may be ACPI-only.

Where are we at with ACPI?  Does it do power management yet?

Joe


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



Re: Just how standard is APM?

2001-01-05 Thread Warner Losh

In message <[EMAIL PROTECTED]> Graham Wheeler writes:
: Nope - as I said, I added log messages to apm.c to log the BIOS probe
: and they log a failure (I have "device apm0" in my config file).

What's the failure mode?  Is it enabled in the BIOS (I assume it is,
otherwise it wouldn't work in 'Doz).

Warner


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



Re: Just how standard is APM?

2001-01-05 Thread Warner Losh

In message <[EMAIL PROTECTED]> "Donald J . Maddox" writes:
: Yeah, I thought that APM was APM, but the apm device does nothing
: on my desktop with power management hardware...  That is, things like
: 'shutdown -p now' don't work, both 'apm' and 'apmd' just return
: 'device not configured', etc.  Interestingly, at least 'shutdown -p'
: does work with ACPI anyway :)  Of course, maybe I'm just misunder-
: standing the whole thing anyway...  Is power management hardware
: == APM?

No.  APM is a BIOS interface.  Many BIOSes that have ACPI have legacy
APM support.  Some work, some don't.  Windows (98 and newer) uses ACPI
in preference to APM, so the testing that APM mode gets is usually
meager at best.

Warner


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



Re: Just how standard is APM?

2001-01-05 Thread John Baldwin


On 05-Jan-01 Josef Karthauser wrote:
> On Thu, Jan 04, 2001 at 11:57:37PM -0800, Mike Smith wrote:
>> > Warner Losh wrote:
>> > > 
>> > > APM is standard.  Except when it is broken in some brain damaged ways.
>> > > 
>> > > However, you likely have your apm device disabled in your kernel and
>> > > all you need to do is enable it.
>> > > 
>> > 
>> > Nope - as I said, I added log messages to apm.c to log the BIOS probe
>> > and they log a failure (I have "device apm0" in my config file).
>> 
>> How new is this laptop?  It may be ACPI-only.
> 
> Where are we at with ACPI?  Does it do power management yet?

Yes.  For the Inspiron that you have you have to hack around a bit to get it to
not hang during boot (and battery status doesn't work as a result I think), but
suspend/resume on lid close work, the power button works, shutdown -p, etc.

> Joe

-- 

John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


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



Re: Just how standard is APM?

2001-01-08 Thread Graham Wheeler

Warner Losh wrote:
> 
> In message <[EMAIL PROTECTED]> Graham Wheeler writes:
> : Nope - as I said, I added log messages to apm.c to log the BIOS probe
> : and they log a failure (I have "device apm0" in my config file).
> 
> What's the failure mode?  Is it enabled in the BIOS (I assume it is,
> otherwise it wouldn't work in 'Doz).

I suspect Mike is right when he says that the machine supports ACPI
only, not APM. That would certainly explain what I observe.

g.

-- 
Dr Graham WheelerE-mail: [EMAIL PROTECTED]
Director, Research and Development   WWW:http://www.cequrux.com
CEQURUX Technologies Phone:  +27(21)423-6065
Firewalls/VPN SpecialistsFax:+27(21)424-3656


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