Re: [PATCH] Map volume and brightness events on thinkpads

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Matthew Garrett <mjg59@...>
Cc: Dmitry Torokhov <dmitry.torokhov@...>, Linus Torvalds <torvalds@...>, Jeremy Katz <katzj@...>, <linux-kernel@...>, <davej@...>
Date: Wednesday, October 17, 2007 - 1:35 pm

On Wed, 17 Oct 2007, Matthew Garrett wrote:

Why not?  Why the heck do we have to keep the worst of the current mess,
when many drivers CAN (and sometimes have to) tell appart the two classes of
events?  Make notifications a separate thing from regular events, please.

The use of the same path for notifications and events are already a big
enough concession to the HAL model.  AFAIK, HAL is the only reason why on
most systems the userspace consumer of events and notification events are
the same.  HAL gets them all (as well as ACPI events, and whatever else its
helpers poll the system for), and then distributes them over to various
other paths.

On a HAL-less system, it is far less clear that anything that needs the real
events would bother with the notifications.  The only class of applications
that have an use for the notifications are OSD applets and the like.


If one adds EV_NOTIFY, one can just allow for the same KEY constants that
are valid for EV_KEY, and be done with that, I suppose.  But my take is that
Dmitry wants to limit the number of notifications going over input.

I'd rather we added an EV_NOTIFY *bit* that gets or-ed to the real EV_*
type, so that one can turn any event into a notification.  This is certainly
to be useful at least for EV_KEY and EV_SWITCH.

-- 
  "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
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Map volume and brightness events on thinkpads, Jeremy Katz, (Mon Oct 15, 4:45 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Matthew Garrett, (Tue Oct 16, 2:53 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Renato S. Yamane, (Tue Oct 16, 3:23 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Mon Oct 15, 5:07 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Matthew Garrett, (Tue Oct 16, 9:00 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Tue Oct 16, 10:11 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Dmitry Torokhov, (Tue Oct 16, 10:27 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Matthew Garrett, (Tue Oct 16, 10:54 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Dmitry Torokhov, (Tue Oct 16, 11:54 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Matthew Garrett, (Tue Oct 16, 11:59 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Matthew Garrett, (Tue Oct 16, 10:21 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Tue Oct 16, 10:31 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Matthew Garrett, (Tue Oct 16, 10:40 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Tue Oct 16, 12:56 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Matthew Garrett, (Tue Oct 16, 2:46 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Linus Torvalds, (Tue Oct 16, 3:14 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Dmitry Torokhov, (Tue Oct 16, 4:12 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Linus Torvalds, (Tue Oct 16, 4:32 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Dmitry Torokhov, (Wed Oct 17, 11:57 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Matthew Garrett, (Wed Oct 17, 12:28 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Wed Oct 17, 1:35 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Dmitry Torokhov, (Wed Oct 17, 2:59 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Wed Oct 17, 4:42 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Dmitry Torokhov, (Thu Oct 18, 10:37 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Thu Oct 18, 6:39 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Dmitry Torokhov, (Tue Oct 23, 11:54 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Tue Oct 23, 7:34 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Matthew Garrett, (Tue Oct 16, 4:55 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Dmitry Torokhov, (Tue Oct 16, 5:18 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Dmitry Torokhov, (Tue Oct 16, 4:19 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Matthew Garrett, (Tue Oct 16, 3:20 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Tue Oct 16, 4:02 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Dmitry Torokhov, (Tue Oct 16, 4:15 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Jesse Barnes, (Mon Oct 15, 11:38 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Tue Oct 16, 4:36 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Tue Oct 16, 5:18 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Jesse Barnes, (Tue Oct 16, 10:40 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Wed Oct 17, 2:25 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Wed Oct 17, 2:39 am)
Re: [PATCH] Map volume and brightness events on thinkpads, Arjan van de Ven, (Mon Oct 15, 5:43 pm)
Re: [PATCH] Map volume and brightness events on thinkpads, Henrique de Moraes Holschuh..., (Tue Oct 16, 5:12 am)