Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
an interesting usb mouse hack for gamers
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next  
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
waxor
n00b
n00b


Joined: 02 Mar 2004
Posts: 11

PostPosted: Thu Apr 22, 2004 6:04 pm    Post subject: an interesting usb mouse hack for gamers Reply with quote

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
View user's profile Send private message
YopWongSapn
l33t
l33t


Joined: 26 Jan 2004
Posts: 627

PostPosted: Thu Apr 22, 2004 6:48 pm    Post subject: Reply with quote

Interesting. Thanks for the tip, I may have to try that one out :D
_________________
Gentoo...it's like wiping your ass with silk. Or sandpaper.
Back to top
View user's profile Send private message
waxor
n00b
n00b


Joined: 02 Mar 2004
Posts: 11

PostPosted: Thu Apr 22, 2004 8:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
nonotme
Guru
Guru


Joined: 29 Sep 2003
Posts: 356
Location: on.ca

PostPosted: Thu Apr 22, 2004 9:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
nmcsween
Guru
Guru


Joined: 12 Nov 2003
Posts: 381

PostPosted: Thu Apr 22, 2004 10:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
waxor
n00b
n00b


Joined: 02 Mar 2004
Posts: 11

PostPosted: Fri Apr 23, 2004 1:35 am    Post subject: Reply with quote

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
View user's profile Send private message
shredz
Apprentice
Apprentice


Joined: 05 Feb 2004
Posts: 215
Location: Antwerp

PostPosted: Fri Apr 23, 2004 1:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Skrot
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 141
Location: Adelaide, Australia

PostPosted: Fri Apr 23, 2004 2:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
shredz
Apprentice
Apprentice


Joined: 05 Feb 2004
Posts: 215
Location: Antwerp

PostPosted: Fri Apr 23, 2004 2:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Skrot
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 141
Location: Adelaide, Australia

PostPosted: Fri Apr 23, 2004 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
shredz
Apprentice
Apprentice


Joined: 05 Feb 2004
Posts: 215
Location: Antwerp

PostPosted: Fri Apr 23, 2004 3:51 pm    Post subject: Reply with quote

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 :wink:
Back to top
View user's profile Send private message
kriz
Apprentice
Apprentice


Joined: 22 Jan 2003
Posts: 231

PostPosted: Fri Apr 23, 2004 5:57 pm    Post subject: Reply with quote

this is awesome!
what a nice piece of software.
Back to top
View user's profile Send private message
equilibrium
Apprentice
Apprentice


Joined: 29 Jun 2003
Posts: 213
Location: UK

PostPosted: Fri Apr 23, 2004 6:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
DrFishstik
Tux's lil' helper
Tux's lil' helper


Joined: 05 Dec 2002
Posts: 85
Location: University Park, PA

PostPosted: Sat Apr 24, 2004 5:10 am    Post subject: Loving 500Hz Reply with quote

I love the kernel patches. Makes everything sooo much smoother, and things were good to begin with!
Back to top
View user's profile Send private message
Skrot
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 141
Location: Adelaide, Australia

PostPosted: Sat Apr 24, 2004 5:20 am    Post subject: Reply with quote

Ah. I have only an MX300, so no scroll button thingos for me. ;)
_________________
You will release your mind.
Back to top
View user's profile Send private message
Dabljuh
n00b
n00b


Joined: 04 Mar 2004
Posts: 48

PostPosted: Sat May 01, 2004 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Malakin
Veteran
Veteran


Joined: 14 Apr 2002
Posts: 1692
Location: Victoria BC Canada

PostPosted: Sat May 01, 2004 10:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
equilibrium
Apprentice
Apprentice


Joined: 29 Jun 2003
Posts: 213
Location: UK

PostPosted: Sat May 01, 2004 10:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Skrot
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 141
Location: Adelaide, Australia

PostPosted: Sat May 01, 2004 11:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
shredz
Apprentice
Apprentice


Joined: 05 Feb 2004
Posts: 215
Location: Antwerp

PostPosted: Sun May 02, 2004 2:21 am    Post subject: Reply with quote

Wouldn't happen to happen whenever you switch to a console and back into X would it ?
Back to top
View user's profile Send private message
Skrot
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 141
Location: Adelaide, Australia

PostPosted: Sun May 02, 2004 6:35 am    Post subject: Reply with quote

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
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Sun May 02, 2004 8:55 am    Post subject: Reply with quote

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 :wink:
Back to top
View user's profile Send private message
wormstrangler
n00b
n00b


Joined: 21 Aug 2003
Posts: 12

PostPosted: Mon May 03, 2004 11:25 am    Post subject: Reply with quote

Anyone know of a similar program for USB mice in Windows?
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Mon May 03, 2004 1:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Skrot
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 141
Location: Adelaide, Australia

PostPosted: Mon May 03, 2004 2:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 1 of 10

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum