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 Previous  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
gaminggeek
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 231
Location: New Zealand

PostPosted: Sun Jan 16, 2005 3:09 am    Post subject: Reply with quote

yes and no I cannot change it on the fly but games seam easyer to control
Back to top
View user's profile Send private message
bennettp
Guru
Guru


Joined: 22 Feb 2004
Posts: 335
Location: on my back and tumbling

PostPosted: Sun Jan 16, 2005 8:53 am    Post subject: Reply with quote

gaminggeek: it's probably just your imagination. If /prob/bus/usb/devices says that the mousepoll is 10ms, then that means the mousepoll is 10ms. Sorry.

About sysfs... Sysfs is a new pseudo-filesystem in kernel-2.6. It is similar to procfs (mounted at /proc), but it provides (and allows you to modify) information about drivers in the kernel.

Take a look in /sys/. If it's mounted, there should be folders like "block", "bus", "classes", "firmware", "power", etc. If there's nothing there, then it's not mounted. Mount it with `mount -t sysfs none /sys` (as root).
_________________
Registered Linux User #363420
Back to top
View user's profile Send private message
bennettp
Guru
Guru


Joined: 22 Feb 2004
Posts: 335
Location: on my back and tumbling

PostPosted: Sun Jan 16, 2005 8:59 am    Post subject: Reply with quote

One more question gaminggeek:

You DID recompile your kernel after patching it, didn't you? After patching the kernel, you need to run "make". This will only recompile the usbhid driver, so it should take no time at all. Then you need to run "make modules_install", and copy the new kernel image into /boot.
_________________
Registered Linux User #363420
Back to top
View user's profile Send private message
gaminggeek
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 231
Location: New Zealand

PostPosted: Sun Jan 16, 2005 10:14 am    Post subject: Reply with quote

I modprobed it with the polling rate @ 2 and it said in the thing it wazs @ 2 8)
Back to top
View user's profile Send private message
krejler
Tux's lil' helper
Tux's lil' helper


Joined: 10 Nov 2003
Posts: 142
Location: Denmark

PostPosted: Sun Jan 16, 2005 11:55 am    Post subject: Reply with quote

gaminggeek wrote:
I modprobed it with the polling rate @ 2 and it said in the thing it wazs @ 2 8)


Great! No problems whatsoever with controlling the beast now?
If not, could you please tell me the name of your mouse? :)

Thanks.
Back to top
View user's profile Send private message
gaminggeek
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 231
Location: New Zealand

PostPosted: Sun Jan 16, 2005 12:10 pm    Post subject: Reply with quote

that has all the info


Code:
T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0458 ProdID=001a Rev= 0.00
S:  Manufacturer=KYE
S:  Product=PowerScroll EYE
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   5 Ivl=2ms


and no problems ATM
Back to top
View user's profile Send private message
krejler
Tux's lil' helper
Tux's lil' helper


Joined: 10 Nov 2003
Posts: 142
Location: Denmark

PostPosted: Sun Jan 16, 2005 12:17 pm    Post subject: Reply with quote

gaminggeek wrote:
that has all the info


Code:
T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0458 ProdID=001a Rev= 0.00
S:  Manufacturer=KYE
S:  Product=PowerScroll EYE
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   5 Ivl=2ms


and no problems ATM


With a little googlin' (and common sense) it seems to be a... *dromroll* Genius PowerScroll EYE.

Thanks.
Back to top
View user's profile Send private message
gaminggeek
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 231
Location: New Zealand

PostPosted: Sun Jan 16, 2005 9:25 pm    Post subject: Reply with quote

:D I thought it would be better if you saw the non rebranded model :)
Back to top
View user's profile Send private message
Xithix
Apprentice
Apprentice


Joined: 31 Dec 2004
Posts: 228

PostPosted: Mon Jan 17, 2005 4:32 am    Post subject: Reply with quote

Hmm. My mouse is a Logitech and advertises 800dpi, but it's not in the MX line. Would the 800dpi patch work?
Back to top
View user's profile Send private message
krejler
Tux's lil' helper
Tux's lil' helper


Joined: 10 Nov 2003
Posts: 142
Location: Denmark

PostPosted: Mon Jan 17, 2005 1:24 pm    Post subject: Reply with quote

