Marble Mouse scrolling on Ubuntu 9.04

I'm using the Marble mouse from Logitech. It has no ordinary scroll-wheel. Scrolling can be achieved by using the small left button together with the marble - I achieve this by modifying properties with xinput. This alternation is not stored, and you have to reapply the changes when you log in.

I have the following lines in a bash script (say MarbleScoll.sh):

  1. xinput set-button-map "Logitech USB Trackball" 1 8 3 4 5 6 7 2 9
  2. xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Button" 8 8
  3. xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 8 1
  4. xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation X Axis" 8 6

Note: On Ubuntu 8.x I did not have "Evdev" in the property names. But with Ubuntu 9.04 "Evdev" has to be added it seems.

Now run the script

  1. sh MarbleScroll.sh

and scrolling should work.

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".

More information about formatting options