Customize shutdown function for suspend problems - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: Customize shutdown function for suspend problems (/showthread.php?tid=238290) |
Customize shutdown function for suspend problems - 26196008 - 2015-09-09 Hi all, I'm running Kodi 15.1 on Ubuntu 15.04. As PVR-Server I'm using DVBLink with a Cine S2. As shutdown-function I have selected "suspend" in the Kodi settings. Now I have the Problem, that my custom suspend/resume script in the director /lib/systemd/system-sleep/ don't work like a similar script in ubuntu 14.04 in the directory /etc/pm/sleep.d/. If I use "pm-suspend" on the console like the standard in ubuntu 14.04, kodi suspend and resume perfect. The skipt in /etc/pm/sleep.d/ will unload my CineS2 driver and shutdown DVBLink on suspend and loads the driver and start DVBLink again on resume. If I use "systemctl suspend" on the console like the standard in ubuntu 15.04, kodi can't play TV after resume, because there are problems with unloading/loading driver while playing TV and problems with the start of DVBLink. As a workaround I would like to execute pm-suspend instead of "systemctl suspend" when the shutdown-function is executed. Is there a way to change the behavior? Thanks in advance for your help. Best Regards, Marc RE: Customize shutdown function for suspend problems - fritsch - 2015-09-09 Quote:Now I have the Problem, that my custom suspend/resume script in the director /lib/systemd/system-sleep/ don't work like a similar script in ubuntu 14.04 in the directory /etc/pm/sleep.d/. Can you post this script? It should work there. RE: Customize shutdown function for suspend problems - fritsch - 2015-09-09 E.g.: Something in /usr/lib/systemd/system-sleep/remove-whatever.sh Code: #!/bin/bash RE: Customize shutdown function for suspend problems - 26196008 - 2015-09-09 Hi! This is my script: Code: #!/bin/bash Directory /usr/lib/systemd/system-sleep/ doesn't exist RE: Customize shutdown function for suspend problems - fritsch - 2015-09-09 Make worth to ask on the systemd mailing list. RE: Customize shutdown function for suspend problems - 26196008 - 2015-09-09 Is it possible as a workaround to execute pm-suspend instead of "systemctl suspend" when the shutdown-function is executed. RE: Customize shutdown function for suspend problems - fritsch - 2015-09-09 nope. |