What is this good for?
This will double your mouse resolution from 400 to 800 cpi to make it more precise. It's very usefull if you spend some time by playing games, working on graphics or you just love moving your mouse around and around...
Requirements:
* USB bus
* Logitech Mouse
* Alexios Chouchoulas LMCtl
(Download the Debian package attached here to get the support for MX310 and MX510 mice)
(Original Debian package available)
Notes:
* Mouse used in this HOWTO is (or maybe was) the basic USB wheel mouse in the Logitech product line (M-BJ58 Wheel mouse) so I suppose MX series should be supported and working without a glitch.
* There's also Logitech Mouse Applet from Brad Hards (more devices supported) but I prefer LMCtl over it.
Download and install lmctl_0.3.2_i386.deb. If you use the one attached here you have toit first. After that run lmctl with --help parameter to get the list of available parameters, especially -4, -8 and --sms ones.Code:gzip -d lmctl_0.3.2_i386.deb.gz
* Basic operations *
Scan USB bus for supported Logitech mouse:
Get the status of your mouse:Code:[~] > sudo lmctl -s 002.001: 0000:0000 Not a Logitech device 001.002: 046d:c00e Wheel Mouse Optical (M-BJ58) Caps: RES 001.001: 0000:0000 Not a Logitech device
As you can see your mouse is probably running with 400 cpi. Something you want to change.Code:[~] > sudo lmctl -i 001.002: 046d:c00e Wheel Mouse Optical (M-BJ58) Caps: RES Resolution (RES): 400 cpi
I want to ask something first. What does CAPS and RES mean? I also have SMS there.
CAPS are special capabilities available on your mouse. RES means resolution and SMS means that your mouse is SmartControl ready.
Setting up 800 cpi and SmartControl/Cruise control...
Note: Setting up SmartControl on this mouse is useless, it's used just for demonstration purposes.
Now enjoy the smoothness. Great isn't it?Code:[~] > sudo lmctl -8 --sms 001.002: 046d:c00e Wheel Mouse Optical (M-BJ58) Caps: RES Resolution set to 800 cpi [~] > sudo lmctl -i 001.002: 046d:c00e Wheel Mouse Optical (M-BJ58) Caps: RES Resolution (RES): 800 cpi
I restarted my computer and my mouse is crawling again. How do I start it automagically on boot?
There're at least three choices to pick up from.
* a script put in /etc/rc.boot which configures the mouse every restart (obsolete)
* via hotplug (won't be described here)
* via udev which is easier to set up than hotplug (recommended)
* Setting the mouse up everytime you plug/unplug the mouse using a udev rule *
Check another file attached here - logitech-mice.rules.txt. This udev rule contains support for the following mice:
* Wheel Mouse Optical
* MouseMan Traveler
* MouseMan Dual Optical
* MX300 Optical Mouse
* MX310 Optical Mouse
* MX500 Optical Mouse
* MX510 Performance Optical Mouse
* iFeel Mouse (silver)
Download, rename it to logitech-mice.rules...... and put inCode:[~/downloads] > mv -v logitech-mice.rules.txt logitech-mice.rules `logitech-mice.rules.txt' -> `logitech-mice.rules'
/etc/udev/rules.d/
List the directory to see we need to tweak permissions...Code:[~/downloads] > sudo mv -v logitech-mice.rules /etc/udev/rules.d/ `logitech-mice.rules' -> `/etc/udev/rules.d/logitech-mice.rules'
Code:[/etc/udev/rules.d] > ls -l -rw-r--r-- 1 pef pef 716 2004-12-01 00:20 logitech-mice.rules lrwxrwxrwx 1 root root 13 2004-10-05 14:59 udev.rules -> ../udev.rules lrwxr-xr-x 1 root root 12 2004-11-29 13:51 z_hal-plugdev.rules -> ../hal.rulesCode:[/etc/udev/rules.d] > sudo chown root.root logitech-mice.rulesThis should be sufficient. You may try to replug your mouse now to check if it works.Code:[/etc/udev/rules.d] > ls -l -rw-r--r-- 1 root root 716 2004-12-01 00:20 logitech-mice.rules lrwxrwxrwx 1 root root 13 2004-10-05 14:59 udev.rules -> ../udev.rules lrwxr-xr-x 1 root root 12 2004-11-29 13:51 z_hal-plugdev.rules -> ../hal.rules
* Executing on boot using a script
This is the obsolete approach. If you replug your mouse the settings will be lost. Use udev way instead.
Create a directory /etc/rc.boot ...
Create and edit a file inside this newly created directory called ie. logitech-mouse...Code:sudo mkdir /etc/rc.boot
... and put this inside ...Code:sudo nano -w /etc/rc.boot/logitech-mouse
... finally give your script appropriate permissions so it can be executed#!/bin/sh
echo "Tunning Logitech mouse..."
lmctl -8 --sms
Note: There's no need to use sudo because every script in /etc/rc.boot directory is run under root privileges.Code:sudo chmod u+x /etc/rc.boot/logitech-mouse
I want my old settings back! How?
Delete the /etc/udev/rules.d/logitech-mice.rules or /etc/rc.boot/logitech-mouse file (depends on the configuration you selected - udev or a script) and run...
Code:[~] > sudo lmctl -4 --no-sms




Adv Reply

Bookmarks