From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Jaya Kumar <jayakumar.acpi@gmail.com>
Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2.6.15.3 1/1] ACPI: Atlas ACPI driver
Date: Mon, 20 Feb 2006 11:01:45 +0000 [thread overview]
Message-ID: <20060220110145.GB4489@srcf.ucam.org> (raw)
In-Reply-To: <756b48450602200249k1b79b108u42bfef68e1e9dba8@mail.gmail.com>
On Mon, Feb 20, 2006 at 06:49:54PM +0800, Jaya Kumar wrote:
> I'm not sure how standard that is. For example, I looked at the asus
> and toshiba drivers. These ACPI board drivers use
> /proc/acpi/somedevice/lcd. For example,
And, from a userspace perspective, it sucks. I'm in the process of
writing patches to transition them all over, and I'd prefer not to have
to write one for your driver as well :)
> I'll go take a look at that. I didn't look for an acpi driver outside
> of the drivers/acpi directory. But if that's the consensus, shouldn't
> someone also mod the toshiba and asus drivers?
I'm doing so.
> Standard wallmount stuff. There's 8 buttons on the one I'm using for
> testing. Vol up/down. Brightness up/down. Then several buttons for
> miscellaneous usage by people who customize the chassis. Most apps for
> this type of board are custom written and tend to just select on
> /proc/acpi/event.
Volume and brightness are things that can easily be exposed through the
input layer, and if you're running X then it's much easier to handle
events that come through the input layer than ones which come from
acpi/events. There's four keycodes for programmable buttons specced (see
/usr/include/linux/input.h - _PROG1-4), so that would fit quite nicely
as well.
Doing it via the input layer adds flexibility - it makes it easier for
non-root uesrspace to handle things, but you can still have a root-level
daemon that monitors /dev/input/event* and runs commands in response to
keycodes.
--
Matthew Garrett | mjg59@srcf.ucam.org
next prev parent reply other threads:[~2006-02-20 11:02 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 2:13 [PATCH 2.6.15.3 1/1] ACPI: Atlas ACPI driver jayakumar.acpi
2006-02-20 10:26 ` Matthew Garrett
2006-02-20 10:49 ` Jaya Kumar
2006-02-20 11:01 ` Matthew Garrett [this message]
2006-02-20 11:25 ` Jaya Kumar
2006-02-20 11:28 ` Matthew Garrett
-- strict thread matches above, loose matches on Subject: below --
2006-02-20 8:26 Yu, Luming
2006-02-20 8:37 ` Jaya Kumar
[not found] <AcY1+QTZumb9d6e3RHms9ocp4LswwgAtmORQ>
2006-02-21 6:34 ` Yu, Luming
2006-03-03 8:16 ` Jaya Kumar
2006-03-06 13:50 Yu, Luming
2006-03-07 1:50 ` Jaya Kumar
2006-03-07 8:52 Yu, Luming
2006-03-07 16:09 ` Jaya Kumar
2006-03-08 6:17 Yu, Luming
2006-03-08 7:11 ` Jaya Kumar
2006-03-08 7:44 Yu, Luming
2006-03-08 8:53 ` Jaya Kumar
2006-03-13 6:38 ` Jaya Kumar
2006-03-13 13:16 Yu, Luming
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=20060220110145.GB4489@srcf.ucam.org \
--to=mjg59@srcf.ucam.org \
--cc=jayakumar.acpi@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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