Xithix wrote:
Hmm. My mouse is a Logitech and advertises 800dpi, but it's not in the MX line. Would the 800dpi patch work?


There is no such thing as a "800dpi patch". :)

There is a utility, logitech_applet, which allows you to enable 800dpi-mode on your mouse.

"The patch" you are talking about, allows you to change the interval at which your mouse is polled, giving you the ability to enhance the preciseness of it.

Farewell. :twisted:
Back to top
View user's profile Send private message
bennettp
Guru
Guru


Joined: 22 Feb 2004
Posts: 335
Location: on my back and tumbling

PostPosted: Mon Jan 17, 2005 2:09 pm    Post subject: Reply with quote

Xithix: Yes, the logitech_applet should work to give you 800dpi on your mouse; however, there are only a few devices supported by the program. Here's a list of supported devices, pulled straight from the source code:
Code:
device_table[] = {
    { VENDOR_LOGITECH, 0xC00E, "M-BJ58", "Wheel Mouse Optical", HAS_RES },
    { VENDOR_LOGITECH, 0xC00F, "M-BJ79", "MouseMan Traveler", HAS_RES },
    { VENDOR_LOGITECH, 0xC012, "M-BL63B", "MouseMan Dual Optical", HAS_RES },
    { VENDOR_LOGITECH, 0xC01D, "M-BS81A", "MX510 Optical Mouse", HAS_RES | HAS_SS | HAS_SSR },
    { VENDOR_LOGITECH, 0xC01B, "M-BP86", "MX310 Optical Mouse", HAS_RES },
    { VENDOR_LOGITECH, 0xC024, "M-BP82", "MX300 Optical Mouse", HAS_RES },
    { VENDOR_LOGITECH, 0xC025, "M-BP81A", "MX500 Optical Mouse", HAS_RES | HAS_SS | HAS_SSR },
    { VENDOR_LOGITECH, 0xC031, "M-UT58A", "iFeel Mouse (silver)", HAS_RES },
    { VENDOR_LOGITECH, 0xC501, "C-BA4-MSE", "Mouse Receiver", HAS_CSR },
    { VENDOR_LOGITECH, 0xC502, "C-UA3-DUAL", "Dual Receiver", HAS_CSR },
    { VENDOR_LOGITECH, 0xC504, "C-BD9-DUAL", "Cordless Freedom Optical", HAS_CSR },
    { VENDOR_LOGITECH, 0xC505, "C-BG17-DUAL", "Cordless Elite Duo", HAS_SS | HAS_SSR | HAS_CSR },
    { VENDOR_LOGITECH, 0xC506, "C-BF16-MSE", "MX700 Optical Mouse", HAS_SS | HAS_CSR },
    { VENDOR_LOGITECH, 0xC508, "C-BA4-MSE", "Cordless Optical TrackMan", HAS_SS | HAS_SSR | HAS_CSR },
    { VENDOR_LOGITECH, 0xC702, "C-UF15", "Receiver for Cordless Presenter", HAS_CSR },
    { 0, 0, 0, 0, 0 }
};
(BTW, The code above is from version 0.3; a newer version will probably support more mice).

So just create a new line if your device isn't supported. For an example, see the line for the MX310 above; I added it myself.

Here's a description of the values I used:

* VENDOR_LOGITECH is self explanatory.
* 0xC01B is a unique product identifier. I got it from /proc/bus/usb/devices, under the ProdID for my mouse.
* I dunno what "M-BP86" is. Probably a serial number or something; I got it from the underside of my mouse.
* "MX310 OPtical Mouse": again, self-explainatory.
* HAS_RES means it can be set to 800dpi mode. Also possible are HAS_SS (smart-scroll), HAS_CSR (cordless status reporting), and HAS_SSR (smart scroll reporting). You should be able to figure out which ones you want by looking at the features on the box.
_________________
Registered Linux User #363420
Back to top
View user's profile Send private message
bennettp
Guru
Guru


Joined: 22 Feb 2004
Posts: 335
Location: on my back and tumbling

PostPosted: Mon Jan 17, 2005 2:13 pm    Post subject: Reply with quote

Oh, and maybe this will be useful:
Code:
$ cat /etc/init.d/logitech
#!/sbin/runscript

depend() {
        need localmount
        before gpm
}

