python - touchscreen raspberry pi phantom touch (reset fixes) - Stack Overflow

I am working on a kivy project to create some control panel for a ship (toggle lights etc). One of the

I am working on a kivy project to create some control panel for a ship (toggle lights etc). One of the screens I am also working on is a navigation using the kivy_garden.mapview. This is the screen where I have an issue with.

The rest of the raspberry pi, screens, etc all work flawlessly with the touchscreen, but to zoom in/out on the navigation screen it just spaces out and appears to have a phone touch somewhere; Deduced by that a single touchpoint will just zoom in/out instead of required two. Keep in mind, all the other buttons (all single touch actions) work flawlessly. unplugging, and replugging the usb cable fixes the issue.

The map is initialized like so:

self.map = MapView(
  map_source=mapsource,
  zoom=14, 
  lat=52.51677023841208, 
  lon=4.788266954784756,
  pause_on_action=False
)

The touchscreen is wired up hdmi0 on the pi. usb and has its own 5v power connected (did this later and didn't make a difference).

There are two solutions I am thinking on

  1. add code to my application to just "reset the usb connection"
  2. debug even more and figure out why this is precisely happening.

Any help is greatly appreciated as I am lost on this issue.

I am working on a kivy project to create some control panel for a ship (toggle lights etc). One of the screens I am also working on is a navigation using the kivy_garden.mapview. This is the screen where I have an issue with.

The rest of the raspberry pi, screens, etc all work flawlessly with the touchscreen, but to zoom in/out on the navigation screen it just spaces out and appears to have a phone touch somewhere; Deduced by that a single touchpoint will just zoom in/out instead of required two. Keep in mind, all the other buttons (all single touch actions) work flawlessly. unplugging, and replugging the usb cable fixes the issue.

The map is initialized like so:

self.map = MapView(
  map_source=mapsource,
  zoom=14, 
  lat=52.51677023841208, 
  lon=4.788266954784756,
  pause_on_action=False
)

The touchscreen is wired up hdmi0 on the pi. usb and has its own 5v power connected (did this later and didn't make a difference).

There are two solutions I am thinking on

  1. add code to my application to just "reset the usb connection"
  2. debug even more and figure out why this is precisely happening.

Any help is greatly appreciated as I am lost on this issue.

Share Improve this question asked Nov 18, 2024 at 10:10 SHolzhauerSHolzhauer 1442 silver badges11 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

In the end the solution was to update the .kivy/config.ini file

[input]
mouse = none
touch = hidinput

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745627394a4636892.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信