Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old November 14th, 2004   #1
p!=f
Dipped in Ubuntu
 
p!=f's Avatar
 
Join Date: Oct 2004
Location: Prague, Czechia
Beans: 437
Kubuntu 7.10 Gutsy Gibbon
Send a message via ICQ to p!=f
Post HOWTO: USB Logitech mouse and 800 cpi with udev

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 to
Code:
gzip -d  lmctl_0.3.2_i386.deb.gz
it first. After that run lmctl with --help parameter to get the list of available parameters, especially -4, -8 and --sms ones.

* Basic operations *

Scan USB bus for supported Logitech 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
Get the status of your mouse:
Code:
         [~] > sudo lmctl -i
         001.002: 046d:c00e Wheel Mouse Optical (M-BJ58) Caps: RES
         		Resolution (RES): 400 cpi
As you can see your mouse is probably running with 400 cpi. Something you want to change.

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.
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
Now enjoy the smoothness. Great isn't it?

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...
Code:
 [~/downloads] > mv -v logitech-mice.rules.txt logitech-mice.rules
`logitech-mice.rules.txt' -> `logitech-mice.rules'
... and put in
/etc/udev/rules.d/
Code:
[~/downloads] > sudo mv -v logitech-mice.rules /etc/udev/rules.d/
`logitech-mice.rules' -> `/etc/udev/rules.d/logitech-mice.rules'
List the directory to see we need to tweak permissions...
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.rules
Code:
[/etc/udev/rules.d] > sudo chown root.root logitech-mice.rules
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
This should be sufficient. You may try to replug your mouse now to check if it works.

* 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 ...
Code:
      sudo mkdir /etc/rc.boot
Create and edit a file inside this newly created directory called ie. logitech-mouse...
Code:
      sudo nano -w /etc/rc.boot/logitech-mouse
... and put this inside ...
Quote:
#!/bin/sh
echo "Tunning Logitech mouse..."
lmctl -8 --sms
... finally give your script appropriate permissions so it can be executed
Code:
      sudo chmod u+x /etc/rc.boot/logitech-mouse
Note: There's no need to use sudo because every script in /etc/rc.boot directory is run under root privileges.

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
Attached Files
File Type: gz lmctl_0.3.2_i386.deb.gz (12.1 KB, 376 views)
File Type: txt logitech-mice.rules.txt (716 Bytes, 822 views)
__________________
"Linux is like a wigwam. No Windows, no Gates and Apache inside!" - Unknown

RFC 3092 - Etymology of "Foo"

Last edited by p!=f; November 30th, 2004 at 08:15 PM..
p!=f is offline   Reply With Quote
Old November 15th, 2004   #2
zenwhen
Quad Shot of Ubuntu
 
zenwhen's Avatar
 
Join Date: Nov 2004
My beans are hidden!
Ubuntu 7.10 Gutsy Gibbon
Re: [HOWTO]: USB Logitech mouse and 800 cpi

Along with the thumb button guide, this make my Logitech MX500 function just as it would with the Logitech drivers in Windows.

I'm getting everything I paid for when I bought the mouse. Imagine that.
zenwhen is offline   Reply With Quote
Old November 22nd, 2004   #3
unikum
5 Cups of Ubuntu
 
Join Date: Nov 2004
Location: Sweden
Beans: 20
Ubuntu Breezy 5.10
Send a message via ICQ to unikum
Re: [HOWTO]: USB Logitech mouse and 800 cpi

This doesnt work for me. After reboot its back to 400 cpi.
I have doublechecked everything.
__________________
Linux user #373006
ubuntu 6.10
unikum is offline   Reply With Quote
Old November 23rd, 2004   #4
p!=f
Dipped in Ubuntu
 
p!=f's Avatar
 
Join Date: Oct 2004
Location: Prague, Czechia
Beans: 437
Kubuntu 7.10 Gutsy Gibbon
Send a message via ICQ to p!=f
Re: [HOWTO]: USB Logitech mouse and 800 cpi

Quote:
Originally Posted by unikum
This doesnt work for me. After reboot its back to 400 cpi.
I have doublechecked everything.
I just love this kind of post. "My printer doesn't print". More informations next time.

What's your mouse?
Can you get 800 cpi from your mouse just using CLI?
Did you really doublecheck everything? Is your startup script executable?
__________________
"Linux is like a wigwam. No Windows, no Gates and Apache inside!" - Unknown

RFC 3092 - Etymology of "Foo"
p!=f is offline   Reply With Quote
Old November 23rd, 2004   #5
unikum
5 Cups of Ubuntu
 
Join Date: Nov 2004
Location: Sweden
Beans: 20
Ubuntu Breezy 5.10
Send a message via ICQ to unikum
Re: [HOWTO]: USB Logitech mouse and 800 cpi

Logitech mouseman optical dual.

I can get 800 with sudo lmctl -8 --sms

What do you mean with CLI?

