{"action":"created","issue":{"url":"https://api.github.com/repos/graugans/meta-udoo/issues/9","repository_url":"https://api.github.com/repos/graugans/meta-udoo","labels_url":"https://api.github.com/repos/graugans/meta-udoo/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/graugans/meta-udoo/issues/9/comments","events_url":"https://api.github.com/repos/graugans/meta-udoo/issues/9/events","html_url":"https://github.com/graugans/meta-udoo/issues/9","id":133567360,"number":9,"title":"touch lvds7 (neo and quad) not working in Qt app","user":{"login":"modjo756","id":5494427,"avatar_url":"https://avatars.githubusercontent.com/u/5494427?v=3","gravatar_id":"","url":"https://api.github.com/users/modjo756","html_url":"https://github.com/modjo756","followers_url":"https://api.github.com/users/modjo756/followers","following_url":"https://api.github.com/users/modjo756/following{/other_user}","gists_url":"https://api.github.com/users/modjo756/gists{/gist_id}","starred_url":"https://api.github.com/users/modjo756/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modjo756/subscriptions","organizations_url":"https://api.github.com/users/modjo756/orgs","repos_url":"https://api.github.com/users/modjo756/repos","events_url":"https://api.github.com/users/modjo756/events{/privacy}","received_events_url":"https://api.github.com/users/modjo756/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2016-02-14T18:59:43Z","updated_at":"2016-02-28T21:37:29Z","closed_at":null,"body":"when i launch a Qt app on neo or quad, the touch is not working (i added tslib in my local.conf). Following this link to test the touch : [yocto touch](http://www.lindusembedded.com/blog/2013/02/07/adding-touch-support-in-yocto/).\r\nunder the result : \r\n\r\n```\r\n$ dmesg (quad)\r\n \r\ninput: st1232-touchscreen as /devices/soc0/soc.0/2100000.aips-bus/21a8000.i2c/i2c-2/2-0055/input/input0\r\n\r\n\r\n$ dmesg (neo)\r\n\r\ninput: st1232-touchscreen as /devices/soc0/soc.0/2100000.aips-bus/21a0000.i2c/i2c-0/0-0055/input/input1\r\n[    1.154162] i2c /dev entries driver\r\n[    1.158368] IR NEC protocol handler initialized\r\n[    1.162915] IR RC5(x) protocol handler initialized\r\n[    1.167711] IR RC6 protocol handler initialized\r\n[    1.172325] IR JVC protocol handler initialized\r\n[    1.176868] IR Sony protocol handler initialized\r\n[    1.181512] IR RC5 (streamzap) protocol handler initialized\r\n[    1.187092] IR SANYO protocol handler initialized\r\n[    1.191816] IR MCE Keyboard/mouse protocol handler initialized\r\n[    1.198922] [UDOO power-off] Probed LVDS power.\r\n[    1.203497] udoo_power_off poweroff.24: request of gpio lcd_panel_on_gpio 123 failed with -16\r\n[    1.212183] [UDOO power-off] Probed LVDS backlight.\r\n[    1.217092] udoo_power_off poweroff.24: request of gpio lcd_backlight_gpio 163 failed with -16\r\n[    1.225798] [UDOO power-off] Probed sitronix st1232 touch panel.\r\n\r\n\r\nroot@udooneo:~# cat /dev/input/event1 | hexdump //(works in the same way with quad, just replace event1 by event0)\r\n0000000 703b 56be b2ac 000c 0003 0030 0030 0000\r\n0000010 703b 56be b2ac 000c 0003 0035 0080 0000\r\n0000020 703b 56be b2ac 000c 0003 0036 0065 0000\r\n0000030 703b 56be b2ac 000c 0000 0002 0000 0000\r\n0000040 703b 56be b2ac 000c 0000 0000 0000 0000\r\n0000050 703b 56be d45d 000c 0003 0030 0030 0000\r\n0000060 703b 56be d45d 000c 0003 0035 0080 0000\r\n0000070 703b 56be d45d 000c 0003 0036 0065 0000\r\n\r\nroot@udooneo:~# /usr/bin/ts_calibrate\r\nxres = 800, yres = 480\r\ntslib: Selected device is not a touchscreen (must support ABS_X and ABS_Y events)\r\nTook 2 samples...\r\nTop left : X = 997160367 Y = 1000388592\r\nTook 2 samples...\r\nTop right : X = 997160367 Y = 1000388592\r\nTook 2 samples...\r\nBot right : X = 997160367 Y = 1000388592\r\nTook 2 samples...\r\nBot left : X = 997160367 Y = 1000388592\r\nTook 2 samples...\r\nCenter : X = 997160367 Y = 1000388592\r\n-0.831649 -0.173352 0.172793\r\n-0.722514 0.317711 -0.316686\r\nCalibration constants: -54502 -11360 11324 -47350 20821 -20754 65536 \r\n```\r\n\r\nthe i2c touch is recognize at boot and loaded with kernel. When i make a basic test with cat /dev/input/event1 | hexdump  i can see the event update when i touch the screen. But if i want to calibrate it or test it it didn't work! i can see the cursor but when i touch the screen it stay at the same position ! Qt advise to use tslib for embedded http://doc.qt.io/qt-5/embedded-linux.html "},"comment":{"url":"https://api.github.com/repos/graugans/meta-udoo/issues/comments/189949913","html_url":"https://github.com/graugans/meta-udoo/issues/9#issuecomment-189949913","issue_url":"https://api.github.com/repos/graugans/meta-udoo/issues/9","id":189949913,"user":{"login":"modjo756","id":5494427,"avatar_url":"https://avatars.githubusercontent.com/u/5494427?v=3","gravatar_id":"","url":"https://api.github.com/users/modjo756","html_url":"https://github.com/modjo756","followers_url":"https://api.github.com/users/modjo756/followers","following_url":"https://api.github.com/users/modjo756/following{/other_user}","gists_url":"https://api.github.com/users/modjo756/gists{/gist_id}","starred_url":"https://api.github.com/users/modjo756/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modjo756/subscriptions","organizations_url":"https://api.github.com/users/modjo756/orgs","repos_url":"https://api.github.com/users/modjo756/repos","events_url":"https://api.github.com/users/modjo756/events{/privacy}","received_events_url":"https://api.github.com/users/modjo756/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T21:37:29Z","updated_at":"2016-02-28T21:37:29Z","body":"it works :+1: \r\n\r\nroot@udooneo:/usr/share/quitbattery-1.0.0# /usr/bin/ts_calibrate\r\nxres = 800, yres = 480\r\nTook 7 samples...\r\nTop left : X =   65 Y =  426\r\nTook 4 samples...\r\nTop right : X =  755 Y =  421\r\nTook 8 samples...\r\nBot right : X =  743 Y =   50\r\nTook 2 samples...\r\nBot left : X =   47 Y =   46\r\nTook 8 samples...\r\nCenter : X =  408 Y =  223\r\n1.693665 1.009995 -0.039999\r\n476.071472 -0.000832 -1.010874\r\nCalibration constants: 110996 66191 -2621 31199820 -54 -66248 65536 \r\n"}}