No touchpad on resume from RAM

Hi,
I’ve an HP EliteBook 830 G6 with Tumbleweed installed and I’ve an issue with touchpad : it does not work after resume from suspend to RAM.
According to this site : https://askubuntu.com/questions/671910/touchpad-not-working-after-suspending-laptop I’ve found that running as root


rmmod i2c_hid
modprobe i2c_hid

makes touchpad working.
Now I’m trying to make this solution working for every user (in automatic).
I’ve followed the suggestion in the above link but it doesn’t work.
I’ve created (and made it executable) a file in /lib/systemd/system-sleep/touchpad


#!/bin/sh case $1 in
  post)
    /usr/sbin/rmmod i2c_hid && /usr/sbin/modprobe i2c_hid 
  ;;
esac

and this script works if manually invoked by root (./touchpad post).
I also think the ‘post’ parameter is superfluous and I can delete it from the script (maybe it’s necessary for Ubuntu but I really don’t know).
So the problem is to run the script without user’s interaction (each user not only root) …

The answers in this thread may be of value to you…
https://unix.stackexchange.com/questions/469499/touchpad-not-working-after-hibernate

One approach is using a custom service (/etc/systemd/system/root-resume.service) like this

[Unit]
Description=(un)load module i2c_hid when going to/from sleep
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=modprobe -r i2c_hid
ExecStop=modprobe i2c_hid

[Install]
WantedBy=sleep.target

Don’t forget to enable and start it.

Cosa posso aggiungere Dino? Funziona perfettamente. Grazie, grazie, grazie.

Your nick suggest to me you could have italian origin and you could understand what I’ve written in the above row.
If not this is the same in english :
What can I add Deano? It works perfectly. Thanks … many many many times.

No, not italian (just a nick name), but glad to have been of assistance. Ciao.