Linux Debian support - 4-button trackball, not picking up all buttons

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > June 2007 > 4-button trackball, not picking up all buttons





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author 4-button trackball, not picking up all buttons
Tim Johnson

2007-06-05, 1:13 am

Using kubuntu 7.04 (Feisty Fawn) amd 64
kubuntu is not picking up all buttons on my logitech
4-button trackball
lsusb has the following entry for this device:
Bus 001 Device 002: ID 046d:c408 Logitech, Inc. Marble Mouse (4-button)

and the xorg.conf entry is as follows:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

This was configured automatically during install.
The "right hand" smaller button is read as the same as
the right larger button. I.E. emacs recognizes them both
as "mouse 3" and xev shows the same output (as near as I can
tell) for both buttons.

What do I need to change to "recognize" the fourth button?
Thanks
Tim
sk8r-365

2007-06-05, 1:13 am

Tim Johnson said:
> Using kubuntu 7.04 (Feisty Fawn) amd 64
> kubuntu is not picking up all buttons on my logitech
> 4-button trackball
> lsusb has the following entry for this device:
> Bus 001 Device 002: ID 046d:c408 Logitech, Inc. Marble Mouse (4-button)

<snip>

I Googled for ya and found, I think, some good info:
http://tinyurl.com/25j233
http://tinyurl.com/2drnxy
http://tinyurl.com/2taad2
--
sk8r-365

http://goodbye-microsoft.com/
Tim Johnson

2007-06-05, 1:14 pm

sk8r-365 wrote:

> Tim Johnson said:
> <snip>
>
> I Googled for ya and found, I think, some good info:
> http://tinyurl.com/25j233
> http://tinyurl.com/2drnxy
> http://tinyurl.com/2taad2

Hey Thanks a lot. Lots of good stuff there.
I'll check it out today.
cheers
tim
Linonut

2007-06-05, 1:14 pm

After takin' a swig o' grog, Tim Johnson belched out this bit o' wisdom:
[vbcol=seagreen]
> sk8r-365 wrote:
>

My fluxbox startup notes:

# Other examples. Check man xset for details.
#
# Turn off beeps:
# xset -b
#
# Increase the keyboard repeat-rate:
# xset r rate 195 35
#
# Your own fonts-dir:
# xset +fp /home/ahlstrom/.font
#
# Your favourite mouse cursor:
# xsetroot -cursor_name right_ptr
#
# Change your keymap:
# xmodmap ~/.Xmodmap

My old box's xorg.conf notes:

# We want this mouse to be the main one in the system.
# This configuration item can be changed using the
# xsetpointer command. The button mapping can be
# changed with xmodmap -e "pointer = 1 2 3..."
#
# Option "Emulate3Buttons" "true"
# Option "ZAxisMapping" "4 5"
# Option "DragLockButtons" "m or m n"
# Option "Resolution" "n"
# Option "Protocol" "ImPS/2"

Used on a Marble mouse (4 buttons and a trackball).

Hope it helps in some small way!

--
Tux rox!
Tim Johnson

2007-06-08, 7:13 pm

sk8r-365 wrote:

> I Googled for ya and found, I think, some good info:
> http://tinyurl.com/25j233

I used the URL above as a guide:
My xorg section looked like this
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Buttons" "7"
Option "Name" "Logitech USB Trackball"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "YAxisMapping" "6 7"
Option "EmulateWheel" "True"
Option "EmulateWheelButton" "4"
EndSection
The result was not exactly what I was looking for:
Here is what happened, based on xev and emacs
Left large - button 1 (xev) - mouse 1 (emacs)
Left small - button 8 (xev) - mouse 8 (emacs)
Right small - button 9 (xev) - mouse 9 (emacs)
Right large - button 3 (xev) - mouse 3 (emacs)

What I was shooting for was to get something like
this
Left large - button 1 (xev)
Left small - button 2 (xev)
Right small - button 4 (xev)
Right large - button 3 (xev)
In the configuration created by ubuntu, Right small
is also mapped to button 3.
Any other ideas are welcome. I'll keep working on it,
loosing button 2 is a bit of a hassle, 'cuz it defaults for
pasting - although with the config above, I could paste by
pressing the two large buttons simultaneously.
thanks
tim
sk8r-365

