Ubuntu Change the ThinkPad Point

2019-02-22  本文已影响0人  煮酒客_Mikoy

For Change the ThinkPad Point Speed on Ubuntu16.04:

  1. Obtain the info of your ThinkPad Point.
# Get the ID of Point.
xinput list | grep TrackPoint
# Get more detail about this ID or Point. <ID> is up to upside.
xinput list-props <ID> # This ID is listing from your greping TrackPoint.
# Check the result and find out the following lines.
...
Device Accel Constant Deceleration (264): 1.000000 
Device Accel Adaptive Deceleration (265): 1.000000
...
# The first line Constant Deceleration range is [0, 1].
# The second line Adaptive Deceleration range is [1, +&].

# Please record the (ID) from this two line(eg: 264, 265). We call it parameter_ID.
  1. Change the speed what you need.
# This first <ID> from xinput list. The second <parameter_ID> from xinput list-props.
xinput set-prop <ID> <parameter_ID> 0.25

# If you wanna it effective rebooting. Change the bashrc file.
vim ~/.bashrc
# Append the command line at end and source it.
  1. Example:
# Get ID
$xinput list | grep TrackPoint
  TPPS/2 IBM TrackPoint    id=14    [slave  pointer  (2)]

# Get more detail.
$ xinput list-props 14
Device 'TPPS/2 IBM TrackPoint':
    Device Enabled (137):   1
    Coordinate Transformation Matrix (139): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (263): 0
    Device Accel Constant Deceleration (264):   1.000000
    Device Accel Adaptive Deceleration (265):   1.000000
    ...

# Change the speed.
$xinput set-prop 14 264 0.25

# Append command line of end of bashrc file.
vim ~/.bashrc

+    xinput set-prop 14 264 0.25
+    xinput set-prop 14 265 1.2

source ~/.bashrc
上一篇下一篇

猜你喜欢

热点阅读