You are not logged in.

#1 2016-06-11 03:37:18

gkun
Member
Registered: 2016-06-11
Posts: 98

[SOLVED]Problem with disabling natural scrolling

Good morning to everyone,

I noticed that after upgrading some packages with Pacman Natural scrolling is suddenly enabled. I checked the settings in my desktop environment and it seems to be disabled (I use Gnome). However when I run:

xinput list-props 9

output includes


libinput Natural Scrolling Enabled (293):	1

Now, this is an unexpected change of defaults somewhere (I would like to know how this happened, but ok). Anyway, I don't really like natural scrolling, so I immediately disabled it.
If I run this command from terminal:

xinput set-prop "ImPS/2 BYD TouchPad" "libinput Natural Scrolling Enabled" 0 

the problem is corrected.

Anyway, I am really having problems making this command persistent. After reading Arch wiki I decided to add the command line to xinitrc:

!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap

fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

xinput set-prop "ImPS/2 BYD TouchPad" "libinput Natural Scrolling Enabled" 0 
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

but this seems to be ignored. Did I make any particular mistake or is there some gnome way to do this?

Last edited by gkun (2016-06-11 11:15:53)

Offline

#2 2016-06-11 03:52:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]Problem with disabling natural scrolling

Gnome doesn't read ~/.xinitrc

The wiki page will have the details, but from memory it reads ~/.xsession. Check to be sure.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-06-11 04:45:47

gkun
Member
Registered: 2016-06-11
Posts: 98

Re: [SOLVED]Problem with disabling natural scrolling

Ok, thank you for the hint. Gnome does not indeed read xinitrc and it tends to ignore settings applied with any other scripts. The Arch wiki specific about Gnome pointed me to gsettings commands, which lead me to this:

https://forums.opensuse.org/showthread. … -scrolling

which is exactly my problem.

I solved this with

gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false

Last edited by gkun (2016-06-11 04:50:08)

Offline

#4 2016-06-11 10:36:15

alex.theoto
Member
From: Athens Greece
Registered: 2014-11-30
Posts: 307

Re: [SOLVED]Problem with disabling natural scrolling

Please mark your thread as [SOLVED]

Offline

Board footer

Powered by FluxBB