2007-06-08, 7:13 pm

Tim Johnson said:
<snip>
> In the configuration created by ubuntu, Right small
> is also mapped to button 3.
> Any other ideas are welcome. I'll keep working on it,
> loosing button 2 is a bit of a hassle, 'cuz it defaults for
> pasting - although with the config above, I could paste by
> pressing the two large buttons simultaneously.


Can't recall if I mentioned that I don't use a track ball, so at any
rate wish I could help you more but don't know how. Hopefully you'll
find the "perfect" solution, but until then at least there's the dbl.
press to paste.

--
sk8r-365

http://goodbye-microsoft.com/
John Hasler

2007-06-09, 1:15 am

I have one of those 4-button Logitech tackball. Here is my configuration:

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "CorePointer"
Option "Name" "Logitech USB Trackball"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Buttons" "5"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "9"
Option "YaxisMapping" "4 5"
#Option "XaxisMapping" "6 7"
Option "ButtonMapping" "1 8 3 9 2"
EndSection

--
John Hasler
Tim Johnson

2007-06-10, 7:14 pm

John Hasler wrote:

> I have one of those 4-button Logitech tackball. Here is my configuration:
>
> Section "InputDevice"
> Identifier "Mouse0"
> Driver "mouse"
> Option "CorePointer"
> Option "Name" "Logitech USB Trackball"
> Option "Protocol" "auto"
> Option "Device" "/dev/input/mice"
> Option "Buttons" "5"
> Option "EmulateWheel" "true"
> Option "EmulateWheelButton" "9"
> Option "YaxisMapping" "4 5"
> #Option "XaxisMapping" "6 7"
> Option "ButtonMapping" "1 8 3 9 2"
> EndSection
>

Hi John:
Still no success:
Here's what I have now:

large button at left: button 1
small button at left: *unresponsive*
small button at right: button 2
large button at right: button 3

:-) we're headed in the right direction, but not there yet.
Is there a way to test configurations without rebooting?
thanks very much
tim
John Hasler

2007-06-10, 7:14 pm

Tim Johnson writes:
> large button at left: button 1
> small button at left: *unresponsive*
> small button at right: button 2
> large button at right: button 3


What do you mean by "unresponsive"? The configuration I posted makes the
small button on the left the "scrolling" button. Hold it down and move the
trackball.

> Is there a way to test configurations without rebooting?


Restart X.
--
John Hasler
Tim Johnson

2007-06-10, 7:14 pm

John Hasler wrote:

> Tim Johnson writes:
>
> What do you mean by "unresponsive"?

It did not seem that xev or emacs were picking it up,
but now I see that I have to make two or more clicks
for xev to see it as button 9, and likewise emacs *sees*
it (after a couple of clicks) as mouse-9
> The configuration I posted makes the
> small button on the left the "scrolling" button. Hold it down and move
> the trackball.

Aha! That's it! Now I see in xev button 5 and in emacs mouse-5.
Very cool.
>
> Restart X.

That'll work.
Now I have two configuration that I can play with and learn from.
I really appreciate all of the help.
Cheers
Tim

Linonut

2007-06-11, 7:13 am

After takin' a swig o' grog, Tim Johnson belched out this bit o' wisdom:

> That'll work.
> Now I have two configuration that I can play with and learn from.
> I really appreciate all of the help.


Also try googoo (Google) for your specific model in X:

"Mark V Mouse"+xorg.conf

That helps me a lot.

--
Tux rox!
AJackson

2007-06-12, 7:13 am

On Jun 10, 10:59 pm, Tim Johnson <t...@johnsons-web.com> wrote:
> John Hasler wrote:
>
>
> Hi John:
> Still no success:
> Here's what I have now:
>
> large button at left: button 1
> small button at left: *unresponsive*
> small button at right: button 2
> large button at right: button 3
>
> :-) we're headed in the right direction, but not there yet.
> Is there a way to test configurations without rebooting?
> thanks very much
> tim


How did you test this?

Use xev to realy see what events each input device send to your
programs.

Good luck

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com