community icon indicating copy to clipboard operation
community copied to clipboard

Kivy sees touchpad as a touch input device instead of a pointer device on linux

Open BeeFox-sys opened this issue 3 weeks ago • 0 comments

Software Versions

  • Python: 3.13.7
  • OS: Linux 6.17.8-arch1-1 x86_64, plasmashell 6.5.3, both x11 and wayland
  • Kivy: master
  • Kivy installation method: source

Describe the bug Kivy seems to be reading the touchpad of my laptop as a touch screen and not as a pointing device, most noticeable in scrollviews, which behave the same way as a touch screen where dragging on the device will cause the view to scroll, and tapping will initiate a click action.

The issue tracker is a tool to address bugs only (search known bugs: https://git.io/vM1iE). Please use the #support Discord channel at https://chat.kivy.org/ or Stack Overflow for support questions, more information at https://git.io/vM1yQ.

Expected behavior To follow the same behavior as Mac and Windows, on which this doesn't happen.

To Reproduce run python3 kivy/examples/widgets/scrollview.py move mouse around using the laptop touchpad

Code and Logs and screenshots

[INFO   ] [Logger      ] Record log in /home/bee/.kivy/logs/kivy_25-12-10_5.txt
[INFO   ] [Kivy        ] v2.3.1
[INFO   ] [Kivy        ] Installed at "/usr/lib/python3.13/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.13.7 (main, Aug 15 2025, 12:34:02) [GCC 15.2.1 20250813]
[INFO   ] [Python      ] Interpreter at "/usr/bin/python3"
[INFO   ] [Logger      ] Purge log fired. Processing...
[INFO   ] [Logger      ] Purge finished!
[INFO   ] [Factory     ] 195 symbols loaded
[DEBUG  ] [Cache       ] register <kv.resourcefind> with limit=None, timeout=60
[DEBUG  ] [Cache       ] register <kv.lang> with limit=None, timeout=None
[DEBUG  ] [Cache       ] register <kv.image> with limit=None, timeout=60
[DEBUG  ] [Cache       ] register <kv.atlas> with limit=None, timeout=None
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[DEBUG  ] [Cache       ] register <kv.texture> with limit=1000, timeout=60
[DEBUG  ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600
[DEBUG  ] [Cache       ] register <kv.graphics.texture> with limit=None, timeout=None
[DEBUG  ] [Text        ] Provider <pango> ignored by config
[INFO   ] [Text        ] Provider: sdl2(['text_pango'] ignored)
[DEBUG  ] [App         ] Loading kv </home/bee/Code/kivy/./examples/widgets/scrollview.kv>
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'4.6 (Compatibility Profile) Mesa 25.2.7-arch1.1'>
[INFO   ] [GL          ] OpenGL vendor <b'Intel'>
[INFO   ] [GL          ] OpenGL renderer <b'Mesa Intel(R) Iris(R) Xe Graphics (ADL GT2)'>
[INFO   ] [GL          ] OpenGL parsed version: 4, 6
[INFO   ] [GL          ] Shading version <b'4.60'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <32>
[DEBUG  ] [Shader      ] Fragment compiled successfully
[DEBUG  ] [Shader      ] Vertex compiled successfully
[DEBUG  ] [ImageSDL2   ] Load </usr/lib/python3.13/site-packages/kivy/data/glsl/default.png>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[DEBUG  ] [Resource    ] add </usr/share/fonts> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/Adwaita> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/cantarell> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/noto-cjk> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/TTF> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/encodings> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/encodings/large> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/noto> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/liberation> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/gsfonts> in path list
[DEBUG  ] [Resource    ] add </usr/local/share/fonts> in path list
[DEBUG  ] [Resource    ] add </usr/local/share/fonts/s> in path list
[DEBUG  ] [Resource    ] add </home/bee/.fonts> in path list
[DEBUG  ] [Resource    ] add </home/bee/.fonts/a> in path list
[DEBUG  ] [Resource    ] add </home/bee/.fonts/b> in path list
[DEBUG  ] [Resource    ] add </home/bee/.fonts/p> in path list
[DEBUG  ] [Resource    ] add </home/bee/.fonts/h> in path list
[DEBUG  ] [Resource    ] add </home/bee/.fonts/c> in path list
[DEBUG  ] [Resource    ] add </home/bee/.local/share/fonts> in path list
[DEBUG  ] [Resource    ] add </home/bee/.local/share/fonts/JetBrainsMonoNerd> in path list
[DEBUG  ] [Resource    ] add </usr/lib/python3.13/site-packages/kivy/data/fonts> in path list
[DEBUG  ] [Base        ] Create provider from mouse
[DEBUG  ] [Base        ] Create provider from probesysfs
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
[DEBUG  ] [ProbeSysfs  ] using probesysfs!
[DEBUG  ] [ProbeSysfs  ] found device: SYNA32BF:00 06CB:CEB0 Touchpad at /dev/input/event18
[INFO   ] [ProbeSysfs  ] device match: /dev/input/event18
[INFO   ] [MTD         ] Read event from </dev/input/event18>
[DEBUG  ] [ProbeSysfs  ] found device: ELAN2513:00 04F3:2E2D at /dev/input/event8
[INFO   ] [ProbeSysfs  ] device match: /dev/input/event8
[INFO   ] [MTD         ] Read event from </dev/input/event8>
[INFO   ] [Base        ] Start application main loop
[INFO   ] [MTD         ] </dev/input/event18> range position X is 0 - 1452
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [MTD         ] </dev/input/event18> range position Y is 0 - 912
[INFO   ] [MTD         ] </dev/input/event8> range position X is 0 - 3408
[INFO   ] [MTD         ] </dev/input/event18> range touch major is 0 - 0
[INFO   ] [MTD         ] </dev/input/event8> range position Y is 0 - 2256
[INFO   ] [MTD         ] </dev/input/event18> range touch minor is 0 - 0
[DEBUG  ] [Atlas       ] Load </usr/lib/python3.13/site-packages/kivy/data/images/defaulttheme.atlas>
[INFO   ] [MTD         ] </dev/input/event8> range touch major is 0 - 255
[INFO   ] [MTD         ] </dev/input/event18> range pressure is 0 - 255
[INFO   ] [MTD         ] </dev/input/event8> range touch minor is 0 - 255
[DEBUG  ] [Atlas       ] Need to load 1 images
[INFO   ] [MTD         ] </dev/input/event18> axes inversion: X is 0, Y is 0
[INFO   ] [MTD         ] </dev/input/event8> range pressure is 0 - 255
[DEBUG  ] [Atlas       ] Load </usr/lib/python3.13/site-packages/kivy/data/images/defaulttheme-0.png>
[INFO   ] [MTD         ] </dev/input/event18> rotation set to 0
[INFO   ] [MTD         ] </dev/input/event8> axes inversion: X is 0, Y is 0
[DEBUG  ] [ImageSDL2   ] Load </usr/lib/python3.13/site-packages/kivy/data/images/defaulttheme-0.png>
[INFO   ] [MTD         ] </dev/input/event8> rotation set to 0

Additional context While it does complain about running under xwayland, that is not the cause of the issue and is replicated under an X11 environment.

BeeFox-sys avatar Dec 10 '25 03:12 BeeFox-sys