Linux InhibitIdleShutdown(true/false) via json - 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: Linux InhibitIdleShutdown(true/false) via json (/showthread.php?tid=218625) |
InhibitIdleShutdown(true/false) via json - bigfoost - 2015-02-16 Hi, is there a way to control this switch on helix 14.0 via the json-API or a simple shell-script? To the explanation: Kodi runs as in its own XServer with all required privileges to poweroff etc. on idle state. So it power offs the system if it is in idle for a specific time (I sleep on my couch by bad television . But I don´t sleep ever, for instance from within Kodi I start a separate XServer on the next free display for hosting YouTube Leanback via google-chrome, watch videos there and so on. But now the Kodi stops everything from the Kodi-XServer and poweroffs the system because there isn´t no activity on the old Kodi-XServer. So I want to control the Settings > System > Power Manangement > Power off the system in ... minutes setting by an external possibility. Thanks for reply. bigfoost RE: InhibitIdleShutdown(true/false) via json - wsnipex - 2015-02-17 yes, see http://kodi.wiki/view/List_of_built-in_functions you can call builtins via json, event-client(e.g. xbmcsend), addons... RE: InhibitIdleShutdown(true/false) via json - bigfoost - 2015-02-17 Hi wsnipex, thanks for reply. Ok, fine. I don´t know the program Code: xmbc-send. Now I can exactly do call it via shell-script, without turning on the webserver. Fine, perfectly . RE: InhibitIdleShutdown(true/false) via json - htpcero - 2015-07-18 (2015-02-17, 09:49)wsnipex Wrote: yes, see http://kodi.wiki/view/List_of_built-in_functions I noticed that for some reason in the current JSON API: http://kodi.wiki/view/JSON-RPC_API/v6 There is NO WAY to call the following built-in function: InhibitIdleShutdown (function documented here: http://kodi.wiki/view/List_of_built-in_functions) I am trying to use JSON to activate the Inhibit remotely but thre doesn't seem to be a way - it is simply lacking in the JSON API - apparently. Could this be a bug? |