Page 1 of 1
(SOLVED) Scroll by middle click in Fedora20
Posted: Sat Aug 30, 2014 7:40 am
by amirfoad
Hi!
I have recently switched from Ubuntu to Fedora20
Everything is good, but the only problem is scrolling by middle click which is not working.
I searched the web and in
http://www.thinkwiki.org/wiki/How_to_co ... TrackPoint I found the way Configuration using xinput works well for me.
I used These commands:
To enable vertical scrolling:
Code: Select all
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
To enable horizontal scrolling in addition to vertical scrolling :
Code: Select all
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5
These codes works well for me.
The only problem I have is that after rebooting the problem still exists and scroll doesn't work!
How can I fix this problem?
Re: Scroll by middle click in Fedora20
Posted: Sat Sep 20, 2014 4:17 pm
by ilakast
In the same page you linked:
Note that these changes are not saved when the xserver is restarted. However, you can add the lines e.g. in your .xsessionrc (depends on your distribution) so they are executed every time X starts.
I'm not familiar with Fedora, so someone else might chip in.
Re: Scroll by middle click in Fedora20
Posted: Sat Sep 20, 2014 5:02 pm
by Saucey
Dunno if Fedora is debian based, but I had an X300 and T30 that didn't have a working middle click with a fresh install of CrunchBang Waldorf.
That code is similar to the one I used, so maybe this reply will work.
I found different sites, but
this guide worked well.
I can also do this automatically on start-up by having the same lines in ~/.xsessionrc (create this file if it does not already exist):
Code: Select all
#!/bin/bash
# extract device id
s=`xinput | grep TrackPoint`
s="${s#*id=}"
id=${s:0:2}
xinput --set-prop --type=int --format=8 "$id" "Evdev Wheel Emulation" 1
xinput --set-prop --type=int --format=8 "$id" "Evdev Wheel Emulation Button" 2
xinput --set-prop --type=int --format=8 "$id" "Evdev Wheel Emulation Axes" 6 7 4 5
$id was '13' for their laptop, the X300 was '12' iirc, I forget what the T30's value was...
Hope it works.
Re: Scroll by middle click in Fedora20
Posted: Sun Sep 21, 2014 2:23 am
by GomJabbar
Try this.
Create the following file as root:
Code: Select all
/etc/X11/xorg.conf.d/20-thinkpad-trackpoint.conf
Put the following content in that file:
Code: Select all
Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection
Reboot or logout/login for changes to take effect.
Re: Scroll by middle click in Fedora20
Posted: Sun Sep 21, 2014 7:06 am
by amirfoad
GomJabbar wrote:Try this.
Create the following file as root:
Code: Select all
/etc/X11/xorg.conf.d/20-thinkpad-trackpoint.conf
Put the following content in that file:
Code: Select all
Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection
Reboot or logout/login for changes to take effect.
Yes... It worked.
Thank you so much.
Re: (SOLVED) Scroll by middle click in Fedora20
Posted: Mon Sep 22, 2014 7:12 am
by GomJabbar
Glad it worked for you!
