All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Lawatsch <philip@lawatsch.at>
To: linux-kernel@vger.kernel.org
Subject: generating keyboard events from userspace
Date: Sun, 15 Jan 2006 17:57:55 +0100	[thread overview]
Message-ID: <43CA7F13.6000807@lawatsch.at> (raw)

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)

kind regards Philip

             reply	other threads:[~2006-01-15 16:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-15 16:57 Philip Lawatsch [this message]
2006-01-15 17:54 ` generating keyboard events from userspace Dmitry Torokhov
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=43CA7F13.6000807@lawatsch.at \
    --to=philip@lawatsch.at \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.