From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750835AbWAOQ6F (ORCPT ); Sun, 15 Jan 2006 11:58:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750950AbWAOQ6F (ORCPT ); Sun, 15 Jan 2006 11:58:05 -0500 Received: from mail.customers.edis.at ([62.99.242.131]:2232 "EHLO smtp-1.edis.at") by vger.kernel.org with ESMTP id S1750835AbWAOQ6E (ORCPT ); Sun, 15 Jan 2006 11:58:04 -0500 Message-ID: <43CA7F13.6000807@lawatsch.at> Date: Sun, 15 Jan 2006 17:57:55 +0100 From: Philip Lawatsch Organization: WaUG HQ Graz User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8) Gecko/20060114 Thunderbird/1.5 Mnenhy/0.7.3.0 MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Subject: generating keyboard events from userspace Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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