Il 25/12/2023 04:25, Valerio Vanni ha scritto:
Is there any way to change the way system is suspended from kde menu and
from power saving in kde settings?
I mean changing the command issued.
I don't know exactly what the default command is, probably systemctl.
/usr/sbin/pm-suspend works better with kernel modules, and I'd like to
use that
It seems that kde uses "systemctl suspend": if I use it from shell,
result is bad as if I suspend from menu.
The defective kernel module cx23885: it doesn't support suspend and resume.
It's a module for a DVB-T PCIe card.
If I'm using kaffeine to watch DVB-T channels, I have to close it before
suspending.
If I leave it opened, kernel module comes up in a broken state.
Closing and opening again kaffeine doesn't help, I have to
-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.