Page 1 of 8 123 ... LastLast
Results 1 to 10 of 80

Thread: How-to Scrollwheel Effect on Logitech trackball (Marble Mouse)

  1. #1
    Join Date
    Nov 2004
    Location
    Kuala Lumpur, Malaysia
    Beans
    885
    Distro
    Xubuntu 14.04 Trusty Tahr

    How-to Scrollwheel Effect on Logitech trackball (Marble Mouse)

    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
    4. For left-handed people. Use this:
      Code:
      Option		"EmulateWheelButton"	"9"	# for left-handed people
    5. Go to Epiphany / Firefox address bar and type:
      Code:
      about:config
    6. Filter for the word scroll and look for these lines:
      Code:
      mousewheel.horizscroll.withnokey.action		default		integer	2
      mousewheel.horizscroll.withnokey.sysnumlines	default		boelean	false
    7. Change the default value into new value:
      Code:
      mousewheel.horizscroll.withnokey.action		user set	integer	0
      mousewheel.horizscroll.withnokey.sysnumlines	user set	boelean	true


    Step

    References:

    a. Xorg user documentation
    Option "Buttons" "integer"
    Specifies the number of mouse buttons. In cases where the number of buttons cannot be auto-detected, the default value is 3. The maximum number is 24.

    Option "Emulate3Buttons" "boolean"
    Enable/disable the emulation of the third (middle) mouse button for mice which only have two physical buttons. The third button is emulated by pressing both buttons simultaneously. Default: off

    Option "EmulateWheel" "boolean"
    Enable/disable "wheel" emulation. Wheel emulation means emulating button press/release events when the mouse is moved while a specific real button is pressed. Wheel button events (typically buttons 4 and 5) are usually used for scrolling. Wheel emulation is useful for getting wheel-like behaviour with trackballs. It can also be useful for mice with 4 or more buttons but no wheel. See the description of the EmulateWheelButton, EmulateWheelInertia, XAxisMapping, and YAxisMapping options below. Default: off.

    Option "EmulateWheelButton" "integer"
    Specifies which button must be held down to enable wheel emulation mode. While this button is down, X and/or Y pointer movement will generate button press/release events as specified for the XAxisMapping and YAxisMapping settings. Default: 4.

    Option "XAxisMapping" "N1 N2"
    Specifies which buttons are mapped to motion in the X direction in wheel emulation mode. Button number N1 is mapped to the negative X axis motion and button number N2 is mapped to the positive X axis motion. Default: no mapping.

    Option "YAxisMapping" "N1 N2"
    Specifies which buttons are mapped to motion in the Y direction in wheel emulation mode. Button number N1 is mapped to the negative Y axis motion and button number N2 is mapped to the positive Y axis motion. Default: "4 5".
    b. mozillaZine
    Mousewheel.*

    These fall into two groups, vertical and horizontal scroll. The general form is:
    • mousewheel.(modifier key).(type)
    • mousewheel.horizscroll.(modifier key).(type)


    Type is then one of:
    action
    integer value that determines the type of action:
    • 0 - Scroll document by a number of lines (given by the numlines property)
    • 1 - Scroll document by one page
    • 2 - Move back/forward in history
    • 3 - Make text larger/smaller


    numlines
    number of lines to scroll by (if relevant)

    sysnumlines
    use system preferences to determine how many lines to scroll by
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Buffalo Soldier; January 24th, 2008 at 02:27 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    In the land of OZ
    Beans
    247

    Re: Logitech trackball (Marble Mouse) on Breezy

    I moved this here since I keep getting request how to set up the scroll wheel effect. Hope you do not mind BuffaloSoldier. This is a great how to btw.
    Manually installing software and setting up your system is always preferable. However, there is not one thing wrong with using Automatix for getting it done the easy way. Get Automatix2 Support Here

  3. #3
    Join Date
    May 2006
    Location
    Redmond, WA
    Beans
    57
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Logitech trackball (Marble Mouse) on Breezy

    Finally, now I can use my favorite mouse!

    Although I changed the order of the YAxis mapping, made more sense to me (matches the arrows).

  4. #4
    Join Date
    Aug 2005
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Logitech trackball (Marble Mouse) on Breezy

    Hey, how's it going guys. Well I've got the same exact trackball, but scrollers aren't working under Kubuntu Dapper Drake. I've got the mouse connected to my laptop with the USB interface. xev shows the Up(left small) button as 8 and Down(right small) button as 9. The left-click(left large) button as 1 and the right-click(right large) button as 3.
    Last edited by wh0rd; July 21st, 2006 at 02:52 AM.

  5. #5
    Join Date
    Jan 2006
    Beans
    109
    Distro
    Ubuntu 6.10 Edgy

    Re: Logitech trackball (Marble Mouse) on Breezy

    This worked for me, although not like I expected it to. Instead of the down button scrolling down, and the up button scrolling up, neither do the original intended action.

    Instead, I must press the down button and then scroll the trackball up or down to scroll. But still... this is much better than having to move over the the scroll bar.

  6. #6
    Join Date
    Aug 2005
    Beans
    174

    Re: How-to Scrollwheel Effect on Logitech trackball (Marble Mouse)

    This kind of mouse?

    http://pc.itek.cz/k_464-Multimedia-M...ull/610206.jpg

    This is what i use and what is the scrolling effect?

    I'm confused

  7. #7
    Join Date
    Nov 2004
    Location
    Kuala Lumpur, Malaysia
    Beans
    885
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: How-to Scrollwheel Effect on Logitech trackball (Marble Mouse)

    This is the Marble Mouse that I used. I just attached a picture to the howto.

  8. #8
    Join Date
    Jan 2006
    Beans
    109
    Distro
    Ubuntu 6.10 Edgy

    Re: How-to Scrollwheel Effect on Logitech trackball (Marble Mouse)

    How it works on mine is you hold the left scroll button down, and then move the trackball around. It actually turns out to be extremely handy for sidescrolling in documents. Much easier than any other way I know of.

  9. #9
    Join Date
    Jan 2005
    Beans
    Hidden!

    Re: How-to Scrollwheel Effect on Logitech trackball (Marble Mouse)

    I always wanted to try a trackball and since my microsoft mouse broke (evil smile), I replaced it for this Logitech Marble.

    Thank you for setting up this How-to, I got it working wonderfully and with this scroll thing, now I feel reading documents is much better.

    Just to share my tweak, I set the wheel scroll button to number 3, yes the same as the right click, instead of number 8. It feels more natural to me. So far I didn't notice anything bad with that, since I don't drag and drop anything with the right button.

    Also, I set the middle button to be number 8, the small one on the left. Now I can open/close tabs and paste texts as in a traditional mouse. I did that through an xmodmap file:

    pointer = 1 8 3 4 5 6 7 2 9 10 11 12 13

    Good job, folks.

    incubus

  10. #10
    Join Date
    Aug 2005
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How-to Scrollwheel Effect on Logitech trackball (Marble Mouse)

    Okay I fixed it. Apparently the Howto was for PS/2 interface mice only. What I had to do was comment out the PS/2 configs and use USB Mouse as the InputDevice:
    This is for those of us who use USB and not PS/2 for Logitech Marble Mouse

    Add this to the top of you xorg.conf file:

    Code:
    InputDevice "USB Mouse" "CorePointer"
    Then add this section (it's exactly the same as Buffalo Soldier's Howto, except for the Identifier which is "USB Mouse" and CorePointer is defined above):

    Code:
    Section "InputDevice"
      Identifier "USB Mouse"
      Driver "mouse"
      Option "Device" 		"/dev/input/mice"
      Option "Protocol" 		"ExplorerPS/2"
      Option "Emulate3Buttons"	"true"
      Option "Buttons"		"9"
      Option "EmulateWheel"		"1"
      Option "EmulateWheelButton"	"8"
      Option "YAxisMapping"		"4 5" 
      Option "XAxisMapping"		"6 7" 
    EndSection
    If your trackball was detected as PS/2, make sure you comment it out. Then just restart X (CTRL+ALT+BACKSPACE)

    A big THANK YOU to Buffalo Soldier !!!

Page 1 of 8 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •