USB Mouse: HP Wireless Optical Mouse

USB Mouse: HP Wireless Optical Mouse

Post by mjf » Thu, 25 Sep 2003 07:51:18

USB Mouse: HP Wireless Optical Mouse
HP Product Number: P5304J
UPC Code: 8 08736 63463 2

I'm running Linux (Mandrake 9.1). When I added this new
USB mouse and rebooted, the system recognized this as a
"USB Wheel Mouse". The mouse is mostly functional,
Left button, Right button work as well as the ability
to move the cursor.

However, is there anything I can be done to take advantage
of the other mouse parts:

- the "Scroll Wheel"
- the Middle Button (Scroll Wheel press)

HP doesn't recognizes the existence of anything other
than Windows.


No, this was not a rash purchase. :) It fell in my
lap gratis.

USB Mouse: HP Wireless Optical Mouse

Post by Derek Clar » Thu, 25 Sep 2003 09:22:49

hi I don't have the info in front of me, but most of these issues are just
configuration. You need th change the mouse driver in your X config file.
You also need to correct the file with the correct number of buttons for
your mouse and add a ZAxisMapping entry. You may also need to add a XModMap
entry to get X to recognise which buttons are what on the mouse. The scroll
wheel is actually a set of buttons so configuring it is easier than you
might think.

the best thing to do is look around the net for this info. I would also
check out the forums at as I remember seeing quite a bit of
discussion about this there. Although I cannot say if they talked bout the
HP mouse in particular.

good luck


USB Mouse: HP Wireless Optical Mouse

Post by mjt » Thu, 25 Sep 2003 10:33:55

.. ensure these options are in /etc/X11/XF86Config[-4] file:

Option "ButtonNumber" "5"
Option "ZAxisMapping" "4 5"
/// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
\\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
"I went to the museum where they had all the heads and arms from
the statues that are in all the other museums." - Steven Wright

USB Mouse: HP Wireless Optical Mouse

Post by mjf » Fri, 26 Sep 2003 15:02:35

Your 2 line sample worked like a charm.

By the way, the mouse tracks just as nicely
as the Logitech MX700 cordless optical mouse.
I wonder if they share the same guts... no matter,
works just great.

Thanks so much for the help.