I recently bought a Logitech Trackman Marble. I found a way by using xinput to turn one of the keys into a scroll key. The script looks like:
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
When I run this script, the scroll function works for a while, but after some time it stops working and the buttons go back to their original functions.
Now the question is, how can I solve this problem?