Kodi Community Forum
Idle time not reset on touchscreen devices - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Idle time not reset on touchscreen devices (/showthread.php?tid=343770)



Idle time not reset on touchscreen devices - meinnamehier - 2019-05-10

Hi all,
I hope I am posting in the right place.

Background:
I want to use the idle time in my skin as well as a (Python) Add-on but need it to be reset to zero so I can detect if the user is active (not idle).
While trying to control the transparency of controls when playing media, I stumbled upon a problem with touchscreen devices, see also this link: https://forum.kodi.tv/showthread.php?tid=338930&pid=2804635#pid2804635

Problem:
Apparently, the idle time is not reset to 0, when something is „clicked“ on with a touchscreen device or the screen is touched at all.

Devices used:
I tested it with an Android smartphone and this touchscreen attached to a Raspberry Pi 3B+: https://www.elecrow.com/wiki/index.php?title=5_inch_HDMI_800_x_480_Capacitive_Touch_LCD_Display_for_Raspberry_Pi/_PC/
_SONY_PS4
Also, I tested it with a Mac running Kodi 18.02. and by VNC'ing onto the Raspi.

Kodi Version:
18.0.2

Method of testing:
I wrote a simple Add-on, that displays „globalidletime“ in a notification. On a Mac running Kodi and when when VNC’ing onto the  Raspberry Pi, „globalidletime“ is reset to zero, when moving the mouse and clicking.
On the Android Phone and the Rasp/Touchscreen combo, the idle time steadily increased, no matter what I did.

Questions:
Is this a bug? Is this a feature?
How can I circumvent it in the most easy way?
I want to use the idle time in my skin as well as a (Python) Add-on but need it to be reset to zero so I can detect if the user is active (not idle).

Thanks for your help!