checkconfig() {
        if [ ! -x /usr/local/bin/logitech_applet ]; then
                eerror "Logitech Applet not found."
        fi
        return 0
}

start() {
        checkconfig || return 1

        ebegin "Running logitech mouse applet"
        /usr/local/bin/logitech_applet --set-res=800 > /dev/null
        /usr/local/bin/logitech_applet --get-res | grep [Rr]esolution

        #renice -19 $(pgrep events)

        eend $?
}

_________________
Registered Linux User #363420
Back to top
View user's profile Send private message
krejler
Tux's lil' helper
Tux's lil' helper


Joined: 10 Nov 2003
Posts: 142
Location: Denmark

PostPosted: Mon Jan 17, 2005 2:21 pm    Post subject: Reply with quote

Seems like it already is supported, though. First entry in the device table. :)

May I suggest that we create an updated list of devices, and e-mail it to the author? Quickly looking through the list, I notice that at least the MX1000 is missing.

Any MX1000 users here? ;)

EDIT:
Oh, sorry, I forgot that the Device ID might be different, my bad.
Back to top
View user's profile Send private message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Mon Jan 17, 2005 2:45 pm    Post subject: Reply with quote

I found this Thread today and http://www.yhbt.net/normalperson/files/linux/hid-interrupt-polling/ is down - can anybody explain how the 500Hz thing works?
_________________
Es ist schön und warm
hier im Gentoo-Land
Back to top
View user's profile Send private message
Xithix
Apprentice
Apprentice


Joined: 31 Dec 2004
Posts: 228

PostPosted: Mon Jan 17, 2005 4:36 pm    Post subject: Reply with quote

Bleh, the logitech aplet link 404'd

Though looking at the bottom of my mouse, I see that it is indeed an M-BJ58, the first mouse on the list ^_^
Back to top
View user's profile Send private message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Mon Jan 17, 2005 9:58 pm    Post subject: Reply with quote

Hrmpf...I googled for the polling patch but I only find the same URL as above :( Anyody got it?
_________________
Es ist schön und warm
hier im Gentoo-Land
Back to top
View user's profile Send private message
krejler
Tux's lil' helper
Tux's lil' helper


Joined: 10 Nov 2003
Posts: 142
Location: Denmark

PostPosted: Mon Jan 17, 2005 10:00 pm    Post subject: Reply with quote

zinion wrote:
Hrmpf...I googled for the polling patch but I only find the same URL as above :( Anyody got it?


http://omfg.linux.dk/pub/chmp/

Instructions can be found by going a few pages back, I think. :)
Back to top
View user's profile Send private message
krejler
Tux's lil' helper
Tux's lil' helper


Joined: 10 Nov 2003
Posts: 142
Location: Denmark

PostPosted: Mon Jan 17, 2005 10:03 pm    Post subject: Reply with quote

Xithix wrote:
Bleh, the logitech aplet link 404'd

Though looking at the bottom of my mouse, I see that it is indeed an M-BJ58, the first mouse on the list ^_^


http://freshmeat.net/projects/logitech_applet/
Back to top
View user's profile Send private message
Xithix
Apprentice
Apprentice


Joined: 31 Dec 2004
Posts: 228

PostPosted: Mon Jan 17, 2005 10:48 pm    Post subject: Reply with quote

Thanks for the working links! ^_^
Back to top
View user's profile Send private message
krejler
Tux's lil' helper
Tux's lil' helper


Joined: 10 Nov 2003
Posts: 142
Location: Denmark

PostPosted: Mon Jan 17, 2005 10:56 pm    Post subject: Reply with quote

Xithix wrote:
Thanks for the working links! ^_^


No problem.
Back to top
View user's profile Send private message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Tue Jan 18, 2005 11:56 am    Post subject: Reply with quote

Yeah a big THANK YOU from here, too :)

I love this forums...
_________________
Es ist schön und warm
hier im Gentoo-Land
Back to top
View user's profile Send private message
mikeraach
Apprentice
Apprentice


Joined: 20 Jan 2003
Posts: 168

PostPosted: Wed Jan 26, 2005 4:39 am    Post subject: Reply with quote

I'm using gentoo-dev-sources 2.6.10-r6 and have applied the patch (with no error) and set the polling to 2 in the menuconfig.

