Skip to content

Instantly share code, notes, and snippets.

@fengkaijia
fengkaijia / xps-touchpad.sh
Last active July 26, 2017 08:31
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"