Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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"


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

share|improve this answer

Your Answer


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.