I have Logitech mx510 mouse which uses 400cpi resolution by default. I want to set it to 800cpi automatically. How can i set a udev rule that runs lomoco -8 when I plug in the mouse?

I managed to write a working udev rule.

# udev.rules file for Logitech mouse control using lomoco
#

ACTION != "add", GOTO="lomoco_end"
SUBSYSTEM == "usb", ENV{DEVTYPE}=="usb_device", GOTO="lomoco_start"
SUBSYSTEM != "usb_device", GOTO="lomoco_end"

LABEL="lomoco_start"

# "M-BS81A",  "MX510 Optical Mouse"
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c01d", RUN+="/usr/bin/lomoco -8"

LABEL="lomoco_end"

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.