![]() |
Solved Failure to Execute Method on System.Suspend? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174) +---- Thread: Solved Failure to Execute Method on System.Suspend? (/showthread.php?tid=366219) |
Failure to Execute Method on System.Suspend? - dalekman1234 - 2021-12-29 Greetings, I'm trying to remotely suspend or hibernate my system using the JSON-RPC API. When sending actions: System.Hibernate or System.Suspend, I get an error returned: Failed to execute method. I initially thought that the executing user don't have power access, but then I tried System.Reboot and System.Shutdown. Both of which worked just fine. I also added "<jsonrpc> <compactoutput>false</compactoutput> </jsonrpc>" to my advancedsettings.xml file, hoping that I would see more debug output. But neither the response or log (linked below) show any more helpful information. Is there something specific I need to enable to make System.Suspend and System.Hibernate work properly? Any advice or suggestions would be appreciated. Relevant Log Corresponding to System.Reboot request: https://paste.kodi.tv/liqehitovo.kodi JSON returned from request: https://paste.kodi.tv/oloyuruzen RE: Failure to Execute Method on System.Suspend? - DaVu - 2021-12-30 Do you really think that one-liner from the log is helpful to us? ![]() Don't you think it might be good to know which kind of "system" you are using? You should tell us more about your system or simply provide the full Debug Log. Could you also please check the following:
RE: Failure to Execute Method on System.Suspend? - dalekman1234 - 2021-12-30 Hi there! Sorry about the lack of information in the log, I parsed the log file from /storage/.kodi/temp/kodi.log but that was the only line that was relevant to the request. Everything thing else just related to playback and other assorted outputs. I'll be sure to post the full log next time. Regardless though, you are spot on with the lack of "hibernate" or "sleep" buttons. I'm assuming the distribution over Kodi (LibreELEC) doesn't allow that functionality. That is fine, I can live without that functionally. Thank you for your assistance! I will mark the post as solved. Failure to Execute Method on System.Suspend? - DarrenHill - 2021-12-30 Thread marked solved. RE: Failure to Execute Method on System.Suspend? - DaVu - 2021-12-31 Very true If we are talking about LibreELEC, Hibernate support seems to be removed https://github.com/LibreELEC/LibreELEC.tv/commit/4d479bc6a7a8719efbe7eddaea6dfcdab63f3234 And the reasoning still stands. Rebooting is faster than wake up from hibernate |