From: "Joseph P. Garcia" <jpgarcia@execpc.com>
To: Bastien Nocera <hadess@hadess.net>
Cc: schmitz@opal.biophys.uni-duesseldorf.de, iain@sandoe.co.uk,
benh@kernel.crashing.org, linuxppc-dev@lists.linuxppc.org
Subject: powermac (other ppc?) events
Date: Wed, 18 Jul 2001 16:54:48 -0500 [thread overview]
Message-ID: <20010718165448.4d7a879b.jpgarcia@execpc.com> (raw)
In-Reply-To: <3B55FB76.8080909@hadess.net>
Ok. here's what I gather:
- Buttons exist for brightness, volume, and now eject on the normal powermac keyboard.
- we also have other events we may consider to add, such as headphone insert, lid close(polled?), power key, and pmu-change (interrupt on nw)
- popular opinion is that to reduce kernel bloat, assocated reactions should be handled outside of kernel space.
- to get them out of kernel space, we should use events. (polling sucks)
- we *can* extend the normal keyboard to generate some if not all of these events
- we can also create a new event device using the very same interface (afaik)
- this route is only appealing if we dont want/like the preconceptions of using keyboard events.
- those handled as an actual key should be handled by user programs. prehandling the keyboard in userspace is messy (extending shells, window managers, etc. redundant code)
- those handled as an event device of our creation will need a userspace daemon.
These are what I percieve as the facts. Corrections welcome.
Once those are clarified, we should choose which events should be keys and which should be a powermac-daemon (i dont know if that's a PC name) handled event. I hate to start a debate, but it should also be decided what in this daemon should be static, and what should be user-configurable. It might be nice to keep unique concepts to different daemons, but maybe it would be better to have our new event device have a set of feature bits, and the daemon can be kept clean so the unused features only makes things a little bigger, but not slower. Open to some debate, but which is more bloated, many interfaces with many daemons, or one daemon with no redundant code? if its a fast/clean ship...
Consider the fact that there are probably other archetectures which could use this, and it is highly likely that this implementation will be expanded as hardware gets even weirder.
I figured we need a plan at this, since as programmers, interfaces tend not to be our strong suit IMHO.
I'm willing to help with coding, since I kinda started this thread. The occational punching bag if need be.
--
Joseph P. Garcia
http://www.execpc.com/~jpgarcia
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2001-07-18 21:54 UTC|newest]
Thread overview: 22+ 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
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 ` Joseph P. Garcia [this message]
2001-07-19 11:20 ` powermac (other ppc?) events 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 22:36 powermac (other ppc?) events Iain Sandoe
[not found] <20010718230301.7A05C2F0F9@apollo.valhalla.net>
2001-07-18 23:22 ` Joseph P. Garcia
2001-07-19 22:36 Iain Sandoe
2001-07-20 9:22 ` Michael Schmitz
2001-07-20 10:23 Iain Sandoe
2001-07-20 12:17 ` Michael Schmitz
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=20010718165448.4d7a879b.jpgarcia@execpc.com \
--to=jpgarcia@execpc.com \
--cc=benh@kernel.crashing.org \
--cc=hadess@hadess.net \
--cc=iain@sandoe.co.uk \
--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).