From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Richard Hughes <hughsient@gmail.com>,
Matthew Garrett <mjg59@srcf.ucam.org>,
Luming Yu <luming.yu@gmail.com>,
linux-acpi@vger.kernel.org
Subject: Re: [RFC PATCH] report acpi video hot key event through input device
Date: Wed, 1 Aug 2007 11:59:20 -0300 [thread overview]
Message-ID: <20070801145920.GG23111@khazad-dum.debian.net> (raw)
In-Reply-To: <d120d5000708010652h61028821w7ba869deb9686578@mail.gmail.com>
On Wed, 01 Aug 2007, Dmitry Torokhov wrote:
> On 7/31/07, Henrique de Moraes Holschuh <hmh@hmh.eng.br> wrote:
> > On Mon, 30 Jul 2007, Dmitry Torokhov wrote:
> > > I have some concerns over this patch. Some of the events reported are
> > > not the regular key presses that something needs to process and
> > > perform an action. Consider ACPI_VIDEO_NOTIFY_SWITCH is "Used to
> > > notify OSPM whenever the state of one of the output devices attached
> > > to the VGA controller has been switched or toggled." As far as I
> > > understand the event (whatever it was) was already processed by
> > > firmware and we getting a notification event of system change. So I am
> > > not sure that this event should be sent as a key event.
> >
> > This is the whole "passive and active input events" crap I went over with
> > thinkpad-acpi not too long ago.
> >
> > Can we please get a formal documentation in input of how it should be done,
> > and declare anything that doesn't follow it "buggy"?
> >
> > You know my position on it: a new event type, or not producing such events
> > at all. But I will follow whatever rule the input layer sets.
>
> My position is that generic event reporting (such as something has
> already switched video output from LCD to CRT, network link lost,
> battery low, brightness has already been changed) are outside of input
> layer domain (it would be silly to attach struct input_dev to network
> cards, wouldn't it?).
Can we get that documented *in-tree*? It is an issue that will keep coming
back.
Now, for the people who want these notifications (to implement status
tracking, OSDs, etc), we can setup another way to send them. Which one? I
know thinkpad-acpi has a ton of such notifications that it can issue, and
that userspace would like to get them for OSDs, and also to tell the user to
not go around undocking without pressing the undock lever AND waiting for
the all-clear signal, etc.
Matthew, Richard: would generic netlink sockets work for HAL ? Is that a
way to make at least part of the messages "generic" (maybe reusing the input
layer defines?) instead of driver-specific? Or should we continue using the
ACPI event mechanism?
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
next prev parent reply other threads:[~2007-08-01 14:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-29 16:40 [RFC PATCH] report acpi video hot key event through input device Luming Yu
2007-07-30 0:50 ` Matthew Garrett
2007-07-30 11:47 ` Richard Hughes
2007-07-30 12:55 ` Dmitry Torokhov
2007-07-31 12:58 ` Henrique de Moraes Holschuh
2007-08-01 13:52 ` Dmitry Torokhov
2007-08-01 14:59 ` Henrique de Moraes Holschuh [this message]
2007-08-01 17:12 ` Matthew Garrett
2007-08-08 6:37 ` Zhang Rui
2007-08-14 11:58 ` Richard Hughes
2007-08-14 10:43 ` [RFC PATCH] report acpi video hot key event through inputdevice Zhang Rui
2007-08-15 8:05 ` Zhang Rui
2007-08-08 18:08 ` [RFC PATCH] report acpi video hot key event through input device Zhang Rui
2007-08-08 6:32 ` Zhang Rui
2007-08-08 18:07 ` Zhang Rui
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=20070801145920.GG23111@khazad-dum.debian.net \
--to=hmh@hmh.eng.br \
--cc=dmitry.torokhov@gmail.com \
--cc=hughsient@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=luming.yu@gmail.com \
--cc=mjg59@srcf.ucam.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