The possibility of starting qt program before udev starts
-
The operating system is Linux, and the display framework is Weston.
To speed up Qt program startup, put Qt program startup script in the first place, and start other scripts such as udev after Qt program startup.
The following problems occurred:
The Qt virtual keyboard does not work properly.When the keyboard inputs, an error log "input method is not set" is printed.
Try to modify the udev startup script and start before Qt starts:
/sbin/udevd -d || { echo "FAIL"; exit 1; } ; udevadm trigger --action=add --name-match="/dev/input/event0"
The problem is solved. It is preliminarily judged that the virtual keyboard initialization depends on udev and/dev/input/event0.
Now, the question is, is there any way to make the Qt virtual keyboard work normally without starting the udev script in advance?