When I:
cat /sys/module/usbhid/parameters/mousepoll
I get 2 (which is right).

cat /proc/bus/usb/devices gives me:
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c024 Rev=98.02
S: Manufacturer=B16_b_02
S: Product=USB-PS/2 Optical Mouse
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 98mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 5 Ivl=2ms

which seems right.

However 'dmesg | grep polling' results in:
Machine check exception polling timer started.

Problem is, my mouse is no different than when I did not do this hack! Is there anything I'm doing wrong?

BTW, I'm using a logitech mx300.
Back to top
View user's profile Send private message
krejler
Tux's lil' helper
Tux's lil' helper


Joined: 10 Nov 2003
Posts: 142
Location: Denmark

PostPosted: Wed Jan 26, 2005 1:12 pm    Post subject: Reply with quote

mikeraach wrote:
However 'dmesg | grep polling' results in:
Machine check exception polling timer started.

This is not related.

mikeraach wrote:

Problem is, my mouse is no different than when I did not do this hack! Is there anything I'm doing wrong?

Nope, from what you've said, everything you've done is correct.

mikeraach wrote:
BTW, I'm using a logitech mx300.

Alright, that mouse should indeed work....

You could try to....
Code:
echo 50 > /sys/module/usbhid/parameters/mousepoll

...then replug your mouse, and move the cursor around a bit.

Does it feel imprecise? If that's the case, then hack is obviously working.

If it works, then I really don't know what to say. Perhaps you just cannot feel the difference? It is there, but it might not be very obvious. ;)
Back to top
View user's profile Send private message
bennettp
Guru
Guru


Joined: 22 Feb 2004
Posts: 335
Location: on my back and tumbling

PostPosted: Thu Jan 27, 2005 8:55 pm    Post subject: Reply with quote

Newer versions of the patch no longer print the polling interval at startup. Check the source if you don't believe me. ;)

[Edit] Try this:
Code:
--- hid-core.c  2005-01-28 07:03:39.669068200 +1000
+++ hid-core-new.c      2005-01-28 07:03:30.255499280 +1000
@@ -1669,6 +1669,9 @@
                                && hid_mousepoll_interval > 0)
                        endpoint->bInterval = hid_mousepoll_interval;

+               printk("chmp: HID Mouse \"0x%x\" forced to %d ms polling\n",
+                       dev->descriptor.idProduct, endpoint->bInterval);
+
                /* handle potential highspeed HID correctly */
                interval = endpoint->bInterval;
                if (dev->speed == USB_SPEED_HIGH)

I stole it from configurable-hid-mouse-polling-2.6.8.1.patch. I haven't tested it yet; my HID drivers are built into the kernel and I don't want to reboot. Try it out if you're game! Apply it after chmp-r5-FULL.patch.
_________________
Registered Linux User #363420
Back to top
View user's profile Send private message
krejler
Tux's lil' helper
Tux's lil' helper


Joined: 10 Nov 2003
Posts: 142
Location: Denmark

PostPosted: Fri Jan 28, 2005 12:31 am    Post subject: Reply with quote

bennettp wrote:
Newer versions of the patch no longer print the polling interval at startup. Check the source if you don't believe me. ;)

[Edit] Try this:
Code:
--- hid-core.c  2005-01-28 07:03:39.669068200 +1000
+++ hid-core-new.c      2005-01-28 07:03:30.255499280 +1000
@@ -1669,6 +1669,9 @@
                                && hid_mousepoll_interval > 0)
                        endpoint->bInterval = hid_mousepoll_interval;

+               printk("chmp: HID Mouse \"0x%x\" forced to %d ms polling\n",
+                       dev->descriptor.idProduct, endpoint->bInterval);
+
                /* handle potential highspeed HID correctly */
                interval = endpoint->bInterval;
                if (dev->speed == USB_SPEED_HIGH)

I stole it from configurable-hid-mouse-polling-2.6.8.1.patch. I haven't tested it yet; my HID drivers are built into the kernel and I don't want to reboot. Try it out if you're game! Apply it after chmp-r5-FULL.patch.


There is really no reason to re-add that. At least not in my oppinion. :)
The exact same information can be fetched from usbfs (and /sysfs/module/...)
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 Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 7 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