Created
December 3, 2018 07:57
-
-
Save rekby/0f0859bca9c80d6b8fc52ec13b3b0772 to your computer and use it in GitHub Desktop.
This file contains 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/bash | |
# Workaround for https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1784152 | |
# Copy the script to /lib/systemd/system-sleep/reload-dell-touchpad.sh | |
SUSPEND_MODULES="i2c_hid" | |
case $1 in | |
pre) | |
for mod in $SUSPEND_MODULES; do | |
rmmod $mod | |
done | |
;; | |
post) | |
for mod in $SUSPEND_MODULES; do | |
modprobe $mod | |
done | |
;; | |
reload) | |
for mod in $SUSPEND_MODULES; do | |
rmmod $mod | |
modprobe $mod | |
done | |
;; | |
esac |
Thanks a lot. This is probably applicable for non-Dell laptops too, at least those with so-called "precision touchpad".
On that note, rename your file to "reload-touchpad" 😆
Good deal, I've done something very similar, but was just reloading it on post, might be all the same but i like your approach better.
The ability to reprobe i2c-hid is broken in 4.20, but a fix was accepted into 5.1.
You can also apply this patch to fix issue all together if you're building your own kernel:
https://lore.kernel.org/lkml/[email protected]/raw
@jbroadus Thank you very much for your patches. Is
https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git/commit/?h=i2c/for-next&id=93b6604c5a669d84e45fe5129294875bf82eb1ff
the fix accepted into 5.1?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!