Sorry to send this again. I have extended my letter. Maybe anybody of you out there can help me now or just redirect me into the correct direction.
Some weeks before I have already reported about problems with my USB Remote control which I obtained from eBay. I got a remote control sender and a IR receiver with an USB cable, which I plug into my computer. I expect receiving the events through /dev/input/event7 but it does not work out. The only chance to receive an event is * i plug in the receiver * i press a button on the remote control * i cat /dev/input/event7 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 think to know the source of the problem. When you read from /dev/input/event7 and there is data available, it sends the data, but if you read again and there is no data avalable anymore, the process is sent to sleep but nothing will wake it up because the pipe is 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 ? Maybe somebody can point me out a better mailing list to ask, because my problem is not only USB related, but expands about usb, input driver, HID driver. Looking at the output of usbmon, the usb part actuallyt seems to work quite fine. The Only problem seems the transmission of the events to /dev/input/event7 thank you in advance -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser -- "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ... Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out ------------------------------------------------------------------------- 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