I did type sudo chmod u+x /etc/rc.boot/logitech-mouse but when i check its doesnt seems to have been executable.... I dont know... -rwxr--r--


Text in logitech-mouse:
Code:
      [~] > cat /etc/rc.boot/logitech-mouse
      #!/bin/sh
      echo "Tunning Logitech mouse..."
      lmctl -8 --sms
__________________
Linux user #373006
ubuntu 6.10
unikum is offline   Reply With Quote
Old November 23rd, 2004   #6
p!=f
Dipped in Ubuntu
 
p!=f's Avatar
 
Join Date: Oct 2004
Location: Prague, Czechia
Beans: 437
Kubuntu 7.10 Gutsy Gibbon
Send a message via ICQ to p!=f
Re: [HOWTO]: USB Logitech mouse and 800 cpi

CLI stands for Command Line.
-rwxr--r-- = as you can see it has the executable permission given to a user.

Can you try to run the script manually?
Code:
sudo /etc/rc.boot/logitech-mouse
If it works it should be working at the boot. Wierd...

Could you also list /etc/rc.boot directory and post it here?
Code:
ls -l /etc/rc.boot
And finally, post the output of
Code:
sudo lmctl -i
sudo lmctl -s
__________________
"Linux is like a wigwam. No Windows, no Gates and Apache inside!" - Unknown

RFC 3092 - Etymology of "Foo"
p!=f is offline   Reply With Quote
Old November 26th, 2004   #7
wallijonn
Quad Shot of Ubuntu
 
wallijonn's Avatar
 
Join Date: Oct 2004
Location: Phoenix
Beans: 436
Re: [HOWTO]: USB Logitech mouse and 800 cpi

I downloaded the lmctl.deb package.

root terminal:
Code:
dpkg -i lmctl_0.3.2_i386.deb
lmctl --help
lsusb
lmctl -s
lmctl -i
It would seem that my Logitech MX510 is not supported:
Code:
# lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 046d:c01d Logitech, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
# lmctl -s
004.001: 0000:0000 Not a Logitech device
003.001: 0000:0000 Not a Logitech device
002.002: 046d:c01d Unknown or Unsupported Logitech device
002.001: 0000:0000 Not a Logitech device
001.001: 0000:0000 Not a Logitech device
#
wallijonn is offline   Reply With Quote
Old November 26th, 2004   #8
p!=f
Dipped in Ubuntu
 
p!=f's Avatar
 
Join Date: Oct 2004
Location: Prague, Czechia
Beans: 437
Kubuntu 7.10 Gutsy Gibbon
Send a message via ICQ to p!=f
Re: [HOWTO]: USB Logitech mouse and 800 cpi

As a description says
Quote:
lmctl can configure vendor-specific options on Logitech USB mice (or dual-personality mice plugged into the USB port). A number of recent devices are supported. The program is mostly useful in setting the resolution to 800 cpi on mice that boot at 400 cpi (such as the author’s MX-500), and disabling SmartScroll or Cruise Control for those who would rather use the two extra buttons as ordinary mouse buttons.
Strange your mouse is not recognized. Anyway, you may try this:
Code:
sudo lmctl -p c01d -8 --sms
If it doesn't work, try to use Logitech Mouse Applet (see link in the first post).
__________________
"Linux is like a wigwam. No Windows, no Gates and Apache inside!" - Unknown

RFC 3092 - Etymology of "Foo"
p!=f is offline   Reply With Quote
Old November 26th, 2004   #9
wallijonn
Quad Shot of Ubuntu
 
wallijonn's Avatar
 
Join Date: Oct 2004
Location: Phoenix
Beans: 436
Re: [HOWTO]: USB Logitech mouse and 800 cpi

that would be
Code:
sudo lmctl -p 046d:c01d -8 --sms
It did not return an error message. But it still lists the MX510 as an unknown device.

The Logitech Applet readme file states that the MX510 & MX500 are both M-BP81A devices.
wallijonn is offline   Reply With Quote
Old November 26th, 2004   #10
p!=f
Dipped in Ubuntu
 
p!=f's Avatar
 
Join Date: Oct 2004
Location: Prague, Czechia
Beans: 437
Kubuntu 7.10 Gutsy Gibbon
Send a message via ICQ to p!=f
Re: [HOWTO]: USB Logitech mouse and 800 cpi

Quote:
Originally Posted by wallijonn
that would be
Code:
sudo lmctl -p 046d:c01d -8 --sms
It did not return an error message. But it still lists the MX510 as an unknown device.

The Logitech Applet readme file states that the MX510 & MX500 are both M-BP81A devices.
If it did not return any error, could you confirm with
Code:
sudo lmctl -i
that your mouse has 800cpi turned on?
__________________
"Linux is like a wigwam. No Windows, no Gates and Apache inside!" - Unknown

RFC 3092 - Etymology of "Foo"
p!=f is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:02 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry