Author Topic: How To: Logitech Mouse DPI Settings using Lomoco  (Read 3821 times)

Offline MerReady

  • PCLinuxOS Tester
  • Full Member
  • *******
  • Posts: 167
How To: Logitech Mouse DPI Settings using Lomoco
« on: July 26, 2010, 01:39:30 AM »
This is a how to for getting your Logitech mouse dpi set correctly using Lomoco. Credit goes to muungwana from the forums and the Gentoo wiki for this how too.

Lomoco (Logitech Mouse Control) can change the CPI resolutions on some Logitech mice. To change cpi resolution for Logitech mice, install Lomoco from synaptic and do the following.

1) From terminal as su: chmod +x /usr/bin/lomoco
example:
[chris@localhost ~]$ su
Password:
[root@localhost ~]# chmod +x /usr/bin/lomoco

2) From terminal: lomoco -i
This is a example what you get:
006.002: 046d:c01d MX510 Optical Mouse (M-BS81A) Caps: RES SMS
   Resolution (RES): 400 cpi
   SmartScroll (SMS): on
   USB Mouse Polling Interval:  10ms
      
3) Now to change your dpi, type from terminal: lomoco -8
This is what you get:
006.002: 046d:c01d MX510 Optical Mouse (M-BS81A) Caps: RES SMS
   Resolution set to 800 cpi

If you need a dpi of 1600 then change -8 to -16

example: 400dpi -4 or --400
         800dpi -8 or --800
        1600dpi -16 or --1600

4) To make the change permantly, create the following text file: 55-lomoco.rules

Insert the following in your 55-lomoco.rules:

BUS=="usb", SYSFS{manufacturer}=="Logitech", SYSFS{product}=="USB-PS/2 Optical
Mouse", RUN+="/usr/bin/lomoco -8"

Now navagate to your /etc/udev/ folder. Scroll down and right click on rules.d folder and click actions(KDE) and open as root or in Gnome right click and open as administrator. Now copy and paste your
55-lomoco.rules in your rules.d folder.

Reboot

Now PCLinuxOS will keep your lomoco dpi setting. To make sure your setting stayed just run lomoco -i from terminal. If all went well it should show the setting you set.

Note: Any time you decide to chance your dpi settings and you want to keep it peramant, make sure you edit your /etc/udev/rules.d/55-lomoco.rules file.

Supported devices:

Cordless Mouse Receiver
Cordless MouseMan Optical
Cordless Optical Mouse
Cordless TrackMan Wheel
G3 Gaming Laser Mouse
G5 Gaming Laser Mouse
MX Revolution Mouse
MX1000 Laser Cordless Mouse
MX300 Optical Mouse
MX310 Optical Mouse
MX500 Optical Mouse
MX510 Optical Mouse
MX518 Optical Mouse
MX900 Cordless Mouse
MouseMan Dual Optical
MouseMan Traveler
Optical Wheel Mouse
USB Receiver
UltraX Optical Mouse
V200 Cordless Notebook Mouse
VX Revolution Mouse
Wheel Mouse Optical
diNovo Media Desktop Receiver
iFeel Mouse

This was tested in PCLinuxOS 2010.7 KDE and PCLinuxOS 2010.7 Gnome.

This is my first how to so if there is a easier way to do the above let me know. Thanks

Edit: I added a supported device list.
« Last Edit: July 27, 2010, 03:11:04 AM by MerReady »
Gaming Rig AMD FX8350/ Gigabyte 970A-UD3/ 8 gigs DDR3-2133/ XFX HD5800 | Intel core2 duo e4600 oc 3.0ghz/ MSI G41M4-F / 4gb Corsair DDR2 / Zotec 9800 GTX amp Edition | ASUS F3KA Laptop AMD TL66x2 2.3ghz, 4gb, ATI mobility 2600 512mb, Seagte 500gb

Offline smurfslover

  • Hero Member
  • *****
  • Posts: 811
Re: Logitech Mouse DPI Settings using Lomoco
« Reply #1 on: July 26, 2010, 02:08:28 AM »
Thanks for this howto.
Registered Linux User 440970

Every windows machine has an un-patchable critical vulnerability... Its called "Power ON" switch.

Offline nerdful1

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1575
  • Registered Linux User #444541
    • Nerdful Things
Re: Logitech Mouse DPI Settings using Lomoco
« Reply #2 on: July 26, 2010, 05:43:44 AM »
This is very model specific?

I just tried it on my USB wireless logitech m/n:c-8s35
p/n 831487-0000
pid lz83927

Doesn't seem to change anything, using term or su term

Thanks
Promote open source.
Stars up!  Lights Down! Use sky and neighbor friendly outdoor lighting, and save energy.  Darksky dot org.
 ISF Professional that wants to keep black level in the sky.
Mythic Dragon V1.0 Desktop HTPC running PCLOS & Mythtv simultaneously.

Offline saltcedar

  • Full Member
  • ***
  • Posts: 66
Re: How To: Logitech Mouse DPI Settings using Lomoco
« Reply #3 on: September 15, 2012, 11:46:05 AM »
Code: [Select]
diff --git a/proof-of-concept/lomoco_battery.c b/proof-of-concept/lomoco_battery.c
index fbe87d4..79e9d08 100644
--- a/proof-of-concept/lomoco_battery.c
+++ b/proof-of-concept/lomoco_battery.c
@@ -25,6 +25,7 @@
#define MOUSE_VX_NANO 0xc521
#define MOUSE_MX 0xc51a
#define MOUSE_MX_AIR 0xc525
+#define MOUSE_MX_1100 0xc526
static int send_report(int fd, int id, const unsigned int *buf, size_t size) {
struct hiddev_report_info rinfo;
@@ -159,6 +160,7 @@ int main (int argc, char **argv) {
((device_info.product == (short)MOUSE_VX) ||
(device_info.product == (short)MOUSE_VX_NANO) ||
(device_info.product == (short)MOUSE_MX_AIR) ||
+ (device_info.product == (short)MOUSE_MX_1100) ||
(device_info.product == (short)MOUSE_MX))) {
char dev[256] = {0};


I know zip about the above code. Is it possible to add it
to my Lomoco rules.d file? If so where do I begin?

Offline MerReady

  • PCLinuxOS Tester
  • Full Member
  • *******
  • Posts: 167
Re: How To: Logitech Mouse DPI Settings using Lomoco
« Reply #4 on: September 21, 2012, 08:06:05 AM »
Code: [Select]
diff --git a/proof-of-concept/lomoco_battery.c b/proof-of-concept/lomoco_battery.c
index fbe87d4..79e9d08 100644
--- a/proof-of-concept/lomoco_battery.c
+++ b/proof-of-concept/lomoco_battery.c
@@ -25,6 +25,7 @@
#define MOUSE_VX_NANO 0xc521
#define MOUSE_MX 0xc51a
#define MOUSE_MX_AIR 0xc525
+#define MOUSE_MX_1100 0xc526
static int send_report(int fd, int id, const unsigned int *buf, size_t size) {
struct hiddev_report_info rinfo;
@@ -159,6 +160,7 @@ int main (int argc, char **argv) {
((device_info.product == (short)MOUSE_VX) ||
(device_info.product == (short)MOUSE_VX_NANO) ||
(device_info.product == (short)MOUSE_MX_AIR) ||
+ (device_info.product == (short)MOUSE_MX_1100) ||
(device_info.product == (short)MOUSE_MX))) {
char dev[256] = {0};


I know zip about the above code. Is it possible to add it
to my Lomoco rules.d file? If so where do I begin?

No. If your mouse is on the support list you need to follow the instruction I have laid out to maintain the desire dpi setting after a reboot/shutdown.
Gaming Rig AMD FX8350/ Gigabyte 970A-UD3/ 8 gigs DDR3-2133/ XFX HD5800 | Intel core2 duo e4600 oc 3.0ghz/ MSI G41M4-F / 4gb Corsair DDR2 / Zotec 9800 GTX amp Edition | ASUS F3KA Laptop AMD TL66x2 2.3ghz, 4gb, ATI mobility 2600 512mb, Seagte 500gb