奇异果之触-Raspbian Stretch 26.07

时间:2018-07-26 06:41:27

标签: kivy raspbian

我自己尝试了很长时间之后,我认为现在是寻求帮助的合适时机。 我的设置:

  • raspberry pi 3 B +

  • 正式的7英寸覆盆子触摸屏

  • Kivy已安装

  • Raspbian Stretch 26-07图片

在最新的树莓拉伸图像上使用kivy时,我无法激活触摸屏。

通常它与干净安装的raspbian拉伸图像,干净安装的kivy一起使用,并且在运行kivy演示后,在/ home / pi中有一个名为“ .kivy”的文件夹。

在此文件夹中,需要使用以下命令配置触摸输入:

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

但是我找不到此文件夹,原因是我无法将触摸屏与kivy一起使用。

我遵循了步骤1、2和3: kivy documentation

当我在哪里跑步时:

whereis .kivy:

/usr/bin/. /usr/sbin/. /usr/lib/. /bin/. /sbin/. /etc/.fstab /etc/. /etc/.java /lib/. /usr/games/. /usr/local/bin/. /usr/local/sbin/. /usr/local/etc/. /usr/local/lib/. /usr/local/games/. /usr/include/. /usr/local/. /usr/share/. /opt/sonic-pi/bin/. /opt/vc/bin/. /usr/man/man3/. /usr/man/man1/. /usr/share/man/ko/. /usr/share/man/sv/. /usr/share/man/man2/. /usr/share/man/sl/. /usr/share/man/it/. /usr/share/man/man6/. /usr/share/man/man7/. /usr/share/man/tr/. /usr/share/man/pl/. /usr/share/man/hu/. /usr/share/man/cs/. /usr/share/man/pt_BR/. /usr/share/man/fr.UTF-8/. /usr/share/man/nl/. /usr/share/man/pt/. /usr/share/man/man5/. /usr/share/man/da/. /usr/share/man/man8/. /usr/share/man/de/. /usr/share/man/id/. /usr/share/man/gl/. /usr/share/man/vi/. /usr/share/man/ja/. /usr/share/man/es/. /usr/share/man/man3/. /usr/share/man/fr/. /usr/share/man/zh_CN/. /usr/share/man/man1/. /usr/share/man/fi/. /usr/share/man/fr.ISO8859-1/. /usr/share/man/ru/. /usr/share/man/zh_TW/. /usr/share/man/man4/. /usr/share/info/. /usr/src/sense-hat/.

您对我有什么想法,我该如何解决?

1 个答案:

答案 0 :(得分:0)

经过几天的搜索,我终于找到了该文件夹: /root/.kivy

以后更改文件夹的位置: 如果您使用Putty(ssh)从另一台计算机上启动kivy脚本,则在启动脚本后可以在第一行看到此文件夹的路径。

  

[INFO] [记录器]在/root/.kivy/logs/kivy_18-07-26_59.txt中记录日志

最好的问候

丹津