From: Pavel Machek <pavel@ucw.cz>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: Linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: acpi/apm events as inputs: how to handle?
Date: Sun, 6 Jan 2008 00:30:11 +0100 [thread overview]
Message-ID: <20080105233011.GA1883@elf.ucw.cz> (raw)
In-Reply-To: <477B5FD8.5070503@msgid.tls.msk.ru>
On Wed 2008-01-02 12:56:40, Michael Tokarev wrote:
> (Not so) recently, ACPI events started appearing as
> key press events over linux input subsystem. The
> question regarding this is simple: how it's supposed
> to be handled?
>
> First of all, I don't know any software so far that
> can handle input layer in userspace when not running
> X. In X, it's usually done using window manager
> setup or with special application (like, volume
> up/down keys etc). But without X, there's no such
> application, as far as I can see.
>
> It's easy to write one, but there may be.. issues
> with finding which input device to use.
>
> Now, linux already have hotplug subsystem, using
> /sbin/hotplug helper (or whatever it points to,
> or using netlink). ACPI key events are rare.
>
> What I'm thinking about is: why ACPI events are
> routed over input subsystem, instead of hotplug
> subsystem? With input, there's a need for a
> special daemon/application listening on the
> specific "keyboard" device, while with hotplug
> subsystem, it's already here - linux (by default
> anyway, if not running udev etc), kernel fires
> up a script when an event occurs. I don't see
> how this special application/daemon is different
> from ol'good acpid.
>
> Or.. maybe I missed something?
No, you are not missing anything. Yes, we could use /sbin/hotplug, but
it would be an ugly hack. So better write that daemon, or teach udevd
to read from input...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2008-01-06 0:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-02 9:56 acpi/apm events as inputs: how to handle? Michael Tokarev
2008-01-05 23:30 ` Pavel Machek [this message]
2008-01-06 2:05 ` Dmitry Torokhov
2008-01-07 10:42 ` Michael Tokarev
2008-01-07 13:03 ` Andrey Borzenkov
2008-01-07 14:20 ` Dmitry Torokhov
2008-01-07 14:50 ` Michael Tokarev
2008-01-07 15:47 ` Michael Tokarev
2008-01-07 15:51 ` Dmitry Torokhov
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=20080105233011.GA1883@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=mjt@tls.msk.ru \
/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