Linux:: How-To make your Logitech mouse work more precise

Linux:: How-To make your Logitech mouse work more precise

  • gamzzy 
  • Legendarni građanin
  • Pridružio: 24 Apr 2003
  • Poruke: 10725
  • Gde živiš: Novi Sad

Author: F_for_Fragging
Published: 2004-09-01
Read 9118 times
Size 5.05 KB

Author: F for Fragging, werewolf, GlaDiaC
Language: English
Date: 2004-12-13
Version: 1.2

This howto is published under the GNU Free Documentation License.

Copyright (c) 2004
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license can be found in the section entitled "GNU
Free Documentation License".

Warning: This HOWTO comes with no explicit or implicit warranty whatsoever. Use at you own risk!

1) Preface
2) Download and install the program
3) Change the resolution
4) Set the resolution on hotplug
5) How to add other logitech mice

1) Preface

This How-To is inspired on a post on the Gentoo forums .

Some Logitech mice, like the Dual Optical, MX300, MX500 and MX510 have a switchable optical sensor which default to 400 counts per inch (cpi) in Linux. Brad Hars wrote a program which allows you to switch to 800 cpi, which will make your mouse more accurate and responsible. You will certainly notice a difference.

Smart scroll (also referred to as Cruise Control in some of the documentation) uses a pair of small additional buttons on the mouse, one which just in front of the scroll wheel, and one that is just behind the scroll wheel. If you hold one of these buttons down, you get the equivalent of a continuous scroll - holding the forward "smart scroll" button is the same as scrolling upwards with the scroll wheel, and holding the aft "smart scroll" button is the same as scrolling downwards with the scroll wheel. This is enabled by default, but gamers might want to disable to map those buttons to a particular function.

2) Download and install the program

The latest version of the software can be found at the logitech applet project page on Grab the latest (maybe beta) version there and then extract it. There are some text files with documentation in the directory where you extracted it, read them first. They contain a list of which mice are support by the program. Open a console and change to the directory where you extracted it, and then do the following to install the program:

./configure --prefix=/usr
make install

If everything is all right the program logitech_applet should now be located in the /usr/bin/ directory.

It is possible that the configure fails with an automake error. If this appears, run 'autoreconf'.

3) Change the resolution

Open a console and type:

 su -c "logitech_applet --get-res"

This will display the resolution. If it is 400, you can change it to 800 with:

 su -c "logitech_applet -s800"

4) Set the resolution on hotplug

To set the resolution on startup resp. on hotplug use we will use hotplug Smile

Download Logitech hotplug. The archive includes two files logitech_mouse.usermap and logitech_mouse. logitech_mouse.usermap is the file which detects the plugged mouse and executes logitech_mouse. The logitech_mouse script gets the mouse id and sets the resolution and disables cruise control.

Simply copy the two files in /etc/hotplug/usb and enjoy it.

5) How to add other logitech mice, not yet in the list:

a) Finding the product ID:
cat /proc/bus/usb/devices | grep Vendor=046d

It should result in a line like this:
P: Vendor=046d ProdID=c01b Rev=18.00

b) Open logitech_applet.c in an editor, find the structure device_table and add the new mouse:
{ VENDOR_LOGITECH, 0xc01b, "M-BP86", "MX310 Optical Mouse", HAS_RES },
{ VENDOR_LOGITECH, 0xc01d, "M-BS81A", "MX510 Optical Mouse", HAS_RES | HAS_SS | HAS_SSR },

Just copy an existing line and change the ProductID (2nd field), the mouse name (3rd field), Info and supported features (the later ones are described behind their definitions above the structure).
The mouse name can be found at the bottom lable of the mouse behind the Identifier M/N.

c) Save logitech_applet.c and compile it as described in the HOWTO or the INSTALL file.

preuzeto sa

Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
Ko je trenutno na forumu

Ukupno su 759 korisnika na forumu :: 53 registrovanih, 4 sakrivenih i 702 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: A.R.Chafee.Jr., amaterSRB, aramis s, Areal84, Bane san, celik, comi991, croato, darios, djordje92sm, Dukelander, ekser222, Fog of War, FOX, Gama, goran.vvv, HrcAk47, hyla, ILGromovnik, Jovan Nenad, jumba, Khaless, Komentator, kovinacc, krlebgd77, KUZMAR, Leonardo, majorgaspar, MarKhan, Markoni29, Misirac, mnn2, moldway, mushroom, Neutral-M, ozzy, pein, Rakenica, raskoljnikov, rovac, rus1974, S2M, sakota79, shaja1, shone34, stemark, suton, virked, vlvl, voja64, wexy, willie, yrraf