I want to make xinput settings for my usb mouse persist after it has been turned off and on again. How can I monitor this event?
This does not work, as I never unplug the usb receiver: How to make xinput settings persist after devices are unplugged, replugged, and after shutdown, restart, etc?
As far as I've understood, udev can be used for HW detection applications, but it doesn't seem to be able to detect state changes in the device such as a Logitech Unifying Receiver.
I guess the key to get this solved is to successfully track events in the Receiver and write a script to execute the xinput command. Would anyone know how I can detect this event? Solaar is off course able to detect this, but that doesn't mean it is simple for a non-expert Linux user.