Ask Your Question

Revision history [back]

You’ve almost got it! However, the error states that your X window server isn’t up and running yet. You need to wait for the environment to be ready to receive xinput commands. The display-manager.service is required, so start your work after it by adding the following requirements to your [Unit] section:

Requires=display-manager.service
After=display-manager.service

Be sure to reaload your daemons after modifying your service file (systemctl daemon-reload) before you try to start your service again.