Giter Site home page Giter Site logo

faf0 / thinkpad-scripts Goto Github PK

View Code? Open in Web Editor NEW
62.0 8.0 10.0 61 KB

Scripts for fixing TrackPointers and touchpads under Ubuntu 14.04 and 16.04 or similar distributions on Lenovo ThinkPads (tested on X1 Carbon 2nd Generation and reported to work on X240)

Shell 100.00%

thinkpad-scripts's Introduction

About

Scripts for Ubuntu 14.04 and 16.04 (or similar distributions) on Lenovo ThinkPads (tested on X1 Carbon 2nd Generation and reported to work on X240).

Script Descriptions

Touchpad Scripts

The touchpad scripts allow for emulating three trackpad buttons which do not exist on many 2014 series ThinkPads (see http://askubuntu.com/q/443642 for pictures). Moreover, the touchpad scripts disable movements for part of the touchpad (only possible with trackpad-fix.sh) or the complete touchpad (possible with trackpad-fix.sh or libinput-disable-touchpad-movements.sh) to prevent accidental pointer movements. Disabling the touchpad mouse pointer is useful if the TrackPoint is supposed to be the only mouse pointer device.

  • On Ubuntu 14.04, run cd 14.04/ && ./trackpad-fix.sh.
  • On Ubuntu 16.04, please install the package xserver-xorg-input-libinput and then execute cd 16.04/ && ./libinput-disable-touchpad-movements.sh. Script libinput-disable-touchpad-movements.sh will fetch the sources of libinput, patch them, build a .deb package, and install it. Make sure to have the Ubuntu source repositories enabled. The script will also install some packages that are needed to build the package from source. If the script fails due to a missing package dependency, install the dependency, remove the folder tmp-libinput, and run libinput-disable-touchpad-movements.sh again.

TrackPoint Acceleration

To accelerate your TrackPoint, consider calling one of the following scripts from ~/.xprofile.

  • 14.04/trackpoint-fast.sh: For Ubuntu 14.04.
  • 16.04/trackpoint-fast-libinput.sh: For Ubuntu 16.04. Please install the package xserver-xorg-input-libinput.

Uninstallation

  • Ubuntu 14.04: To replace the patched touchpad driver with the original Ubuntu version, run the following commands:
sudo apt-get install xserver-xorg-input-synaptics
sudo apt-get install --reinstall xserver-xorg-input-evdev
sudo rm /etc/X11/xorg.conf.d/90-evdev-trackpoint.conf
  • Ubuntu 16.04: To replace the patched touchpad driver with the original Ubuntu version, run sudo apt-get install --reinstall libinput10.
  • Ubuntu 14.04 and Ubuntu 16.04: Remove the calls of the TrackPoint acceleration scripts from ~/.xprofile.

thinkpad-scripts's People

Contributors

anatoly108 avatar faf0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

thinkpad-scripts's Issues

build log [FAIL]

Hi,
came across your repo as im trying to figure if my touchpad is just broken or not working on a Lenovo x240 with ubuntu 16.04 and 4.4.0-67-generic kernel.

Heres the build log:
https://hastebin.com/ecixeturap.bash

Will receive a new touchpad within the next days, will report back.

Ubuntu 18.04 support

I am currently experiencing touchpad not working issues on Lenovo E560 fresh installing 18.04.
Wondering if you think the 16.04 scripts should work on 18.04 or they need updates first?

Thank you,
Cillian

Patch worked fine for a while, is now spotty.

I installed it a few days ago. It was great for a few days but it's been stopping working randomly, so I'm left with no scroll, or with all my clicks being read as middle clicks, or no right mouse button. I'm not sure what information I can offer to be helpful other than I'm on an X240, running Ubuntu 16.04, and I ran the libinput-disable-touchpad-movements.sh script. Whatever information you need to know, just ask and I'll try to get it for you :)

No 3 button emulation

Thanks for this!

For some reason the 3 button emulation is not working. The trackpad is disabled but I only have left-click abilities (anywhere on the trackpad). Do you know if this should work for a Thinkpad Yoga 12 running Ubuntu 14.04 with a low-latency kernel (although I'm pretty sure I tried this sorta thing before without a low latency kernel and that still did not work).

Any tips on where to look?

Re-enable touchpad movement

The script to disable the touchscreen movement for Ubuntu 16.04 works perfect. After a few days, I wanted to re-enable it, but i did not manage to do it. Could you add a script, that reverses the disable script?

what's next after installing the .deb?

Hi,

so after I enabled the source repos I could successfully build the *.deb files. However, what installing them what should be the next step? Installing the debian files has no effect on my computer.

clearsign failed: No secret key

Hello,

Im getting this error message when running ./libinput-disable-touchpad-movements.sh.

dpkg-source: info: unapplying touchpad-add-a-middle-button-software-area.diff
dpkg-source: info: unapplying fix-premature-flushing-of-evdev-event-on-mx4.patch
dpkg-source: info: unapplying touch-point-orientation-size.patch
dpkg-buildpackage: binary and diff upload (original source NOT included)
 signfile libinput_1.2.3-1ubuntu1.dsc
gpg: skipped "Timo Aaltonen <[email protected]>": No secret key
gpg: dpkg-sign.98edUNnC/libinput_1.2.3-1ubuntu1.dsc: clearsign failed: No secret key

libinput vs synaptics and evdev in ubuntu 18.04 (and derivatives)

[I recognize this is a out of place, sorry about that in advance, but couldn't find anything about this anywhere on the internet:]

IMO, in 18.04, libinput works better than synaptics and evdev (comparing unpatched versions), and mouse dynamics is quite improved wrt my previous experience with patched evdev in 16.04.

However, I couldn't find a way to disable touchpad while keeping trackpoint tapping enabled (not strange as it comes from the same hardware, and the reason a patch would be needed), neither a way to disable the touchpad motion entirely (only possible when typing; this is a libinput limitation).

It would be awesome if somebdy could find the way to patch libinput so touchpad could be disabled without affecting the trackpoint buttons.

Ubuntu 16.04 compability

Hi,

i recently got a Thinkpad X240 and installed (X)Ubuntu 16.04 on it. I also installed xserver-xorg-input-libinput so that i can use middle mouse scrolling with trackpoint, but now i cannot disable the touchpad without losing the trackpoint-"keys".

So do you think there is a way to make your script compatible to 16.04?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.