Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

You can configure it using xinput.

share|improve this question
Welcome to askubuntu, please post your solution as a seperate answer (though I think the system makes you wait a day or so) – Jorge Castro Oct 14 '11 at 16:41
It only makes you wait a couple of days to accept your own answer. But you can post it anytime prior to that. – Brandon Bertelsen Oct 14 '11 at 16:49
I am not quite sure, what this script does. My Trackball seems to work fine without any prior configuration. However, I would like to increase the pointer sensitivity. How does your script help? – n3rd Dec 27 '11 at 12:42

This is always what I've done. it works a peach for every trackman I've ever used. It's the last, simplest step from the official ubuntu page.



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

chmod +x ~/

then, whenever you login (or in a startup script), bash ~/

Done. This tiny little scripts works much, much better than the official ~60mb windows installer IMHO :)

share|improve this answer

The way you're doing this isn't quite correct. .bashrc is executed when you start bash shell. Unless you're only using it from within a terminal emulator running within an X session, it will give you errors each time you log in or open a new terminal.

You may want to look at the solution I provided here

share|improve this answer

I tested this in 11.10 and it works very nicely. This selection is from "Ubuntuwiki"

Avoid using Hal for this release because it has known issues. Put the following into terminal, using gedit:

Edit $HOME/bin/ using this command:

gedit $HOME/bin/

Then paste this into the file:

dev="Logitech USB Trackball"
we="Evdev Wheel Emulation"
xinput set-int-prop "$dev" "$we Button" 8 8
xinput set-int-prop "$dev" "$we" 8 1

# xinput set-int-prop "$dev" "$we" 8 1
# xinput set-int-prop "$dev" "$we Button" 8 9
# xinput set-int-prop "$dev" "$we X Axis" 8 6 7
# xinput set-int-prop "$dev" "$we Y Axis" 8 4 5
# xinput set-int-prop "$dev" "Drag Lock Buttons" 8 8 

Make sure begins with #!/bin/bash. Make the script executable by running this:

chmod +x $HOME/bin/`

Add the following lines to $HOME/.bashrc, using gedit $HOME/.bashrc and put this in the file even if it is empty:

xmodmap $HOME/.Xmodmap > /dev/null 2>&1

Edit $HOME/.Xmodmap using: gedit $HOME/.Xmodmap

pointer = 1 8 3 4 5 6 7 9

Log out and back in and viola!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.