linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Bastien Nocera <hadess@hadess.net>
To: Michael Schmitz <schmitz@opal.biophys.uni-duesseldorf.de>
Cc: Iain Sandoe <iain@sandoe.co.uk>,
	"Joseph P. Garcia" <jpgarcia@execpc.com>,
	benh@kernel.crashing.org, linuxppc-dev@lists.linuxppc.org
Subject: Re: 2.4 - buttons, temperature, ictc
Date: Wed, 18 Jul 2001 22:11:18 +0100	[thread overview]
Message-ID: <3B55FB76.8080909@hadess.net> (raw)
In-Reply-To: Pine.LNX.4.33.0107182204380.2441-100000@opal.biophys.uni-duesseldorf.de


Michael Schmitz wrote:

>>>>>Why pmud? For backlight I kind of see how you'd get that notion. But
>>>>>volume?
>>>>>
>>
>>Why would pmud make sense for the backlight ? because changing the
>>backlight settings saves power ? ..Right.
>>
>
>Sort of.
>
>>With Ben's latest changes (the /proc/pmu/* for example), pmud should
>>only be a daemon waiting for events, ie:
>>- sleep event: execute a bunch of shell commands (the pwrctl script
>>should really be split into foo.d directories)
>>
>
>Yep. Plus any other power status change events. /proc/pmu has got nothing
>to do with it, neither has /proc/apm.
>
I mean that we could strip the code of pmu by half, using /proc/pmu
instead of poking /dev/pmu directly (which is broken).
The OS is supposed to give applications an abstraction layer on top of
the hardware. pmud attacking the hardware directly is broken (and the
amount of code needed to do this in the kernel is minimum).

>>- backlight keypress event: change the backlight
>>
>
>Nope. Not power related. Not 'PMU'd.
>
Let's make "pmud" mean "PowerMac Uber Daemon" then...

>
>
>>- volume keypress event would be a bad idea to implement inside pmud
>>because that's the kind of thing you want visual feedback for, and there
>>are a lot of different sound implementations that this could be built on
>>top of. (aRts/alsa/oss)
>>
>
>Nope. See above.
>
Huh, are you agreeing with me there ?

>
>
>>- eject keypress event: eject the damn CD !
>>
>
>Neither. Again, see above. Write a general purpose all powerful event
>daemon for this. Don't bloat pmud because of some unspecific desire for
>feeping creaturitis. This is Linux (Unix), not MockOS.
>
I don't see the problem there... Bloat of pmud ? hmm, maybe a more
general-purpose daemon would be interesting, even for x86'ers.

>
>
>>Better yet for handling the volume would be to get all these keys
>>recognized by the Linux kernel (these keys don't produce any recognized
>>
>
>Nope, not longer an option (kernel bloat, even worse than app bloat).
>
Hahaha, this was a good one. If the kernel doesn't recognize the key
(ie. it doesn't generate a keycode), we can't make anything out of it.
We *have* to have these keys in the usb and adb keycodes translation tables.

Cheers

---
/Bastien Nocera
http://hadess.net


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

  reply	other threads:[~2001-07-18 21:11 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-18 11:11 2.4 - buttons, temperature, ictc Iain Sandoe
2001-07-18 12:43 ` Joseph P. Garcia
2001-07-18 12:52 ` Bastien Nocera
2001-07-18 18:00   ` Joseph P. Garcia
2001-07-18 20:13     ` Michael Schmitz
2001-07-18 20:10   ` Michael Schmitz
2001-07-18 21:11     ` Bastien Nocera [this message]
2001-07-18 21:44       ` Michael Schmitz
2001-07-19  9:06         ` Bastien Nocera
2001-07-19  9:28           ` Michael Schmitz
2001-07-18 21:54       ` powermac (other ppc?) events Joseph P. Garcia
2001-07-19 11:20         ` Michael Schmitz
2001-07-19 14:28           ` Joseph P. Garcia
2001-07-19 16:34             ` Michael Schmitz
2001-07-19 17:17               ` Joseph P. Garcia
2001-07-18 21:29     ` 2.4 - buttons, temperature, ictc Bastien Nocera
  -- strict thread matches above, loose matches on Subject: below --
2001-07-18 13:45 Iain Sandoe
2001-07-18 13:34 Iain Sandoe
2001-07-17 10:32 Iain Sandoe
2001-07-17  5:45 Joseph P. Garcia
2001-07-17  7:18 ` Geert Uytterhoeven
2001-07-17  8:18   ` Joseph P. Garcia
2001-07-17  9:11 ` Franz Sirl
2001-07-17 10:19   ` Benjamin Herrenschmidt
2001-07-17 14:40     ` Michael Schmitz
2001-07-17 20:29       ` Joseph P. Garcia

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=3B55FB76.8080909@hadess.net \
    --to=hadess@hadess.net \
    --cc=benh@kernel.crashing.org \
    --cc=iain@sandoe.co.uk \
    --cc=jpgarcia@execpc.com \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=schmitz@opal.biophys.uni-duesseldorf.de \
    /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).