How can I invert kivy touch screen?












0















I have rotated my raspberry by to 270 degree using the transformation matrix.



Now, When I use kivy, the touch still works as 0 degree (The touch is out of sync) have tried to calibrate it but I am not able to. the logger file is as below:



[INFO   ] Logger: Record log in /home/pi/.kivy/logs/kivy_18-11-16_2.txt
[INFO ] Kivy: v1.11.0.dev0, git-687c973, 20181027
[INFO ] Python: v2.7.13 (default, Nov 24 2017, 17:33:09)
[GCC 6.3.0 20170516]
[INFO ] Factory: 184 symbols loaded
[INFO ] Image: Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] Window: Provider: egl_rpi
[INFO ] GL: Using the "OpenGL ES 2" graphics system
[INFO ] GL: Backend used <gl>
[INFO ] GL: OpenGL version <OpenGL ES 2.0>
[INFO ] GL: OpenGL vendor <Broadcom>
[INFO ] GL: OpenGL renderer <VideoCore IV HW>
[INFO ] GL: OpenGL parsed version: 2, 0
[INFO ] GL: Shading version <OpenGL ES GLSL ES 1.00>
[INFO ] GL: Texture max size <2048>
[INFO ] GL: Texture max units <8>
[INFO ] Window: virtual keyboard not allowed, single mode, not docked
[INFO ] Text: Provider: sdl2
[INFO ] GL: NPOT texture support is available
[INFO ] Clipboard: Provider: xclip
[INFO ] CutBuffer: cut buffer support enabled
[WARNING] Lang: The file /home/pi/motormind/main.kv is loaded multiples times, you might have unwanted behaviors.
[INFO ] ProbeSysfs: device match: /dev/input/event5
[INFO ] MTD: Read event from </dev/input/event5>
[INFO ] ProbeSysfs: device match: /dev/input/event3
[INFO ] MTD: Read event from </dev/input/event3>
[INFO ] ProbeSysfs: device match: /dev/input/event1
[INFO ] MTD: Read event from </dev/input/event1>
[INFO ] ProbeSysfs: device match: /dev/input/event4
[INFO ] MTD: Read event from </dev/input/event4>
[INFO ] ProbeSysfs: device match: /dev/input/event2
[INFO ] MTD: Read event from </dev/input/event2>
[INFO ] ProbeSysfs: device match: /dev/input/event0
[INFO ] MTD: Read event from </dev/input/event0>
[INFO ] ProbeSysfs: device match: /dev/input/event5
[INFO ] HIDInput: Read event from </dev/input/event5>
[INFO ] ProbeSysfs: device match: /dev/input/event3
[INFO ] HIDInput: Read event from </dev/input/event3>
[INFO ] ProbeSysfs: device match: /dev/input/event1
[INFO ] HIDInput: Read event from </dev/input/event1>
[INFO ] ProbeSysfs: device match: /dev/input/event4
[INFO ] HIDInput: Read event from </dev/input/event4>
[INFO ] ProbeSysfs: device match: /dev/input/event2
[INFO ] HIDInput: Read event from </dev/input/event2>
[INFO ] ProbeSysfs: device match: /dev/input/event0
[INFO ] HIDInput: Read event from </dev/input/event0>
[INFO ] Base: Start application main loop
[INFO ] MTD: </dev/input/event5> range position X is 0 - 4095
[INFO ] MTD: </dev/input/event3> range position X is 0 - 0
[INFO ] MTD: </dev/input/event5> range position Y is 0 - 4095
[INFO ] MTD: </dev/input/event1> range position X is 0 - 0
[INFO ] MTD: </dev/input/event3> range position Y is 0 - 0
[INFO ] MTD: </dev/input/event5> range touch major is 0 - 0
[INFO ] MTD: </dev/input/event1> range position Y is 0 - 0
[INFO ] MTD: </dev/input/event3> range touch major is 0 - 0
[INFO ] MTD: </dev/input/event5> range touch minor is 0 - 0
[INFO ] MTD: </dev/input/event1> range touch major is 0 - 0
[INFO ] MTD: </dev/input/event3> range touch minor is 0 - 0
[INFO ] MTD: </dev/input/event2> range position X is 0 - 0
[INFO ] MTD: </dev/input/event5> range pressure is 0 - 255
[INFO ] MTD: </dev/input/event1> range touch minor is 0 - 0
[INFO ] MTD: </dev/input/event4> range position X is 0 - 16384
[INFO ] HIDMotionEvent: using <ADS7846 Touchscreen^@>
[INFO ] MTD: </dev/input/event0> range position X is 1 - 16384
[INFO ] HIDMotionEvent: using <Genius Optical Mouse^@>
[INFO ] MTD: </dev/input/event3> range pressure is 0 - 255
[INFO ] HIDMotionEvent: using <Lite-On Technology Corp. USB Keyboard^@>
[INFO ] HIDMotionEvent: using <Lite-On Technology Corp. USB Keyboard^@>
[INFO ] MTD: </dev/input/event2> range position Y is 0 - 0
[INFO ] MTD: </dev/input/event5> axes invertion: X is 0, Y is 0
[INFO ] HIDMotionEvent: using <ILITEK Multi-Touch-V3000^@>
[INFO ] MTD: </dev/input/event1> range pressure is 0 - 255
[INFO ] HIDMotionEvent: using <ILITEK Multi-Touch-V3000^@>
[INFO ] HIDMotionEvent: <ADS7846 Touchscreen^@> range ABS X position is 0 - 4095
[INFO ] MTD: </dev/input/event4> range position Y is 0 - 9600
[INFO ] MTD: </dev/input/event3> axes invertion: X is 0, Y is 0
[INFO ] MTD: </dev/input/event0> range position Y is 1 - 9600
[INFO ] MTD: </dev/input/event2> range touch major is 0 - 0
[INFO ] MTD: </dev/input/event5> rotation set to 0
[INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS X position is 0 - 16384
[INFO ] MTD: </dev/input/event1> axes invertion: X is 0, Y is 0
[INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS X position is 1 - 16384
[INFO ] HIDMotionEvent: <ADS7846 Touchscreen^@> range ABS Y position is 0 - 4095
[INFO ] MTD: </dev/input/event4> range touch major is 0 - 0
[INFO ] MTD: </dev/input/event3> rotation set to 0
[INFO ] MTD: </dev/input/event0> range touch major is 0 - 0
[INFO ] MTD: </dev/input/event2> range touch minor is 0 - 0
[INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS Y position is 0 - 9600
[INFO ] MTD: </dev/input/event1> rotation set to 0
[INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS Y position is 1 - 9600
[INFO ] MTD: </dev/input/event4> range touch minor is 0 - 0
[INFO ] HIDMotionEvent: <ADS7846 Touchscreen^@> range ABS pressure is 0 - 65535
[INFO ] MTD: </dev/input/event0> range touch minor is 0 - 0
[INFO ] MTD: </dev/input/event2> range pressure is 0 - 255
[INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range position X is 0 - 16384
[INFO ] MTD: </dev/input/event4> range pressure is 0 - 255
[INFO ] MTD: </dev/input/event0> range pressure is 0 - 255
[INFO ] MTD: </dev/input/event2> axes invertion: X is 0, Y is 0
[INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range position Y is 0 - 9600
[INFO ] MTD: </dev/input/event4> axes invertion: X is 0, Y is 0
[INFO ] MTD: </dev/input/event0> axes invertion: X is 0, Y is 0
[INFO ] MTD: </dev/input/event0> rotation set to 0
[INFO ] MTD: </dev/input/event4> rotation set to 0
[INFO ] MTD: </dev/input/event2> rotation set to 0
[WARNING] stderr: Exception: FBO Initialization failed: Incomplete attachment (36054)
[WARNING] stderr: Exception Exception: Exception('FBO Initialization failed: Incomplete attachment (36054)',) in 'kivy.graphics.fbo.$
[WARNING] stderr: Exception: FBO Initialization failed: Incomplete attachment (36054)
[WARNING] stderr: Exception Exception: Exception('FBO Initialization failed: Incomplete attachment (36054)',) in 'kivy.graphics.fbo.$
[INFO ] Base: Leaving application in progress...


My .kivy/config.ini file already has the touch defined as mentioned below and hence I am unsure how to add anymore lines to it.:



[input]
mouse = mouse
mtdev_%(name)s = probesysfs,provider=mtdev
hid_%(name)s = probesysfs,provider=hidinput


I've already tried the below changes in the config files:



[input]
mouse = mouse
mtdev_%(name)s = probesysfs,provider=mtdev
hid_%(name)s=probesysfs,provider=hidinput,params=invert_y=0









share|improve this question



























    0















    I have rotated my raspberry by to 270 degree using the transformation matrix.



    Now, When I use kivy, the touch still works as 0 degree (The touch is out of sync) have tried to calibrate it but I am not able to. the logger file is as below:



    [INFO   ] Logger: Record log in /home/pi/.kivy/logs/kivy_18-11-16_2.txt
    [INFO ] Kivy: v1.11.0.dev0, git-687c973, 20181027
    [INFO ] Python: v2.7.13 (default, Nov 24 2017, 17:33:09)
    [GCC 6.3.0 20170516]
    [INFO ] Factory: 184 symbols loaded
    [INFO ] Image: Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
    [INFO ] Window: Provider: egl_rpi
    [INFO ] GL: Using the "OpenGL ES 2" graphics system
    [INFO ] GL: Backend used <gl>
    [INFO ] GL: OpenGL version <OpenGL ES 2.0>
    [INFO ] GL: OpenGL vendor <Broadcom>
    [INFO ] GL: OpenGL renderer <VideoCore IV HW>
    [INFO ] GL: OpenGL parsed version: 2, 0
    [INFO ] GL: Shading version <OpenGL ES GLSL ES 1.00>
    [INFO ] GL: Texture max size <2048>
    [INFO ] GL: Texture max units <8>
    [INFO ] Window: virtual keyboard not allowed, single mode, not docked
    [INFO ] Text: Provider: sdl2
    [INFO ] GL: NPOT texture support is available
    [INFO ] Clipboard: Provider: xclip
    [INFO ] CutBuffer: cut buffer support enabled
    [WARNING] Lang: The file /home/pi/motormind/main.kv is loaded multiples times, you might have unwanted behaviors.
    [INFO ] ProbeSysfs: device match: /dev/input/event5
    [INFO ] MTD: Read event from </dev/input/event5>
    [INFO ] ProbeSysfs: device match: /dev/input/event3
    [INFO ] MTD: Read event from </dev/input/event3>
    [INFO ] ProbeSysfs: device match: /dev/input/event1
    [INFO ] MTD: Read event from </dev/input/event1>
    [INFO ] ProbeSysfs: device match: /dev/input/event4
    [INFO ] MTD: Read event from </dev/input/event4>
    [INFO ] ProbeSysfs: device match: /dev/input/event2
    [INFO ] MTD: Read event from </dev/input/event2>
    [INFO ] ProbeSysfs: device match: /dev/input/event0
    [INFO ] MTD: Read event from </dev/input/event0>
    [INFO ] ProbeSysfs: device match: /dev/input/event5
    [INFO ] HIDInput: Read event from </dev/input/event5>
    [INFO ] ProbeSysfs: device match: /dev/input/event3
    [INFO ] HIDInput: Read event from </dev/input/event3>
    [INFO ] ProbeSysfs: device match: /dev/input/event1
    [INFO ] HIDInput: Read event from </dev/input/event1>
    [INFO ] ProbeSysfs: device match: /dev/input/event4
    [INFO ] HIDInput: Read event from </dev/input/event4>
    [INFO ] ProbeSysfs: device match: /dev/input/event2
    [INFO ] HIDInput: Read event from </dev/input/event2>
    [INFO ] ProbeSysfs: device match: /dev/input/event0
    [INFO ] HIDInput: Read event from </dev/input/event0>
    [INFO ] Base: Start application main loop
    [INFO ] MTD: </dev/input/event5> range position X is 0 - 4095
    [INFO ] MTD: </dev/input/event3> range position X is 0 - 0
    [INFO ] MTD: </dev/input/event5> range position Y is 0 - 4095
    [INFO ] MTD: </dev/input/event1> range position X is 0 - 0
    [INFO ] MTD: </dev/input/event3> range position Y is 0 - 0
    [INFO ] MTD: </dev/input/event5> range touch major is 0 - 0
    [INFO ] MTD: </dev/input/event1> range position Y is 0 - 0
    [INFO ] MTD: </dev/input/event3> range touch major is 0 - 0
    [INFO ] MTD: </dev/input/event5> range touch minor is 0 - 0
    [INFO ] MTD: </dev/input/event1> range touch major is 0 - 0
    [INFO ] MTD: </dev/input/event3> range touch minor is 0 - 0
    [INFO ] MTD: </dev/input/event2> range position X is 0 - 0
    [INFO ] MTD: </dev/input/event5> range pressure is 0 - 255
    [INFO ] MTD: </dev/input/event1> range touch minor is 0 - 0
    [INFO ] MTD: </dev/input/event4> range position X is 0 - 16384
    [INFO ] HIDMotionEvent: using <ADS7846 Touchscreen^@>
    [INFO ] MTD: </dev/input/event0> range position X is 1 - 16384
    [INFO ] HIDMotionEvent: using <Genius Optical Mouse^@>
    [INFO ] MTD: </dev/input/event3> range pressure is 0 - 255
    [INFO ] HIDMotionEvent: using <Lite-On Technology Corp. USB Keyboard^@>
    [INFO ] HIDMotionEvent: using <Lite-On Technology Corp. USB Keyboard^@>
    [INFO ] MTD: </dev/input/event2> range position Y is 0 - 0
    [INFO ] MTD: </dev/input/event5> axes invertion: X is 0, Y is 0
    [INFO ] HIDMotionEvent: using <ILITEK Multi-Touch-V3000^@>
    [INFO ] MTD: </dev/input/event1> range pressure is 0 - 255
    [INFO ] HIDMotionEvent: using <ILITEK Multi-Touch-V3000^@>
    [INFO ] HIDMotionEvent: <ADS7846 Touchscreen^@> range ABS X position is 0 - 4095
    [INFO ] MTD: </dev/input/event4> range position Y is 0 - 9600
    [INFO ] MTD: </dev/input/event3> axes invertion: X is 0, Y is 0
    [INFO ] MTD: </dev/input/event0> range position Y is 1 - 9600
    [INFO ] MTD: </dev/input/event2> range touch major is 0 - 0
    [INFO ] MTD: </dev/input/event5> rotation set to 0
    [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS X position is 0 - 16384
    [INFO ] MTD: </dev/input/event1> axes invertion: X is 0, Y is 0
    [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS X position is 1 - 16384
    [INFO ] HIDMotionEvent: <ADS7846 Touchscreen^@> range ABS Y position is 0 - 4095
    [INFO ] MTD: </dev/input/event4> range touch major is 0 - 0
    [INFO ] MTD: </dev/input/event3> rotation set to 0
    [INFO ] MTD: </dev/input/event0> range touch major is 0 - 0
    [INFO ] MTD: </dev/input/event2> range touch minor is 0 - 0
    [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS Y position is 0 - 9600
    [INFO ] MTD: </dev/input/event1> rotation set to 0
    [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS Y position is 1 - 9600
    [INFO ] MTD: </dev/input/event4> range touch minor is 0 - 0
    [INFO ] HIDMotionEvent: <ADS7846 Touchscreen^@> range ABS pressure is 0 - 65535
    [INFO ] MTD: </dev/input/event0> range touch minor is 0 - 0
    [INFO ] MTD: </dev/input/event2> range pressure is 0 - 255
    [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range position X is 0 - 16384
    [INFO ] MTD: </dev/input/event4> range pressure is 0 - 255
    [INFO ] MTD: </dev/input/event0> range pressure is 0 - 255
    [INFO ] MTD: </dev/input/event2> axes invertion: X is 0, Y is 0
    [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range position Y is 0 - 9600
    [INFO ] MTD: </dev/input/event4> axes invertion: X is 0, Y is 0
    [INFO ] MTD: </dev/input/event0> axes invertion: X is 0, Y is 0
    [INFO ] MTD: </dev/input/event0> rotation set to 0
    [INFO ] MTD: </dev/input/event4> rotation set to 0
    [INFO ] MTD: </dev/input/event2> rotation set to 0
    [WARNING] stderr: Exception: FBO Initialization failed: Incomplete attachment (36054)
    [WARNING] stderr: Exception Exception: Exception('FBO Initialization failed: Incomplete attachment (36054)',) in 'kivy.graphics.fbo.$
    [WARNING] stderr: Exception: FBO Initialization failed: Incomplete attachment (36054)
    [WARNING] stderr: Exception Exception: Exception('FBO Initialization failed: Incomplete attachment (36054)',) in 'kivy.graphics.fbo.$
    [INFO ] Base: Leaving application in progress...


    My .kivy/config.ini file already has the touch defined as mentioned below and hence I am unsure how to add anymore lines to it.:



    [input]
    mouse = mouse
    mtdev_%(name)s = probesysfs,provider=mtdev
    hid_%(name)s = probesysfs,provider=hidinput


    I've already tried the below changes in the config files:



    [input]
    mouse = mouse
    mtdev_%(name)s = probesysfs,provider=mtdev
    hid_%(name)s=probesysfs,provider=hidinput,params=invert_y=0









    share|improve this question

























      0












      0








      0


      1






      I have rotated my raspberry by to 270 degree using the transformation matrix.



      Now, When I use kivy, the touch still works as 0 degree (The touch is out of sync) have tried to calibrate it but I am not able to. the logger file is as below:



      [INFO   ] Logger: Record log in /home/pi/.kivy/logs/kivy_18-11-16_2.txt
      [INFO ] Kivy: v1.11.0.dev0, git-687c973, 20181027
      [INFO ] Python: v2.7.13 (default, Nov 24 2017, 17:33:09)
      [GCC 6.3.0 20170516]
      [INFO ] Factory: 184 symbols loaded
      [INFO ] Image: Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
      [INFO ] Window: Provider: egl_rpi
      [INFO ] GL: Using the "OpenGL ES 2" graphics system
      [INFO ] GL: Backend used <gl>
      [INFO ] GL: OpenGL version <OpenGL ES 2.0>
      [INFO ] GL: OpenGL vendor <Broadcom>
      [INFO ] GL: OpenGL renderer <VideoCore IV HW>
      [INFO ] GL: OpenGL parsed version: 2, 0
      [INFO ] GL: Shading version <OpenGL ES GLSL ES 1.00>
      [INFO ] GL: Texture max size <2048>
      [INFO ] GL: Texture max units <8>
      [INFO ] Window: virtual keyboard not allowed, single mode, not docked
      [INFO ] Text: Provider: sdl2
      [INFO ] GL: NPOT texture support is available
      [INFO ] Clipboard: Provider: xclip
      [INFO ] CutBuffer: cut buffer support enabled
      [WARNING] Lang: The file /home/pi/motormind/main.kv is loaded multiples times, you might have unwanted behaviors.
      [INFO ] ProbeSysfs: device match: /dev/input/event5
      [INFO ] MTD: Read event from </dev/input/event5>
      [INFO ] ProbeSysfs: device match: /dev/input/event3
      [INFO ] MTD: Read event from </dev/input/event3>
      [INFO ] ProbeSysfs: device match: /dev/input/event1
      [INFO ] MTD: Read event from </dev/input/event1>
      [INFO ] ProbeSysfs: device match: /dev/input/event4
      [INFO ] MTD: Read event from </dev/input/event4>
      [INFO ] ProbeSysfs: device match: /dev/input/event2
      [INFO ] MTD: Read event from </dev/input/event2>
      [INFO ] ProbeSysfs: device match: /dev/input/event0
      [INFO ] MTD: Read event from </dev/input/event0>
      [INFO ] ProbeSysfs: device match: /dev/input/event5
      [INFO ] HIDInput: Read event from </dev/input/event5>
      [INFO ] ProbeSysfs: device match: /dev/input/event3
      [INFO ] HIDInput: Read event from </dev/input/event3>
      [INFO ] ProbeSysfs: device match: /dev/input/event1
      [INFO ] HIDInput: Read event from </dev/input/event1>
      [INFO ] ProbeSysfs: device match: /dev/input/event4
      [INFO ] HIDInput: Read event from </dev/input/event4>
      [INFO ] ProbeSysfs: device match: /dev/input/event2
      [INFO ] HIDInput: Read event from </dev/input/event2>
      [INFO ] ProbeSysfs: device match: /dev/input/event0
      [INFO ] HIDInput: Read event from </dev/input/event0>
      [INFO ] Base: Start application main loop
      [INFO ] MTD: </dev/input/event5> range position X is 0 - 4095
      [INFO ] MTD: </dev/input/event3> range position X is 0 - 0
      [INFO ] MTD: </dev/input/event5> range position Y is 0 - 4095
      [INFO ] MTD: </dev/input/event1> range position X is 0 - 0
      [INFO ] MTD: </dev/input/event3> range position Y is 0 - 0
      [INFO ] MTD: </dev/input/event5> range touch major is 0 - 0
      [INFO ] MTD: </dev/input/event1> range position Y is 0 - 0
      [INFO ] MTD: </dev/input/event3> range touch major is 0 - 0
      [INFO ] MTD: </dev/input/event5> range touch minor is 0 - 0
      [INFO ] MTD: </dev/input/event1> range touch major is 0 - 0
      [INFO ] MTD: </dev/input/event3> range touch minor is 0 - 0
      [INFO ] MTD: </dev/input/event2> range position X is 0 - 0
      [INFO ] MTD: </dev/input/event5> range pressure is 0 - 255
      [INFO ] MTD: </dev/input/event1> range touch minor is 0 - 0
      [INFO ] MTD: </dev/input/event4> range position X is 0 - 16384
      [INFO ] HIDMotionEvent: using <ADS7846 Touchscreen^@>
      [INFO ] MTD: </dev/input/event0> range position X is 1 - 16384
      [INFO ] HIDMotionEvent: using <Genius Optical Mouse^@>
      [INFO ] MTD: </dev/input/event3> range pressure is 0 - 255
      [INFO ] HIDMotionEvent: using <Lite-On Technology Corp. USB Keyboard^@>
      [INFO ] HIDMotionEvent: using <Lite-On Technology Corp. USB Keyboard^@>
      [INFO ] MTD: </dev/input/event2> range position Y is 0 - 0
      [INFO ] MTD: </dev/input/event5> axes invertion: X is 0, Y is 0
      [INFO ] HIDMotionEvent: using <ILITEK Multi-Touch-V3000^@>
      [INFO ] MTD: </dev/input/event1> range pressure is 0 - 255
      [INFO ] HIDMotionEvent: using <ILITEK Multi-Touch-V3000^@>
      [INFO ] HIDMotionEvent: <ADS7846 Touchscreen^@> range ABS X position is 0 - 4095
      [INFO ] MTD: </dev/input/event4> range position Y is 0 - 9600
      [INFO ] MTD: </dev/input/event3> axes invertion: X is 0, Y is 0
      [INFO ] MTD: </dev/input/event0> range position Y is 1 - 9600
      [INFO ] MTD: </dev/input/event2> range touch major is 0 - 0
      [INFO ] MTD: </dev/input/event5> rotation set to 0
      [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS X position is 0 - 16384
      [INFO ] MTD: </dev/input/event1> axes invertion: X is 0, Y is 0
      [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS X position is 1 - 16384
      [INFO ] HIDMotionEvent: <ADS7846 Touchscreen^@> range ABS Y position is 0 - 4095
      [INFO ] MTD: </dev/input/event4> range touch major is 0 - 0
      [INFO ] MTD: </dev/input/event3> rotation set to 0
      [INFO ] MTD: </dev/input/event0> range touch major is 0 - 0
      [INFO ] MTD: </dev/input/event2> range touch minor is 0 - 0
      [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS Y position is 0 - 9600
      [INFO ] MTD: </dev/input/event1> rotation set to 0
      [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS Y position is 1 - 9600
      [INFO ] MTD: </dev/input/event4> range touch minor is 0 - 0
      [INFO ] HIDMotionEvent: <ADS7846 Touchscreen^@> range ABS pressure is 0 - 65535
      [INFO ] MTD: </dev/input/event0> range touch minor is 0 - 0
      [INFO ] MTD: </dev/input/event2> range pressure is 0 - 255
      [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range position X is 0 - 16384
      [INFO ] MTD: </dev/input/event4> range pressure is 0 - 255
      [INFO ] MTD: </dev/input/event0> range pressure is 0 - 255
      [INFO ] MTD: </dev/input/event2> axes invertion: X is 0, Y is 0
      [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range position Y is 0 - 9600
      [INFO ] MTD: </dev/input/event4> axes invertion: X is 0, Y is 0
      [INFO ] MTD: </dev/input/event0> axes invertion: X is 0, Y is 0
      [INFO ] MTD: </dev/input/event0> rotation set to 0
      [INFO ] MTD: </dev/input/event4> rotation set to 0
      [INFO ] MTD: </dev/input/event2> rotation set to 0
      [WARNING] stderr: Exception: FBO Initialization failed: Incomplete attachment (36054)
      [WARNING] stderr: Exception Exception: Exception('FBO Initialization failed: Incomplete attachment (36054)',) in 'kivy.graphics.fbo.$
      [WARNING] stderr: Exception: FBO Initialization failed: Incomplete attachment (36054)
      [WARNING] stderr: Exception Exception: Exception('FBO Initialization failed: Incomplete attachment (36054)',) in 'kivy.graphics.fbo.$
      [INFO ] Base: Leaving application in progress...


      My .kivy/config.ini file already has the touch defined as mentioned below and hence I am unsure how to add anymore lines to it.:



      [input]
      mouse = mouse
      mtdev_%(name)s = probesysfs,provider=mtdev
      hid_%(name)s = probesysfs,provider=hidinput


      I've already tried the below changes in the config files:



      [input]
      mouse = mouse
      mtdev_%(name)s = probesysfs,provider=mtdev
      hid_%(name)s=probesysfs,provider=hidinput,params=invert_y=0









      share|improve this question














      I have rotated my raspberry by to 270 degree using the transformation matrix.



      Now, When I use kivy, the touch still works as 0 degree (The touch is out of sync) have tried to calibrate it but I am not able to. the logger file is as below:



      [INFO   ] Logger: Record log in /home/pi/.kivy/logs/kivy_18-11-16_2.txt
      [INFO ] Kivy: v1.11.0.dev0, git-687c973, 20181027
      [INFO ] Python: v2.7.13 (default, Nov 24 2017, 17:33:09)
      [GCC 6.3.0 20170516]
      [INFO ] Factory: 184 symbols loaded
      [INFO ] Image: Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
      [INFO ] Window: Provider: egl_rpi
      [INFO ] GL: Using the "OpenGL ES 2" graphics system
      [INFO ] GL: Backend used <gl>
      [INFO ] GL: OpenGL version <OpenGL ES 2.0>
      [INFO ] GL: OpenGL vendor <Broadcom>
      [INFO ] GL: OpenGL renderer <VideoCore IV HW>
      [INFO ] GL: OpenGL parsed version: 2, 0
      [INFO ] GL: Shading version <OpenGL ES GLSL ES 1.00>
      [INFO ] GL: Texture max size <2048>
      [INFO ] GL: Texture max units <8>
      [INFO ] Window: virtual keyboard not allowed, single mode, not docked
      [INFO ] Text: Provider: sdl2
      [INFO ] GL: NPOT texture support is available
      [INFO ] Clipboard: Provider: xclip
      [INFO ] CutBuffer: cut buffer support enabled
      [WARNING] Lang: The file /home/pi/motormind/main.kv is loaded multiples times, you might have unwanted behaviors.
      [INFO ] ProbeSysfs: device match: /dev/input/event5
      [INFO ] MTD: Read event from </dev/input/event5>
      [INFO ] ProbeSysfs: device match: /dev/input/event3
      [INFO ] MTD: Read event from </dev/input/event3>
      [INFO ] ProbeSysfs: device match: /dev/input/event1
      [INFO ] MTD: Read event from </dev/input/event1>
      [INFO ] ProbeSysfs: device match: /dev/input/event4
      [INFO ] MTD: Read event from </dev/input/event4>
      [INFO ] ProbeSysfs: device match: /dev/input/event2
      [INFO ] MTD: Read event from </dev/input/event2>
      [INFO ] ProbeSysfs: device match: /dev/input/event0
      [INFO ] MTD: Read event from </dev/input/event0>
      [INFO ] ProbeSysfs: device match: /dev/input/event5
      [INFO ] HIDInput: Read event from </dev/input/event5>
      [INFO ] ProbeSysfs: device match: /dev/input/event3
      [INFO ] HIDInput: Read event from </dev/input/event3>
      [INFO ] ProbeSysfs: device match: /dev/input/event1
      [INFO ] HIDInput: Read event from </dev/input/event1>
      [INFO ] ProbeSysfs: device match: /dev/input/event4
      [INFO ] HIDInput: Read event from </dev/input/event4>
      [INFO ] ProbeSysfs: device match: /dev/input/event2
      [INFO ] HIDInput: Read event from </dev/input/event2>
      [INFO ] ProbeSysfs: device match: /dev/input/event0
      [INFO ] HIDInput: Read event from </dev/input/event0>
      [INFO ] Base: Start application main loop
      [INFO ] MTD: </dev/input/event5> range position X is 0 - 4095
      [INFO ] MTD: </dev/input/event3> range position X is 0 - 0
      [INFO ] MTD: </dev/input/event5> range position Y is 0 - 4095
      [INFO ] MTD: </dev/input/event1> range position X is 0 - 0
      [INFO ] MTD: </dev/input/event3> range position Y is 0 - 0
      [INFO ] MTD: </dev/input/event5> range touch major is 0 - 0
      [INFO ] MTD: </dev/input/event1> range position Y is 0 - 0
      [INFO ] MTD: </dev/input/event3> range touch major is 0 - 0
      [INFO ] MTD: </dev/input/event5> range touch minor is 0 - 0
      [INFO ] MTD: </dev/input/event1> range touch major is 0 - 0
      [INFO ] MTD: </dev/input/event3> range touch minor is 0 - 0
      [INFO ] MTD: </dev/input/event2> range position X is 0 - 0
      [INFO ] MTD: </dev/input/event5> range pressure is 0 - 255
      [INFO ] MTD: </dev/input/event1> range touch minor is 0 - 0
      [INFO ] MTD: </dev/input/event4> range position X is 0 - 16384
      [INFO ] HIDMotionEvent: using <ADS7846 Touchscreen^@>
      [INFO ] MTD: </dev/input/event0> range position X is 1 - 16384
      [INFO ] HIDMotionEvent: using <Genius Optical Mouse^@>
      [INFO ] MTD: </dev/input/event3> range pressure is 0 - 255
      [INFO ] HIDMotionEvent: using <Lite-On Technology Corp. USB Keyboard^@>
      [INFO ] HIDMotionEvent: using <Lite-On Technology Corp. USB Keyboard^@>
      [INFO ] MTD: </dev/input/event2> range position Y is 0 - 0
      [INFO ] MTD: </dev/input/event5> axes invertion: X is 0, Y is 0
      [INFO ] HIDMotionEvent: using <ILITEK Multi-Touch-V3000^@>
      [INFO ] MTD: </dev/input/event1> range pressure is 0 - 255
      [INFO ] HIDMotionEvent: using <ILITEK Multi-Touch-V3000^@>
      [INFO ] HIDMotionEvent: <ADS7846 Touchscreen^@> range ABS X position is 0 - 4095
      [INFO ] MTD: </dev/input/event4> range position Y is 0 - 9600
      [INFO ] MTD: </dev/input/event3> axes invertion: X is 0, Y is 0
      [INFO ] MTD: </dev/input/event0> range position Y is 1 - 9600
      [INFO ] MTD: </dev/input/event2> range touch major is 0 - 0
      [INFO ] MTD: </dev/input/event5> rotation set to 0
      [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS X position is 0 - 16384
      [INFO ] MTD: </dev/input/event1> axes invertion: X is 0, Y is 0
      [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS X position is 1 - 16384
      [INFO ] HIDMotionEvent: <ADS7846 Touchscreen^@> range ABS Y position is 0 - 4095
      [INFO ] MTD: </dev/input/event4> range touch major is 0 - 0
      [INFO ] MTD: </dev/input/event3> rotation set to 0
      [INFO ] MTD: </dev/input/event0> range touch major is 0 - 0
      [INFO ] MTD: </dev/input/event2> range touch minor is 0 - 0
      [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS Y position is 0 - 9600
      [INFO ] MTD: </dev/input/event1> rotation set to 0
      [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range ABS Y position is 1 - 9600
      [INFO ] MTD: </dev/input/event4> range touch minor is 0 - 0
      [INFO ] HIDMotionEvent: <ADS7846 Touchscreen^@> range ABS pressure is 0 - 65535
      [INFO ] MTD: </dev/input/event0> range touch minor is 0 - 0
      [INFO ] MTD: </dev/input/event2> range pressure is 0 - 255
      [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range position X is 0 - 16384
      [INFO ] MTD: </dev/input/event4> range pressure is 0 - 255
      [INFO ] MTD: </dev/input/event0> range pressure is 0 - 255
      [INFO ] MTD: </dev/input/event2> axes invertion: X is 0, Y is 0
      [INFO ] HIDMotionEvent: <ILITEK Multi-Touch-V3000^@> range position Y is 0 - 9600
      [INFO ] MTD: </dev/input/event4> axes invertion: X is 0, Y is 0
      [INFO ] MTD: </dev/input/event0> axes invertion: X is 0, Y is 0
      [INFO ] MTD: </dev/input/event0> rotation set to 0
      [INFO ] MTD: </dev/input/event4> rotation set to 0
      [INFO ] MTD: </dev/input/event2> rotation set to 0
      [WARNING] stderr: Exception: FBO Initialization failed: Incomplete attachment (36054)
      [WARNING] stderr: Exception Exception: Exception('FBO Initialization failed: Incomplete attachment (36054)',) in 'kivy.graphics.fbo.$
      [WARNING] stderr: Exception: FBO Initialization failed: Incomplete attachment (36054)
      [WARNING] stderr: Exception Exception: Exception('FBO Initialization failed: Incomplete attachment (36054)',) in 'kivy.graphics.fbo.$
      [INFO ] Base: Leaving application in progress...


      My .kivy/config.ini file already has the touch defined as mentioned below and hence I am unsure how to add anymore lines to it.:



      [input]
      mouse = mouse
      mtdev_%(name)s = probesysfs,provider=mtdev
      hid_%(name)s = probesysfs,provider=hidinput


      I've already tried the below changes in the config files:



      [input]
      mouse = mouse
      mtdev_%(name)s = probesysfs,provider=mtdev
      hid_%(name)s=probesysfs,provider=hidinput,params=invert_y=0






      python kivy raspberry-pi3 raspbian






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 16 '18 at 3:33









      SpllboundSpllbound

      11




      11
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53331026%2fhow-can-i-invert-kivy-touch-screen%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53331026%2fhow-can-i-invert-kivy-touch-screen%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Bressuire

          Vorschmack

          Quarantine