Last active
January 22, 2019 20:50
-
-
Save felixkrohn/03a5bc1b33ddc82e8ca090d7685d0198 to your computer and use it in GitHub Desktop.
/etc/pm/sleep.d/11_i2c_hid for pm-suspend on Dell Latitude 7480
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# this script takes care of removing the i2c_hid kernel module (touchpad driver) before suspending, | |
# and loading it again after resuming. | |
# This avoids spurious messages issued by the driver that interrupt the suspend process: | |
# i2c_hid i2c-DLL07A0:01: i2c_hid_get_input: incomplete report (83/2) | |
# HowTo: copy it for example to /etc/pm/sleep.d/11_i2c_hid, then run chmod +x /etc/pm/sleep.d/11_i2c_hid | |
case "${1}" in | |
sleep|suspend|hibernate) | |
rmmod i2c_hid | |
sleep 1 | |
;; | |
resume|thaw) | |
modprobe i2c_hid | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment