The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dtor_core@ameritech.net>
To: Philip Lawatsch <philip@lawatsch.at>
Cc: linux-kernel@vger.kernel.org
Subject: Re: generating keyboard events from userspace
Date: Sun, 15 Jan 2006 12:54:48 -0500	[thread overview]
Message-ID: <200601151254.49223.dtor_core@ameritech.net> (raw)
In-Reply-To: <43CA7F13.6000807@lawatsch.at>

On Sunday 15 January 2006 11:57, Philip Lawatsch wrote:
> Hi,
> 
> I'm currently writing an userspace application (with libusb) which 
> handles the LCD display on a logitech g15 keyboard.
> 
> This keyboard consists of two usb devices + a usb hub. One device is the 
> normal keyboard and the other device is the lcd + the special keys.
> Both devices get detected by the usb-hid driver.
> 
> Now the problem is that in order to access the lcd from userspace I have 
> to detach usb-hid driver from the interface so I can use it. (Or, I'd 
> have to write a driver for it which I'd like to avoid).
> 
> So, is there any way to "inject" events generated by pressing the keys 
> on the device I'm handling myself back into the whole system from userspace?
> 
> I'd really like to avoid writing a kernel mode driver for this.
> 
> Any help would be appreciated (even redirecting me to a more suitable 
> mailing list, I didn't find any)
> 

You need uinput driver (drivers/input/misc/uinput.c)

-- 
Dmitry

  reply	other threads:[~2006-01-15 17:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-15 16:57 generating keyboard events from userspace Philip Lawatsch
2006-01-15 17:54 ` Dmitry Torokhov [this message]
2006-01-15 19:00   ` Philip Lawatsch

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=200601151254.49223.dtor_core@ameritech.net \
    --to=dtor_core@ameritech.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=philip@lawatsch.at \
    /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