From: Chris P. <li...@in...> - 2009-08-03 22:50:40
|
On Mon, 3 Aug 2009, Rene Harder wrote: > olx69 wrote: >> >> Yes, there are actions: >> >> olaf@htpc:~$ sudo mode2 --raw --device=/dev/imon/ir_rcv >> code: 0x4f3b7632d9001586 >> code: 0x4daf714cc4001586 >> code: 0x4c8c734dc3001586 >> code: 0x4b95754dc3001586 >> code: 0x4c7e7449c6001586 >> code: 0x4cd77447c8001586 >> code: 0x4fff7949cb001586 >> code: 0x5455804dce001586 >> code: 0x596e8454ce001586 >> code: 0x60198957d1001586 >> code: 0x66b58f52d8001586 >> code: 0x6d768e54dc001586 >> code: 0x74268d5ad9001586 >> code: 0x76cd8f4de0001586 >> > > Perfect , here we see the problem, that's the raw touchscreen output > instead of a reduced button matrix as it supposed to be. > The imon driver checks the last to bytes to identify the touchscreen > data, yours are different. So the packages are not recognized as > touchscreen data and are not forwarded to the input subsystem. > > The attached patch should solve this problem. Please let me know if it > works with this patch. Hi Rene, That patch fixed it for me! I installed the evtouch driver (ubuntu 9.04) and wrote a pdi file in: /usr/share/hal/fdi/policy/20thirdparty/60-iMON-USB-Touchscreen.fdi <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="info.product" contains="iMON USB Touchscreen (15c2:0034)"> <match key="info.capabilities" contains="input.touchpad"> <merge key="input.x11_driver" type="string">evtouch</merge> <merge key="input.x11_options.minx" type="string">62</merge> <merge key="input.x11_options.miny" type="string">279</merge> <merge key="input.x11_options.maxx" type="string">3930</merge> <merge key="input.x11_options.maxy" type="string">3958</merge> <merge key="input.x11_options.taptimer" type="string">30</merge> <merge key="input.x11_options.longtouchtimer" type="string">750</merge> <merge key="input.x11_options.longtouched_action" type="string">click</merge> <merge key="input.x11_options.longtouched_button" type="string">3</merge> <merge key="input.x11_options.oneandhalftap_button" type="string">2</merge> <merge key="input.x11_options.movelimit" type="string">10</merge> <merge key="input.x11_options.touched_drag" type="string">1</merge> <merge key="input.x11_options.maybetapped_action" type="string">click</merge> <merge key="input.x11_options.maybetapped_button" type="string">1</merge> </match> </match> </device> </deviceinfo> and it worked straight away! I couldn't make ev_calibrate work.. starting it from calibrate.sh told me min and max values but the crosses never turned red (after pressing enter).. Bit off topic, but just incase anyone googles for it.. Cheers guys, I'll keep playing and let you know if I have any problems.. > > > Jarod, > > what do you think, could we skip the check of the next to last byte or > will this interfere with packages of other imon's? The last byte 0x86 is > unique for the touchscreen with my device. > > > Thanks for your feedback, > Rene > |