Some weeks before I have already reported about problems with
my USB Remote control.
I got a remote control and a IR Receiver with an USB cable, which
I plug into my computer. I expect receiving the events through
/dev/input/eventx but it does not work out.

The only time, i get an event is

* i plug in the receiver
* i press a button on the remote control
* i cat /dev/input/eventx

Starting on that i cannot receive more events unless i unplug the cable and 
plug it again.

This week I tried to downtrack the problem:
this is the flow of the signal i found out

drivers/usb/input/hid-core.c: hid_irq_in
drivers/hid/hid-input.c: hid_input_report
include/linux/input.h: input_sync
drivers/input/input.c:input_event
<======== BROKEN PIPE =========>
drivers/input/evdev.c:evdev_event
evdev->wait waitqueue
drivers/input/evdev.c:evdev.c

------------------
I know the source of the problem.
When you read from /dev/input/eventx and there is data available,
it sends the data, but if you read again and there is no data avalable
the process is sent to sleep but nothing will wake it up because the pipe
if broken for reports starting with number 2 and on ...

At the denoted place <======Broken Pipe ==>
In the function input_event with the configuration sent from input_sync
it will NOT call the event function from evdev. Thus it does not know
that new data is available. Maybe hid_input_report should call another
function but input_sync instead ...

Additionally not only evdev->event shall be called, but also the information 
about the remote key id shall be transferred to /dev/input/event and that is 
REALLY MYSTIC for me once it
is packed and crypted into the report structure.

Can anybody point me out/correct the proper FLOW how the information about
the keypress on the remote is correctly spread so my remote control is 
correctly working in my linux box ?


thank you in advance




-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to