* Extra keycodes
@ 2006-02-23 17:53 Matthew Garrett
2006-02-25 4:00 ` Dmitry Torokhov
0 siblings, 1 reply; 5+ messages in thread
From: Matthew Garrett @ 2006-02-23 17:53 UTC (permalink / raw)
To: dtor_core, linux-input, linux-kernel
Hi,
Several laptops have keys that are intended to show battery status. In
order to present a consistent view to userspace, it would be nice to
have a standard keycode to map them to. linux/input.h doesn't currently
provide anything appropriate. What's the correct way of allocating
another keycode?
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Extra keycodes
2006-02-23 17:53 Extra keycodes Matthew Garrett
@ 2006-02-25 4:00 ` Dmitry Torokhov
2006-02-26 16:07 ` Matthew Garrett
0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Torokhov @ 2006-02-25 4:00 UTC (permalink / raw)
To: Matthew Garrett; +Cc: linux-input, linux-kernel
On Thursday 23 February 2006 12:53, Matthew Garrett wrote:
> Hi,
>
> Several laptops have keys that are intended to show battery status. In
> order to present a consistent view to userspace, it would be nice to
> have a standard keycode to map them to. linux/input.h doesn't currently
> provide anything appropriate. What's the correct way of allocating
> another keycode?
>
Just post a patch adding it to input.h and we'll discuss... Who is intended
user? What interface is expected to be used (evdev)?
--
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Extra keycodes
2006-02-25 4:00 ` Dmitry Torokhov
@ 2006-02-26 16:07 ` Matthew Garrett
2006-03-08 17:37 ` Matthew Garrett
0 siblings, 1 reply; 5+ messages in thread
From: Matthew Garrett @ 2006-02-26 16:07 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: linux-input, linux-kernel
On Fri, Feb 24, 2006 at 11:00:58PM -0500, Dmitry Torokhov wrote:
> Just post a patch adding it to input.h and we'll discuss... Who is intended
> user? What interface is expected to be used (evdev)?
Patch included. We have code to pop up battery information in
gnome-power-manager in response to this key being pressed, and evdev is
the current interface for getting the keypress event.
diff --git a/include/linux/input.h b/include/linux/input.h
index 3c58233..1714630 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -344,6 +344,8 @@ struct input_absinfo {
#define KEY_SAVE 234
#define KEY_DOCUMENTS 235
+#define KEY_BATTERY 236
+
#define KEY_UNKNOWN 240
#define BTN_MISC 0x100
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: Extra keycodes
2006-02-26 16:07 ` Matthew Garrett
@ 2006-03-08 17:37 ` Matthew Garrett
2006-03-08 18:01 ` Dmitry Torokhov
0 siblings, 1 reply; 5+ messages in thread
From: Matthew Garrett @ 2006-03-08 17:37 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: linux-input, linux-kernel
On Sun, Feb 26, 2006 at 04:07:30PM +0000, Matthew Garrett wrote:
> Patch included. We have code to pop up battery information in
> gnome-power-manager in response to this key being pressed, and evdev is
> the current interface for getting the keypress event.
Hi - any feedback on this?
Thanks,
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Extra keycodes
2006-03-08 17:37 ` Matthew Garrett
@ 2006-03-08 18:01 ` Dmitry Torokhov
0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Torokhov @ 2006-03-08 18:01 UTC (permalink / raw)
To: Matthew Garrett; +Cc: linux-input, linux-kernel
On 3/8/06, Matthew Garrett <mjg59@srcf.ucam.org> wrote:
> On Sun, Feb 26, 2006 at 04:07:30PM +0000, Matthew Garrett wrote:
>
> > Patch included. We have code to pop up battery information in
> > gnome-power-manager in response to this key being pressed, and evdev is
> > the current interface for getting the keypress event.
>
> Hi - any feedback on this?
>
Oh, I am sorry. I will add it to my tree.
--
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-03-08 18:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-23 17:53 Extra keycodes Matthew Garrett
2006-02-25 4:00 ` Dmitry Torokhov
2006-02-26 16:07 ` Matthew Garrett
2006-03-08 17:37 ` Matthew Garrett
2006-03-08 18:01 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox