Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

You can configure it using xinput.

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/trackball.sh using this command:

gedit $HOME/bin/trackball.sh

Then paste this into the file:

#!/bin/bash
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 trackball.sh begins with #!/bin/bash. Make the script executable by running this:

chmod +x $HOME/bin/trackball.sh`

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
$HOME/bin/trackball.sh

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 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
add comment

1 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
add comment

Your Answer

 
discard

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.