I am running Kubuntu on a Thinkpad L440. After sleep the mouse sometimes didn't work. Which could be fixed by adding
#!/bin/bash
[ "$1" = "post" ] && exec modprobe psmouse
[ "$1" = "pre" ] && exec rmmod psmouse
exit 0
to the file: /lib/systemd/system-sleep/fixtouchpad
as suggested here.
This works - but the custom settings for the touchpad are not used. I configured reverse scroll and two finger right click. In KDE's settings those are still correctly set. However I need to reapply them in order for it to work again.
Can this be automated? Or any other Ideas how to address this problem?