Kodi Community Forum
Req Disable power options, only allow exit. - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9)
+--- Thread: Req Disable power options, only allow exit. (/showthread.php?tid=151278)



Disable power options, only allow exit. - burgerga - 2013-01-08

Since I use XBMC as normal application on my computer (meaning: not standalone) I would like to disable the power options like shutdown, reboot, suspend. Using the Confluence skin, I can that for instance the shutdown button is only displayed if System.canPowerDown=yes.
I guess this is determined when XBMC starts. Is it possible to implement an override so that the user can decide System.canPowerDown=no?


RE: Disable power options, only allow exit. - mad-max - 2013-01-08

Just edit ShutdownMenu in the xmls and delete the unwanted entries


RE: Disable power options, only allow exit. - burgerga - 2013-01-08

(2013-01-08, 14:25)mad-max Wrote: Just edit ShutdownMenu in the xmls and delete the unwanted entries

I assume you are referring to DialogButtonMenu.xml in the skin folder, however this still allows XBMC to shutdown by for example the web interface. It is also a rather hacky way of doing it, since with every update (I am on Linux) the skin folder will be overwritten and you have to do the proces again. I am looking for something more user friendly and permanent. For example a switch you can use when you're starting xbmc, like `xbmc -nopm` which should disable all power management options



RE: Disable power options, only allow exit. - steelhouse - 2015-03-08

We still have not an option to disable all PM from Kodi?

I don't want Kodi to be able to control the host operating system in any way


RE: Disable power options, only allow exit. - ihaar - 2017-02-11

We still have not an option to disable all PM from Kodi?

we still don't want Kodi to be able to control the host operating system in any way


RE: Disable power options, only allow exit. - zerocool_ie - 2017-02-15

IIRC, if you set the default shutdown action in the GUI to 'Exit', close Kodi, then copy the <shutdownstate> (?) tag from guisettings.xml to advancedsettings.xml, then it will remove the option of power down from the GUI and Kodi will only ever Exit and won't power off

(Not near a PC to confirm this, but I think that's how I did it before)