On 28/12/2023 03:54, Valerio Vanni wrote:
-close kaffeine -rmmod cx23885 -modprobe cx23885 -open kaffeine This happens suspending with pm-suspend.Using systemctl, kernel module is broken after every suspend, even if kaffeine is not running.
I have never tried to tune suspend systemd settings, but I would try to create a single-shot service with "ExecStart=rmmod cx23885" that is "WantedBy" and "Before" suspend.target. Perhaps it is possible to find more details related to suspend.target and hibernate.target.