View previous topic :: View next topic |
Author |
Message |
waxor n00b
Joined: 02 Mar 2004 Posts: 11
|
Posted: Thu Apr 22, 2004 6:04 pm Post subject: an interesting usb mouse hack for gamers |
|
|
Some of you gentoo gamers might find this hack useful: 500 Hz HID USB Mouse Polling. Use at your own risk, it violates the USB standards for mice - according to the standards your mouse can only be polled at 8ms, which is 125Hz. That hack makes it 2ms, so your mouse turns into a 500Hz polling beast! I find it helps alot in games, makes your mouse input ultra smooth - sure as hell beats ps2rate (200Hz) on windows! Enjoy.
edit: the patches work on both the latest 2.6.6 kernel, and the 2.4.x.
Mod Edit: Updates to this can be found here: Configurable USB HID Mouse Polling - tomk |
|
Back to top |
|
|
YopWongSapn l33t
Joined: 26 Jan 2004 Posts: 627
|
Posted: Thu Apr 22, 2004 6:48 pm Post subject: |
|
|
Interesting. Thanks for the tip, I may have to try that one out _________________ Gentoo...it's like wiping your ass with silk. Or sandpaper. |
|
Back to top |
|
|
waxor n00b
Joined: 02 Mar 2004 Posts: 11
|
Posted: Thu Apr 22, 2004 8:48 pm Post subject: |
|
|
Another useful tip for logitech mx users is to grab the logitech_applet program from here. It was created by a guy who does work on usb in the linux kernel (Brad Hards). With it you can set your mouse to 800 DPI (it defaults to 400 DPI) and some other neat things. If you have an mx 310 or mx 510 you need to add a line in the source file so that your mouse works, like so (for mx510):
Code: | { VENDOR_LOGITECH, 0xC01D, "M-BS81A", "MX510 Optical Mouse", HAS_RES | HAS_SS | HAS_SSR }, |
That goes into the device_table array around line 240 in logitech_applet.c. I'm not sure what the device ID for mx310 is, but you can look it up easily enough in /proc/bus/pci/devices.
edit: make sure you have libusb emerged before installing this sucker.
Last edited by waxor on Fri Apr 23, 2004 4:59 am; edited 1 time in total |
|
Back to top |
|
|
nonotme Guru
Joined: 29 Sep 2003 Posts: 356 Location: on.ca
|
Posted: Thu Apr 22, 2004 9:30 pm Post subject: |
|
|
waxor wrote: | Another useful tip for logitech mx users is to grab the logitech_applet program from here. It was created by a guy who does work on usb in the linux kernel (Brad Hards). With it you can set your mouse to 800 DPI (it defaults to 400 DPI) and some other neat things. If you have an mx 310 or mx 510 you need to add a line in the source file so that your mouse works, like so (for mx510):
Code: | { VENDOR_LOGITECH, 0xC01D, "M-BS81A", "MX510 Optical Mouse", HAS_RES | HAS_SS | HAS_SSR }, |
That goes into the device_table array around line 240 in logitech_applet.c. I'm not sure what the device ID for mx310 is, but you can look it up easily enough in /proc/bus/pci/devices. |
beautiful, just what i needed. for what it's worth, the MX310 line is
Code: | { VENDOR_LOGITECH, 0xC01B, "M-BP86", "MX310 Optical Mouse", HAS_RES }, | thanks guys! _________________ Please append [Solved] to your thread if appropriate, it helps everyone. |
|
Back to top |
|
|
nmcsween Guru
Joined: 12 Nov 2003 Posts: 381
|
Posted: Thu Apr 22, 2004 10:07 pm Post subject: |
|
|
Do the logitec patches work for a PS/2 MX510? Or does anyone know of any patches to up the PS/2 polling rate? |
|
Back to top |
|
|
waxor n00b
Joined: 02 Mar 2004 Posts: 11
|
Posted: Fri Apr 23, 2004 1:35 am Post subject: |
|
|
Ultraoctane.com wrote: | Do the logitec patches work for a PS/2 MX510? Or does anyone know of any patches to up the PS/2 polling rate? |
The patches are only for USB. You can set your PS/2 rate by passing psmouse.rate=xxx to the kernel at boot-up, and the DPI of your mouse by passing psmouse.resolution=xxx. This can be done in grub.conf or lilo.conf, or the config of whatever boot loader you are using. There is also an Option "SampleRate" xxx in X, that you can slap into the device section of your mouse in xorg.conf/XF86Config. Not sure if the X setting is necessary, haven't tested ps2. |
|
Back to top |
|
|
shredz Apprentice
Joined: 05 Feb 2004 Posts: 215 Location: Antwerp
|
Posted: Fri Apr 23, 2004 1:16 pm Post subject: |
|
|
Code: | logitech_applet-0.3 $ ./logitech_applet
001/002 046D/C025 M-BP81A MX500 Optical Mouse
Error getting resolution from device : error sending control message: Operation not permitted
Resolution: ffffffbf (Unexpected result:-65)
Error getting cruise control setting from device : error sending control message: Operation not permitted
Cruise Control / Smart Scroll: ffffffbf (Unexpected result)
Unexpected cruise value : -65 |
Anyone know what permission is wrong here ? |
|
Back to top |
|
|
Skrot Tux's lil' helper
Joined: 06 Oct 2003 Posts: 141 Location: Adelaide, Australia
|
Posted: Fri Apr 23, 2004 2:38 pm Post subject: |
|
|
From my experience, you have to run the logitech_applet as root, unless you change some sort of permission thing elsewhere... _________________ You will release your mind. |
|
Back to top |
|
|
shredz Apprentice
Joined: 05 Feb 2004 Posts: 215 Location: Antwerp
|
Posted: Fri Apr 23, 2004 2:58 pm Post subject: |
|
|
Well I ran it as root to enable 800 dpi and O M G
Is there any way to enable this 800 dpi so it's automatically set to that ? I use gdm/kdm always with auto-login to my regular user account so could anyone tell me how to bypass doing a su to get it going ? |
|
Back to top |
|
|
Skrot Tux's lil' helper
Joined: 06 Oct 2003 Posts: 141 Location: Adelaide, Australia
|
Posted: Fri Apr 23, 2004 3:01 pm Post subject: |
|
|
Yep.... /etc/conf.d/local.start is your friend. Put /usr/local/bin/logitech_applet -s800 into there. There's probably a better place to put that line, but it works for me.
Also, i get gnome to run xset for me whenever i start it up. In the session manager i think it was. xset m 8/5 1 or something _________________ You will release your mind. |
|
Back to top |
|
|
shredz Apprentice
Joined: 05 Feb 2004 Posts: 215 Location: Antwerp
|
Posted: Fri Apr 23, 2004 3:51 pm Post subject: |
|
|
Well just thought about local.start myself so that's where it is now... also if you want to use the cruise control (normally enablde by default) you have to add --cc-enable to that line otherwise it will set 800 dpi but kick the cc
I run xmodmap to get the wheel sorted out at kde startup
so nice to see gnome and kde people working together |
|
Back to top |
|
|
kriz Apprentice
Joined: 22 Jan 2003 Posts: 231
|
Posted: Fri Apr 23, 2004 5:57 pm Post subject: |
|
|
this is awesome!
what a nice piece of software. |
|
Back to top |
|
|
equilibrium Apprentice
Joined: 29 Jun 2003 Posts: 213 Location: UK
|
Posted: Fri Apr 23, 2004 6:13 pm Post subject: |
|
|
nice hehe not tried the 500hz thing yet but the 800dpi thing is excellent had to emerge libusb but it seems to work. 2x sensitivity but feels better
Code: | /usr/local/bin/logitech_applet -s800 --enable-cc |
*adds it to /etc/conf.d/local.start*
gonna go test it in quake3 hehe _________________ kernel 4.15.17-1-equk | i3wm | github |
|
Back to top |
|
|
DrFishstik Tux's lil' helper
Joined: 05 Dec 2002 Posts: 85 Location: University Park, PA
|
Posted: Sat Apr 24, 2004 5:10 am Post subject: Loving 500Hz |
|
|
I love the kernel patches. Makes everything sooo much smoother, and things were good to begin with! |
|
Back to top |
|
|
Skrot Tux's lil' helper
Joined: 06 Oct 2003 Posts: 141 Location: Adelaide, Australia
|
Posted: Sat Apr 24, 2004 5:20 am Post subject: |
|
|
Ah. I have only an MX300, so no scroll button thingos for me. _________________ You will release your mind. |
|
Back to top |
|
|
Dabljuh n00b
Joined: 04 Mar 2004 Posts: 48
|
Posted: Sat May 01, 2004 8:14 pm Post subject: |
|
|
800 DPI!!! AAAH GREAT
/me is cumming all over the freaking place
it annoyed me for YEARS that my beloved logitech mice would only do 400 dpi and I kept having to use 2x speed which also makes your mouse jump every other pixel.
I LOVE THIS GUY! forget kernel 2.6, THIS IS THE GREATEST THING FOR LINUX IN A WHILE! |
|
Back to top |
|
|
Malakin Veteran
Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
Posted: Sat May 01, 2004 10:03 pm Post subject: |
|
|
Last time I tried 800dpi with an mx500 I got a bit of annoying jitter in the mouse. Anyone else notice this? |
|
Back to top |
|
|
equilibrium Apprentice
Joined: 29 Jun 2003 Posts: 213 Location: UK
|
Posted: Sat May 01, 2004 10:12 pm Post subject: |
|
|
I'm using a MX500 with 800dpi seems ok I have the mouse accel disabled tho. Gets really annoying with mouse accel enabled .
Anyone tried using 500mhz on 800dpi ? I've not tried the 500mhz thing yet. _________________ kernel 4.15.17-1-equk | i3wm | github |
|
Back to top |
|
|
Skrot Tux's lil' helper
Joined: 06 Oct 2003 Posts: 141 Location: Adelaide, Australia
|
Posted: Sat May 01, 2004 11:25 pm Post subject: |
|
|
Dabljuh wrote: | 800 DPI!!! AAAH GREAT
/me is cumming all over the freaking place
it annoyed me for YEARS that my beloved logitech mice would only do 400 dpi and I kept having to use 2x speed which also makes your mouse jump every other pixel.
I LOVE THIS GUY! forget kernel 2.6, THIS IS THE GREATEST THING FOR LINUX IN A WHILE! | Haha. I had a very similar feeling when I first used it. But then I hadn't used linux for years at that stage (only a week or two at most).
I now have a problem that setting it to 800 DPI sometimes resets itself to 400 for no apparent reason. Anyone know why this would/could be? It's not that bad, it's just annoying.
Cheers _________________ You will release your mind. |
|
Back to top |
|
|
shredz Apprentice
Joined: 05 Feb 2004 Posts: 215 Location: Antwerp
|
Posted: Sun May 02, 2004 2:21 am Post subject: |
|
|
Wouldn't happen to happen whenever you switch to a console and back into X would it ? |
|
Back to top |
|
|
Skrot Tux's lil' helper
Joined: 06 Oct 2003 Posts: 141 Location: Adelaide, Australia
|
Posted: Sun May 02, 2004 6:35 am Post subject: |
|
|
shredz wrote: | Wouldn't happen to happen whenever you switch to a console and back into X would it ? | Nope, it wouldn't. I often switch from Gnome to Fluxbox (my version of alt-tab for all games) and back, and it doesn't happen then. I also go to console (ctrl-f1 or ctrl-f2 etc) and back and it doesn't change it.
There does seem to be some regularity to it, but I can't seem to put my finger on it. I'll keep plugging along and see what I can work out. _________________ You will release your mind. |
|
Back to top |
|
|
neenee Veteran
Joined: 20 Jul 2003 Posts: 1786
|
Posted: Sun May 02, 2004 8:55 am Post subject: |
|
|
i patched the kernel with that 500Hz patch, but i can not
find any info on how to enable or make use of the changes.
*update* it seems to be enabled by default; i am not sure,
since i was already using the 800dpi patch, but it seems
that the cursor moves even more smoothly now.
which is a good thing |
|
Back to top |
|
|
wormstrangler n00b
Joined: 21 Aug 2003 Posts: 12
|
Posted: Mon May 03, 2004 11:25 am Post subject: |
|
|
Anyone know of a similar program for USB mice in Windows? |
|
Back to top |
|
|
neenee Veteran
Joined: 20 Jul 2003 Posts: 1786
|
Posted: Mon May 03, 2004 1:08 pm Post subject: |
|
|
well, i know of ps/2-rate, but not of anything for usb..
i think that with usb the max is already used with windows.
at least, i've never seen it not work not well. |
|
Back to top |
|
|
Skrot Tux's lil' helper
Joined: 06 Oct 2003 Posts: 141 Location: Adelaide, Australia
|
Posted: Mon May 03, 2004 2:11 pm Post subject: |
|
|
wormstrangler wrote: | Anyone know of a similar program for USB mice in Windows? | I found that I have to use the logitech mouse drivers in windows to get the 800DPI feel... otherwise it just feels "jumpy" like a regular mouse. But if you meant the 500hz thing... I dunno... _________________ You will release your mind. |
|
Back to top |
|
|
|