I have RPI3B + with Raspian Stretch on which I run the QT application. When I create my service to launch the application after starting the rpi i have problems.. The application starts and then the desktop is loaded and pushes it into the desktop background. When I am moving the mouse on the screen in the background my application starts to break through. The application basically works but it works with a very long delay and keeps jamming. When I run the application normally through the console everything works fine and I do not have any lags.
How else can I run the application? I suspect that the application is started too fast and hence the problem .. :|
The application is written in QT 5.12.3, it is a car counter, it uses LCD 12.3 and a CAN-BUS converter. As I wrote, the application starts fairly quickly, but it gets stuck when it is started using the service (init/systemd service). the service starts the file
ip link set can0 type can bitrate 100000 ifconfig can0 up / home / pi / cluster -platform linuxfb
After running this shell file the counter is started. When I run this sh script using ssh instead of the service the counter works very quickly as it should