Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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