Linux InhibitIdleShutdown(true/false) via json
#1
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 Smile. 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
Reply
#2
yes, see http://kodi.wiki/view/List_of_built-in_functions

you can call builtins via json, event-client(e.g. xbmcsend), addons...
Reply
#3
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 Blush.
Reply
#4
(2015-02-17, 09:49)wsnipex Wrote: yes, see http://kodi.wiki/view/List_of_built-in_functions

you can call builtins via json, event-client(e.g. xbmcsend), addons...


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?
Reply

Logout Mark Read Team Forum Stats Members Help
InhibitIdleShutdown(true/false) via json0