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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Henrique de Moraes Holschuh <hmh@...>
Cc: Jeremy Katz <katzj@...>, <linux-kernel@...>, <torvalds@...>, <davej@...>, Dmitry Torokhov <dmitry.torokhov@...>
Date: Tuesday, October 16, 2007 - 2:46 pm

On Tue, Oct 16, 2007 at 02:56:23PM -0200, Henrique de Moraes Holschuh wrote:

But it *is* a key press!
 

I think Dmitry is wrong here. Input is the right layer for sending 
keypress information to userland.


Well, yes, we could have a layer in the kernel to turn the key events 
into ACPI events and then let the video module turn them back into input 
events, but that still wouldn't deal with the fact that legacy Dell 
backlight control isn't going to happen in the kernel.

Anyway. My point was that saying we shouldn't put notification events 
through the input layer is at odds with reality - we already do, and 
they already arrive with EV_KEY. Userspace copes. Who benefits from 
doing it in any other way? Userspace doesn't - we'd need to rewrite 
parts of it to deal with the new setup. The kernel doesn't, because it 
doesn't consume these events itself. Coming up with a "cleaner" 
interface just results in more work for everyone. We should just go with 
the defacto standard, especially since it's one that's been implemented 
by various hardware vendors.

-- 
Matthew Garrett | mjg59@srcf.ucam.org
-
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)