Skip to content

Instantly share code, notes, and snippets.

@emesik
Created October 22, 2017 13:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emesik/d01679052ef3aeb83ebe87f46d223b12 to your computer and use it in GitHub Desktop.
Save emesik/d01679052ef3aeb83ebe87f46d223b12 to your computer and use it in GitHub Desktop.
Service file which reloads wacom module on suspend/resume. Makes touchscreen work. Arch Linux / Lenovo ThinkPad Yoga S3
[Unit]
Description=Reload wacom module (touchscreen)
After=suspend.target
[Service]
User=root
Type=oneshot
ExecStart=/usr/bin/rmmod wacom
ExecStop=/usr/bin/modprobe wacom
TimeoutSec=0
StandardOutput=syslog
[Install]
WantedBy=suspend.target
@emesik
Copy link
Author

emesik commented Oct 22, 2017

  1. Drop this file to /etc/systemd/system
  2. Run systemctl enable resume-wacom-reload.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment