External keyboard/mouse natural scrolling - Ask Ubuntu


i new ubuntu. purchased jelly comb keyboard/touchpad (model: wgjp-110) use computer. have found settings changing scroll direction on laptop (acer travelmate), can't figure out how reverse scroll direction on external touchpad.

if using 1 of latest ubuntu releases uses libinput, should able disable using xinput.

try running these commands in terminal:

  1. xinput list

    this give list of devices connected. find 1 need change settings on , note id number.

  2. xinput list-props id

    replace id id of device. command give list of device's options. find option "natural scrolling enabled" , see if has 0 or 1 value. 1 means active, 0 means inactive. need revert it, i.e. set 0 if natural scrolling activated.

  3. xinput --set-prop id 'libinput natural scrolling enabled' 0

    this disable natural scrolling on device. remember id in example should replaced id of device.

if solution works you, can make permanent adding /usr/share/x11/xorg.conf.d/40-libinput.conf file. open file in preferred text editor, root privileges. e.g, run:

sudo nano /usr/share/x11/xorg.conf.d/40-libinput.conf 

you should find content this:

section "inputclass"         identifier "libinput pointer catchall"         matchispointer "on"         matchdevicepath "/dev/input/event*"         driver "libinput" endsection  section "inputclass"         identifier "libinput keyboard catchall"         matchiskeyboard "on"         matchdevicepath "/dev/input/event*"         driver "libinput" endsection  section "inputclass"         identifier "libinput touchpad catchall"         matchistouchpad "on"         matchdevicepath "/dev/input/event*"         driver "libinput" endsection 

the section pointer in identifier mouse, section keyboard keyboard, section touchpad touchpad.

to make set natural scrolling off default add line option used in xinput command after "driver" line, in case option "naturalscrolling" "off", this:

section "inputclass"         identifier "libinput pointer catchall"         matchispointer "on"         matchdevicepath "/dev/input/event*"         driver "libinput"         option "naturalscrolling" "off" endsection  section "inputclass"         identifier "libinput keyboard catchall"         matchiskeyboard "on"         matchdevicepath "/dev/input/event*"         driver "libinput"         option "naturalscrolling" "off" endsection  section "inputclass"         identifier "libinput touchpad catchall"         matchistouchpad "on"         matchdevicepath "/dev/input/event*"         driver "libinput"         option "naturalscrolling" "off" endsection 

you can learn other possible solutions , options here: libinput - arch linux wiki

i not know drawbacks directly editing existing config file, if worried, might go creating custom .conf file next "40-libinput.conf". link above should have info need that.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -