This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
thinkpad_trackpoint_settings [2020/05/24 14:15] hankwang better script |
thinkpad_trackpoint_settings [2020/12/06 15:52] (current) hankwang Avoid using ID number |
||
---|---|---|---|
Line 7: | Line 7: | ||
TPPS/2 Elan TrackPoint id=12 | TPPS/2 Elan TrackPoint id=12 | ||
- | Note id=12 (may be different on your laptop). | + | Then, use the above string identifier: |
- | $ xinput --list-props 12 | + | $ xinput --list-props 'TPPS/2 Elan TrackPoint' |
... | ... | ||
libinput Accel Speed (300): 0.000000 | libinput Accel Speed (300): 0.000000 | ||
libinput Accel Speed Default (301): 0.000000 | libinput Accel Speed Default (301): 0.000000 | ||
... | ... | ||
+ | |||
Experiment with the Speed setting; negative values allowed. For example, | Experiment with the Speed setting; negative values allowed. For example, | ||
- | $ xinput --set-prop 12 'libinput Accel Speed' -0.25 | + | $ xinput --set-prop 'TPPS/2 Elan TrackPoint' 'libinput Accel Speed' -0.25 |
+ | |||
+ | (Instead of the string 'TPPS/2 Elan TrackPoint', you can use the id number '12', but this value may vary if you have an external keyboard or mouse plugged in at login time.) | ||
- | Once you're satisfied, add the command as a startup application (typically under Start menu > Preferences > Startup). Note that the id numbering may change if you have an external mouse plugged in at login time. The following command is more reliable: | ||
- | xinput --set-prop $( xinput | perl -ne '/TrackPoint.*id=(\d+)/ && print $1;' ) 'libinput Accel Speed' -0.25 | ||