-
-
Save rekby/0f0859bca9c80d6b8fc52ec13b3b0772 to your computer and use it in GitHub Desktop.
#!/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! It works for me too.
Thanks!
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?
Thank you! This fixed it for me. I was also seeing journalctl eating up processor and it was causing my battery to drain quicker.