Enable the ThinkPad red dot scroll function in Ubuntu
Zhou yinhui
In ubuntu, the middle-key scrolling function of the red dot is gone, and it is not used to it. We will start it below,
1. One-time change (it will be invalid after restart)
Save the following script as a sh file, such as trackpoint. Sh.
# ! /Bin/sh
Xinput list | Sed -Ne 'S / ^ [^] [^ V]. * ID = \([ 0 - 9 ] * \). */ \ 1 / P' | While Read ID
Do
Case 'xinput list - Props $ ID ' In
* " Middle button emulation " * )
Xinput set - Int - Prop $ ID " Evdev wheel emulation " 8 1
Xinput set - Int - Prop $ ID " Evdev wheel emulation button " 8 2
Xinput set - Int - Prop $ ID " Evdev wheel emulation timeout " 8 200
Xinput set - Int - Prop $ ID " Evdev wheel emulation Axes " 8 6 7 4 5
Xinput set - Int - Prop $ ID " Evdev middle button emulation " 8 0
;;
Esac
Done
#Disable middle button
Xmodmap-E"Pointer = 1 9 3 4 5 6 7 8 2"
Then, change the file property to executable.
Chmod + x trackpoint. Sh
Then execute
./Trackpoint. Sh
2. Permanent modification:
Create the following file (if it does not exist ):
/Usr/lib/X11/Xorg. conf. d/20-thinkpad.conf
Add the following content to the file:
Section " Inputclass "
Identifier " Trackpoint wheel emulation "
Matchproduct " Trackpoint "
Matchdevicepath " /Dev/input/event * "
Driver " Evdev "
Option " Emulatewheel " " True "
Option " Emulatewheelbutton " " 2 "
Option " Emulate3buttons " " False "
Option " Xaxismapping " " 6 7 "
Option " Yaxismapping " " 4 5 "
Endsection
Save and restart ....