I am running my qml application on a raspberry pi 3. For input I am using a touchscreen.
Normally the touchscreen is working fine. But when I reboot the touchscreen, the qml application gives me the following error message:
evdevtouch: Could not read from input device (No such device)
After this message the qml application does not receive any more events from the touchscreen.
I know that the touchscreen is registered to the system as /dev/input/eventX. When turning off the touchscreen I can see that /dev/input/eventX disappears. And after turning on the touchscreen again I can see /dev/input/eventX again.
With
QT_LOGGING_RULES
I see that the qml application is discovering this device and connecting to it after application start.
But once the device is gone, the application seems not to reconnect again.
Any ideas how I can reconnect to the device again? Or maybe oter ideas?
Kind regards