linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Bastien Nocera <hadess@writeme.com>
To: Benjamin Herrenschmidt <bh40@calva.net>
Cc: linuxppc-dev@lists.linuxppc.org, debian-powerpc@lists.debian.org
Subject: Re: apmd and other archs
Date: Fri, 24 Nov 2000 16:11:32 +0100 (MET)	[thread overview]
Message-ID: <975078692.3a1e8524619b1@imp.free.fr> (raw)
In-Reply-To: <19341019072246.27236@192.168.1.2>


Quoting Benjamin Herrenschmidt <bh40@calva.net>:

> >Hi,
> >
> >Seems like I missed a good part of the discussion... First reason I
> >wanted apmd
> >marked as x86 only, is because it is useless _now_ on power-pc. We have
> a PMU,
> >not an APM BIOS (ugh!), we have pmud not apmd. What is the point
> compiling it
> >for powerpc if it's not working and will probably never ?
>
> Don't mix PowerPC and PowerMac. PowerMacs rely on pmud. But PReP and

I try not to...

> CHRP
> machines can be more PC-like that you'd like them to in some cases :)
> They don't really have an apm bios, but who knows... They certainly
> don't
> have a PMU and don't use pmud.
>
> I've been told there's an IBM PReP thinkpad out there. What does this
> box
> use for power management ? It's own mecanism ?

So, I made the incorrect assumption that the only PowerPC laptops out there were
Apple's. Blamme.

I have one question: desktops need to use the PMU for sleep as well, don't they
? Does pmud work on a desktop ? It would be nice if pmud was used as a gateway
between user-land applications (like a little sleep application, or a battery
monitor), and the kernel, in fact the PMU device.
AFAIK, apmd already does that, and apps (should) rely on libapm to avoid changes
on the underlying kernel.

We need at some point to make a decision. Right now we have:
1) PMU, handled by the kernel
2) pmud, giving a pseudo APM interface
3) apps using this pseudo interface

or
2) pmud, giving a PMU interface
3) apps using the directly the PMU

What I was trying to do with this libapm4pmud was:
2) pmud, giving a PMU interface
3) libapm sitting on top of pmud (either via the pmu or the apm interface)
4) Any application using libapm

What has been talked in this thread was:
2) having a /proc interface in the kernel for apm compatibility. I don't think
this is a good idea. Transforming data of this kind could be done in user-land
(like in a library).
1) APM interface for everything directly in the kernel. No good for me either.
The APM interface on PCs is pretty simple because you have the hardware (well
the BIOS) that gives away all the proper information. This is not the way to go,
like it's been said, Linux/PowerMac doesn't have a VGA emulation in the kernel,
so why an APM ?

I still think a libapm library for power macs is the way to go. If some day
somebody proves me wrong by providing an APM interface to the kernel, you'd just
have to recompile your application.
What I'd like to change is pmud to use a FIFO or a Unix Socket for advertising
its status, the TCP socket is just damn slow. Remove the apm interface. Use the
libapm library or directly the PMU interface. I like the idea of an event queue
for the newer Macs, APM already behaves like that, better than polling the
interface every second.

My 2 pennies.

/Bastien Nocera
http://hadess.net

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2000-11-24 15:11 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20001122143042.A28078@worldvisions.ca>
2000-11-23  8:47 ` apmd and other archs Michael Schmitz
2000-11-23 10:09   ` Avery Pennarun
2000-11-23 10:40     ` Michel Dänzer
2000-11-23 11:08       ` Avery Pennarun
2000-11-23 11:15         ` Michael Schmitz
2000-11-23 11:31           ` Avery Pennarun
2000-11-23 13:36             ` Michael Schmitz
2000-11-23 14:18               ` Gabriel Paubert
2000-11-23 18:40                 ` Michael Schmitz
2000-11-24 14:23                   ` Gabriel Paubert
2000-11-24 18:29                     ` Takashi Oe
2000-11-24 14:47                   ` Olaf Hering
2000-11-24 15:23                     ` Michael Schmitz
2000-11-23 11:37           ` Gabriel Paubert
2000-11-23 13:32             ` Tony Mantler
2000-11-23 14:12               ` Gabriel Paubert
2000-11-23 14:24                 ` Adrian Cox
2000-11-24 10:07                   ` Gabriel Paubert
2000-11-24  2:42       ` Josh Huber
2000-11-23 11:11     ` Michael Schmitz
2000-11-23 13:36       ` Hadess
2000-11-23 13:54         ` Michael Schmitz
2000-11-27 13:23           ` Michael Schmitz
2000-11-27 14:53             ` Benjamin Herrenschmidt
2000-11-27 15:34               ` Michael Schmitz
2000-11-27 20:50             ` Michael Schmitz
2000-11-24 13:51         ` Benjamin Herrenschmidt
2000-11-24 15:11           ` Bastien Nocera [this message]
2000-11-24 13:40   ` Benjamin Herrenschmidt
2000-11-24 14:29     ` Gabriel Paubert
2000-11-24 15:33       ` Benjamin Herrenschmidt
2000-11-24 16:26         ` Gabriel Paubert
2000-11-24 17:31           ` Benjamin Herrenschmidt
2000-11-24 17:56             ` Geert Uytterhoeven
2000-11-24 19:27             ` Gabriel Paubert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=975078692.3a1e8524619b1@imp.free.fr \
    --to=hadess@writeme.com \
    --cc=bh40@calva.net \
    --cc=debian-powerpc@lists.debian.org \
    --cc=linuxppc-dev@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).