Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message

(SOLVED) Scroll by middle click in Fedora20

Linux on ThinkPads
Post Reply
Message
Author
amirfoad
Posts: 2
Joined: Fri Aug 29, 2014 11:56 am
Location: Tehran, Iran

(SOLVED) Scroll by middle click in Fedora20

#1 Post by amirfoad » Sat Aug 30, 2014 7:40 am

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?
Last edited by amirfoad on Sun Sep 21, 2014 7:08 am, edited 1 time in total.

ilakast
Junior Member
Junior Member
Posts: 317
Joined: Tue Aug 21, 2012 6:42 pm
Location: North London, England

Re: Scroll by middle click in Fedora20

#2 Post by ilakast » Sat Sep 20, 2014 4:17 pm

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.
4:3 T61 SXGA+, R61i 4:3 15'', X41T

Saucey
Senior Member
Senior Member
Posts: 883
Joined: Tue Nov 06, 2012 9:22 pm
Location: San Diego, California
Contact:

Re: Scroll by middle click in Fedora20

#3 Post by Saucey » Sat Sep 20, 2014 5:02 pm

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... 8)
Hope it works.
Coffee, ThinkPads & Nikon Fan.

Current: PixelBook, Y50-70, T430
Collected: A31p, T43p, 2521
Past: W700ds, X1C3, 701C

GomJabbar
Moderator
Moderator
Posts: 9847
Joined: Tue Jun 07, 2005 6:57 am

Re: Scroll by middle click in Fedora20

#4 Post by GomJabbar » Sun Sep 21, 2014 2:23 am

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.
DKB

amirfoad
Posts: 2
Joined: Fri Aug 29, 2014 11:56 am
Location: Tehran, Iran

Re: Scroll by middle click in Fedora20

#5 Post by amirfoad » Sun Sep 21, 2014 7:06 am

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.

GomJabbar
Moderator
Moderator
Posts: 9847
Joined: Tue Jun 07, 2005 6:57 am

Re: (SOLVED) Scroll by middle click in Fedora20

#6 Post by GomJabbar » Mon Sep 22, 2014 7:12 am

Glad it worked for you! :D
DKB

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 8 guests