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.

KDE has the option to "Reverse scroll direction", which is great when I'm using my TouchPad, however, I equally use a mouse quite often on my laptop but when it comes to a mouse, I prefer the normal scrolling. Is this possible at all? If not, where do I start if I want to implement this myself?

share|improve this question

2 Answers 2

up vote 3 down vote accepted
+50

You can use xinput In terminal, type

xinput --list

to find which device you want to change, for example:

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Primax Kensington Eagle Trackball         id=11   [slave  pointer  (2)]
⎜   ↳ Atmel Atmel maXTouch Digitizer            id=12   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=15   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Sony Vaio Keys                            id=8    [slave  keyboard (3)]
    ↳ Video Bus                                 id=9    [slave  keyboard (3)]
    ↳ Power Button                              id=10   [slave  keyboard (3)]
    ↳ Front Camera                              id=13   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]

if you want change the scroll behavior(Trackball for me here), then type

xinput --set-button-map 11 1 2 3 5 4

or

xinput --set-button-map 'Primax Kensington Eagle Trackball' 1 2 3 5 4

here 1/2/3 mean l/m/r button, and 4/5 mean wheel up/down. And 11 is the id for this device.

share|improve this answer
    
Thank you very much! This worked for me :) I've given the bounty to you. Do you know of any 'proper' way of persisting this on restart? Or does xinput automatically persist on restart? –  Hosh Sadiq Feb 11 at 22:31
1  
This page descripts several way of autostarting. If you are using X11, appending this command to ~/.xprofile or ~/.xinitrc works fine. –  House Zet Feb 11 at 23:35
    
To inverse horizontal scrolling add 7 6 too: in my case( synaptics touchpad): xinput --set-button-map 'SynPS/2 Synaptics TouchPad' 1 2 3 5 4 7 6 –  João Melo Jun 17 at 18:10

This answer involving changes to Synaptics trackpad configuration via synclient (immediate, but not persistent) or xorg.conf.d/50-synaptics.conf (persistent, but only takes effect after restart) are described in terms of GNOME rather than KDE, but will work equally well in either environment.

By changing the trackpad VertScrollDelta you reverse the change there, but not for actual mouse scroll wheels. @House Zet's answer will also work, and allows you to change the direction for arbitrary input devices, but modifying the trackpad configuration is a bit simpler and will do what you (and many others) want, which is to reverse directions for trackpad but not other devices.

share|improve this answer
    
Thanks Alex, what @HouseZet said is exactly what I was looking for. –  Hosh Sadiq Feb 11 at 22:29

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.