LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-25-2012, 03:34 AM   #1
Viniesta
LQ Newbie
 
Registered: Apr 2012
Location: Spain
Distribution: Debian Squeeze
Posts: 2

Rep: Reputation: Disabled
uInput device with keyboard and mouse capabilities seems stuck


Dear all,

I have been experience an strange problem, I hope maybe you could be able to give some light on it.

I am running a Debian Squeeze distro (6.0), with kernel 2.6.37.6. on a device with a touchscreen.
The touch events are handled through the hid-quanta module. I use the uTouch library to identify the ongoing gestures (the screen can detect a maximum of two fingers simultaneously).
The gestures detected through the uTouch library are converted in mouse/key events and injected back to kernel through the uInput kernel module. This uTouch device can report the 255 keyboard keys, the
left and rigth mouse buttons and absolute axis position.

My problem is that randomly, my application stops to send events through my the uInput device, and it does not respond to any touch gesture. If I query the state of the uInput device, the left button of the mouse (button[1]) appears as down, as if it's been holding down, even if the touchscreen device is idle.

The problem is solved by de-activating and activating the uInput device by means of xinput as well:

xinput set-prop "uinput-device" "Device Enabled" 0
xinput set-prop "uinput-device" "Device Enabled" 1

I have verified that I received events from the hid-quanta module, so it is not a problem of the touchscreen or the hid-quanta module. I have not find any problem in the uTouch library either or in my application (yet).
I have looked around but I haven't found anything related to this problem yet.

I could not find what does internally the 'xinput set-prop "uinput-device" "Device Enabled"' command neither.

If anyone knows which can be a good direction to investigate, it would be greatly appreciate.

Thank you very much,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
uinput help echo36 Programming 1 11-30-2009 11:55 PM
Issues with a kernel mod (UINPUT) monkiidansu Linux - Software 2 08-12-2007 02:16 PM
laptop keyboard key stuck dsschanze General 2 11-12-2005 02:56 PM
xterm mouse capabilities fr0zen Linux - Hardware 0 12-07-2003 06:33 PM
USB mouse, keyboard, hid, console mouse problems jqcaducifer Linux - General 1 08-05-2003 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration