Linux Lite Forums
ThinkPad E540 turn off TrackPad - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Hardware - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=6)
+--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=28)
+--- Thread: ThinkPad E540 turn off TrackPad (/showthread.php?tid=2569)



ThinkPad E540 turn off TrackPad - UltraCookie - 01-17-2016

Hi,

I have ThinkPad E540 and I'm getting more used to the TrackPoint but the E540 does not have separate mouse buttons and only the TrackPad for clicking so I can't deactivate it. I only want to use the TrackPad for clicking and maybe scrolling but not for moving the mouse. I tried turning the sensitivity all the way down but that does not seem to anything.

Thanks in advance for any help.


Re: ThinkPad E540 turn off TrackPad - avj - 01-18-2016

I was able to find one link that looks like it might work, but it will require someone more experienced with linux to tell you how to use it with your machine.

http://askubuntu.com/questions/578833/permanently-disable-trackpoint-in-lenovo-t440p-ubuntu-14-04

Hopefully, someone who knows the ins and outs of "xinput" will be able to help you find a configuration that will work for you, or be able to verify if this one will.  At the very least it is a place to start.  Smile


Re: ThinkPad E540 turn off TrackPad - avj - 01-18-2016

You should open a terminal and enter the following, and post it's output back here.

Code:
xinput --list

That should help identify which device you need to work with.


Re: ThinkPad E540 turn off TrackPad - UltraCookie - 01-18-2016

Thanks a lot avj!!

The solution in the link did not work for me since it focused on pressure sensitivity of the trackpad.
But xinput was the solution. I'm sure there is a better way to do this but for now I put the adaptive and constant deceleration options so high that no matter how much I move my finger on the trackpad the courser does not move and it doesn't interfere with the trackball. Clicking and two finger scrolling still works.

Total success so far!  ;D

I guess this thread can be marked as solved.  Wink


Re: ThinkPad E540 turn off TrackPad - avj - 01-18-2016

Glad it helped. Smile

If you have the time you should document how you fixed the issue, so that others can find it, or in case you need the information again.

To mark the thread as solved just edit the subject line on your first post.





Re: ThinkPad E540 turn off TrackPad - UltraCookie - 01-18-2016

Solution:

Props to avj the hint on xinput. Wink

Open a terminal by pressing [Ctrl+Alt+T].

To get a List of mouse and keybord devices do:

Code:
xinput --list

output:
Code:
⎡ Virtual core pointer                       id=2   [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                 id=4   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                 id=10   [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                      id=11   [slave  pointer  (2)]
⎣ Virtual core keyboard                      id=3   [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                id=5   [slave  keyboard (3)]
    ↳ Power Button                               id=6   [slave  keyboard (3)]
    ↳ Video Bus                                  id=7   [slave  keyboard (3)]
    ↳ Integrated Camera                          id=8   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard               id=9   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                     id=12   [slave  keyboard (3)]

Get the device ID of the device you want to edit. I want to edit the TouchPad properties so the ID is 10

To see the device properties do:

Code:
xinput list-props 10

This will give out a pretty long list of properties. We are interested in the deceleration of the courser. The properties controlling this are at top of the list and are called:

Code:
Device Accel Constant Deceleration (262):    2.5
Device Accel Adaptive Deceleration (263):    1

To stop the courser from moving when the Touchpad is used heavily increase these values (I put both to 1000, maybe less also works).

Code:
xinput --set-prop 10 "Device Accel Constant Deceleration" 1000
xinput --set-prop 10 "Device Accel Adaptive Deceleration" 1000

To make sure this gets done on every boot do:

Create an empty file called 'no_touchpad.sh'

Open it in a text editor of your liking and copy/paste this code into it:

Code:
#!/bin/bash

# For TouchPad to stop moving the courser

xinput --set-prop <your ID> "Device Accel Adaptive Deceleration" <your value>
xinput --set-prop <your ID> "Device Accel Constant Deceleration" <your value>

exit 0

Put the file in a directory of our liking and make it executable by doing:

Code:
sudo chmod ugo+x /your/directory/no_touchpad.sh

Go to the main menu and search for 'startup' and open 'Session and Startup'.
Add a new startup with the command:

Code:
bash /your/directory/no_touchpad.sh

If the changes where made and the touchpad can still move the courser you need to put the two values even higher or this solution does not work on your device.