Skip to content

Instantly share code, notes, and snippets.

@fengkaijia
Last active July 26, 2017 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fengkaijia/f8267c3c5f9a9bdc1d03fba49c6d9afd to your computer and use it in GitHub Desktop.
Save fengkaijia/f8267c3c5f9a9bdc1d03fba49c6d9afd to your computer and use it in GitHub Desktop.
Reactive XPS Touchpad in Linux (call as hotkey when the touchpad freezes)
#!/bin/bash
# Reactivate XPS 13 9343/9350/9360 Touchpad
# Author: Kaijia Feng <feng@kaijia.me>
# Tutorial (written in Chinese): https://www.kaijia.me/2017/07/linux-reactivate-touchpad-to-solve-freeze-issue/
# Reference: http://en.community.dell.com/techcenter/os-applications/f/4613/t/19997690
id=$(xinput --list | grep -o -P 'DLL([A-Fa-f0-9]|\:|\s)*Touchpad')
xinput disable "$id"
xinput enable "$id"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment