I use a MS keyboard on my Debian machine. The problem is that MS does not ship configuration software for us and touchpad's default scrolling directions are reversed (it uses natural scrolling).I wonder if it's possible to tweak the input from the particular input device somehow so it behaves normally. I.e. I would like to replace scroll-up and scroll-down commands.
Is it possible to tweak input from touchpad?
x11;touchpad;scrolling;xinput
After a kind pointing by @Gilles to xinput I was able to swap scroll directions by using the set-button-map command.First you should lookup the device id or name using the list command and then remap scroll wheel buttons like this xinput set-button-map id 1 2 3 5 4 7 6.Published a small script which does this automatically.