Logitech MX610 support?

I've been doing a bit of work on a Linux HID project, for a Point Of Sale scanner. I took a little bit of time out to look at the Logitech MX610 mouse (e.g.,CRID=2135,CONTENTID=10917) again. Its looking promising.

The mouse is a bit strange - it has two logical "interfaces" for the USB receiver/transmitter. They are on the same plug, but they are treated as separate devices by the Linux USB subsystem. The first USB interface is the normal mouse device - it has the X/Y motion, the normal buttons and the scrollwheel. The five buttons down the left edge (Vol +, Vol -, Mute, Email and IM) are on the second interface, which probably has the additional features like battery status as well as the indicator LEDs for Email and IM.

I can now turn the Email lamp on solid, or flash on/off, or pulse (slow on/off/on/off transitions), or off. If you want to play with the test code, see:
(This version can only do the Email lamp, but extending it to do the IM lamp shouldn't be too hard once you have the right command sequences)

At this stage I'm thinking that the lamp control should be part of some notification daemon - perhaps KDE specific, perhaps more general. The special button handling should probably be part of khotkeys or its replacement. If anyone has more ideas on KDE integration, I'm happy to take suggestions!


I just want to congratulate you on this hack and to let you know that I have managed to find a primitive way to get the light to flash as a way of notifying the user of new mail. Here's how you do it:

1. Download and compile

2. Change permissions (potential security hole here?)
In /etc/udev/rules.d/50-udev.rules, add this line:
KERNEL=="hiddev*", NAME="%k", GROUP="root", MODE="666

3. Write a script for KMail to execute. A sample one looks like this:
# Turn on the light. -e is on, -f is flash, and -p is pulse
~/.mx610hack/mx610hack -p /dev/hiddev0
# Set how long you want the notification to last
sleep 1m
# Turn off the light after the specified amount of time
~/.mx610hack/mx610hack -o /dev/hiddev0

4. In KMail, configure the notifications such that it will execute the script.

I think that in future versions of KDE, we should integrate this lovely little number into the window manager such that if the window for KMail needs attention, then the email light flashes. Same concept goes for Kopete. Of course, there is that little problem of device permissions earlier...

Also, seeing that you are a developer, I would highly appreciate it if the shortcuts thing is reworked so that it is possible to press one of the special keys (volume up, down, etc.) and have KDE say "OK... I'll look for this key." (like GNOME).

If you have any questions, please contact me at dasunst3r _at_ gmail _dot_ com

By dasunst3r at Thu, 03/16/2006 - 05:42

i love you man.

By ravithepimp at Sun, 04/02/2006 - 22:42

magnificent !! good job !

In the future will there be support for chat led?

By yoyoek at Fri, 04/07/2006 - 11:41