jbensmann / mouseless

A replacement for the mouse in Linux
MIT License
167 stars 16 forks source link

Mouseless needs restart to work normally when I turn on my computer. #51

Open satayyeb opened 4 months ago

satayyeb commented 4 months ago

I should execute systemctl restart mouseless.service command every time I turn on my computer. Have you ever encountered this problem?

jbensmann commented 4 months ago

Yes I also have this problem when using an external keyboard, but not configure the devices in the mouseless config. The problem is that mouseless starts before the device for the external keyboard is there. I have not found a better way yet than waiting a second before starting mouseless, here is my service file:

[Unit]
Description=mouseless service
After=dev-input.target
Wants=dev-input.target

[Service]
ExecStartPre=/bin/sleep 1
ExecStart=/usr/local/bin/mouseless

[Install]
WantedBy=default.target

I will also add this to the README.