Trackball to emulate scroll wheel?

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

Trackball to emulate scroll wheel?

Postby chowanec on Sat Mar 22, 2008 1:16 pm

Hey -- could use some of the wisdom of your xorg champs. I found this link on how to emulate the scroll wheel using the logitech marble trackball. I figure any trackball would work for this, but what I was wondering is whether or not I could emulate the scroll wheel by using the "Windows" key and the trackball -- that is to say, if I hold the Windows key down, could I then use the trackball to scroll?

I was going to post in Ubuntu forums, but figured I like you guys more. :) And, well, the Mint crew has been so terribly helpful. :) I'm not convinced it's possible when I read the xorg documentation... but I wanted to ask.

Thanks much.

Here's the referenced link above: http://ubuntuforums.org/showthread.php?t=169423

And the howto from the post:
End Result
Using trackball to emulate wheel button scroll (horizontal & vertical) in web browser (Epiphany 2.14.0 and Firefox 1.5.0.1).

Method

1. Open xorg.conf file using a text editor (gedit). Go to Applications -> Accessories -> Terminal and enter command:
Code:

sudo gedit /etc/X11/xorg.conf

2. Look for a section that contains the entry for your mouse, it looks kind of like this.
Code:

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

3. Edit that section into this:
Code:

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Emulate3Buttons" "true"
Option "Buttons" "9"
Option "EmulateWheel" "1"
Option "EmulateWheelButton" "8" # for right-handed people
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
EndSection

chowanec
Level 3
Level 3
 
Posts: 107
Joined: Fri Dec 14, 2007 11:59 am

Linux Mint is funded by ads and donations.
 

Re: Trackball to emulate scroll wheel?

Postby Husse on Sun Mar 23, 2008 8:21 am

What do you really want to achieve?
I can't test the xorg.conf posted without a trackball, but it's supposed to work.....
Why mix in the Win key?
I don't think there is a solution for that, at least not an easy one
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Trackball to emulate scroll wheel?

Postby Zwopper on Sun Mar 23, 2008 8:33 am

If I remember correctly I got the trackball to work as a scroll by holding the two "mouse" buttons and then use the ball as a 3D wheel, but it's been a while...
No xorg hack needed.
Image
My artwork at deviantART | My Tweet
CREA DIEM!
Lenovo E320 | 8GB | 512GB Samsung 840 PRO - SSD | Ubuntu 14.04
User avatar
Zwopper
Level 10
Level 10
 
Posts: 3101
Joined: Fri Nov 30, 2007 12:20 pm
Location: Deep in the Swedish woods

Re: Trackball to emulate scroll wheel?

Postby chowanec on Sun Mar 23, 2008 10:43 am

Husse: Trying to achieve basically what Zwopper posted -- there's so much common and habitual grammar around the mouse wheel at this point, it feel weird to NOT use one when scrolling through long documents or web pages. The mouse wheel is the greatest invention since... well... the mouse.

Zwopper: You nailed it. That's what I'd love to figure out. I know there's an emulate three buttons command in the xorg. I'm going to go scour the documentation. If you get hit with the epiphany of how you did it, that'd be awesome. :)

-Chow
chowanec
Level 3
Level 3
 
Posts: 107
Joined: Fri Dec 14, 2007 11:59 am

Re: Trackball to emulate scroll wheel?

Postby Husse on Sun Mar 23, 2008 6:59 pm

Of course you want scrolling :)
I see that my complete lack of experience with a trackball got me on the wrong track :)
What that xorg.conf achieved is normal "mouse movement" (am I right? :))
Sorry for that
And yes there is an
emulate three buttons command in the xorg

I appreciate not having to look it up - you can find it somewhere among my posts I think - but that's just 67 pages :roll:
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden


Return to Hardware Support

Who is online

Users browsing this forum: Google Feedfetcher and 16 guests