public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Support for keyboards with special scancodes
@ 2002-06-03 17:52 Andre Bonin
  2002-06-03 18:11 ` Xavier Bestel
  2002-06-03 19:32 ` Thunder from the hill
  0 siblings, 2 replies; 5+ messages in thread
From: Andre Bonin @ 2002-06-03 17:52 UTC (permalink / raw)
  To: linux-kernel; +Cc: bonin

I have an Logitech Internet Navigator keyboard that has nice little 
'play', 'pause', 'e-mail' buttons of all kinds (As many of us do, i 
believe).  I couldn't find any specialised keyboard drivers in the 
kernel.  Only different locales.

I'me wondering if it was possible to write a driver that would overlay 
the existing keyboard driver and pitch non-standardized scancodes codes 
in a /dev file (in a standard format).  One could then create a daemon 
that would poll this file for changes to this file and perform the 
resulting action.

We could create some sort of standardized protocol for many types of 
'special' keyboards.  For example, a logitech keyboards sends a '0x0e' 
as a special scancode.

A simplified example;

The driver reads the scancode and recognizes it as 'Internet Browser'. 
The driver therefore writes a 'IBrowserButton' command in the dev file, 
which would be polled by a daemon/applet and would launch the 
appropriate action relative to this scancode.

Does something like this already exist?

Can I get your comments on my idea?

Thanks!


***********************************
Andre Bonin
Computer Engineering Technologist
Webmotion, Inc.
Ottawa, Ontario
Canada
***********************************


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Support for keyboards with special scancodes
  2002-06-03 17:52 Support for keyboards with special scancodes Andre Bonin
@ 2002-06-03 18:11 ` Xavier Bestel
  2002-06-03 19:32 ` Thunder from the hill
  1 sibling, 0 replies; 5+ messages in thread
From: Xavier Bestel @ 2002-06-03 18:11 UTC (permalink / raw)
  To: Andre Bonin; +Cc: Linux Kernel Mailing List, bonin

Le lun 03/06/2002 à 19:52, Andre Bonin a écrit :
> I have an Logitech Internet Navigator keyboard that has nice little 
> 'play', 'pause', 'e-mail' buttons of all kinds (As many of us do, i 
> believe).  I couldn't find any specialised keyboard drivers in the 
> kernel.  Only different locales.

Yes, and there's an app called "hotkeys" which assigns actions to these
keys (e.g. launch Evolution or KMail on a press of the "mail" key)

	Xav



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Support for keyboards with special scancodes
  2002-06-03 17:52 Support for keyboards with special scancodes Andre Bonin
  2002-06-03 18:11 ` Xavier Bestel
@ 2002-06-03 19:32 ` Thunder from the hill
  2002-06-03 19:44   ` Andre Bonin
  1 sibling, 1 reply; 5+ messages in thread
From: Thunder from the hill @ 2002-06-03 19:32 UTC (permalink / raw)
  To: Andre Bonin; +Cc: linux-kernel, bonin

Hi,

On Mon, 3 Jun 2002, Andre Bonin wrote:
> [Blah...]

Gosh, that sounds insane!

I'd rather add it as usual, dumb, boring, static keys.

Regards,
Thunder
-- 
ship is leaving right on time	|	Thunder from the hill at ngforever
empty harbour, wave goodbye	|
evacuation of the isle		|	free inhabitant not directly
caveman's paintings drowning	|	belonging anywhere


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Support for keyboards with special scancodes
@ 2002-06-03 19:39 Andries.Brouwer
  0 siblings, 0 replies; 5+ messages in thread
From: Andries.Brouwer @ 2002-06-03 19:39 UTC (permalink / raw)
  To: kernel, linux-kernel; +Cc: bonin

    I have an Logitech Internet Navigator keyboard that has nice little 
    'play', 'pause', 'e-mail' buttons of all kinds (As many of us do, i 
    believe).  I couldn't find any specialised keyboard drivers in the 
    kernel.  Only different locales.

    I'me wondering if it was possible to write a driver that would overlay 
    the existing keyboard driver and pitch non-standardized scancodes codes 
    in a /dev file (in a standard format).  One could then create a daemon 
    that would poll this file for changes to this file and perform the 
    resulting action.

    Does something like this already exist?

Yes, several people made such things.
To quote one example:

=====
The FunKey kernel patch that adds a `keycode interpretation type' that says
`send a code out over /dev/funkey'. The `funky' daemon reads this character
device and starts plain Un*x commands in response. The code is independent
of the kbd_mode, so it works under textual mode as well as under XFree86.

The patch applies to Linux 2.2.14 and comes with a simple example daemon.
You can pick both up at

    http://home.zonnet.nl/vanrein/linux/funkey
=====

(I have not checked whether the URL still works -
this post is two years old.)

Andries

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Support for keyboards with special scancodes
  2002-06-03 19:32 ` Thunder from the hill
@ 2002-06-03 19:44   ` Andre Bonin
  0 siblings, 0 replies; 5+ messages in thread
From: Andre Bonin @ 2002-06-03 19:44 UTC (permalink / raw)
  To: Thunder from the hill; +Cc: linux-kernel

Thunder from the hill wrote:
> Hi,
> 
> On Mon, 3 Jun 2002, Andre Bonin wrote:
> 
>>[Blah...]
> 
> 
> Gosh, that sounds insane!
> 
> I'd rather add it as usual, dumb, boring, static keys.

I don't think they are standard on every keyboard.  Unless we have a way 
to have different keyboard drivers...



> 
> Regards,
> Thunder




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-06-03 19:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-03 17:52 Support for keyboards with special scancodes Andre Bonin
2002-06-03 18:11 ` Xavier Bestel
2002-06-03 19:32 ` Thunder from the hill
2002-06-03 19:44   ` Andre Bonin
  -- strict thread matches above, loose matches on Subject: below --
2002-06-03 19:39 Andries.Brouwer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox