Feature Request - Disable power options, only allow exit.

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
burgerga Offline
Junior Member
Posts: 9
Joined: Jan 2013
Reputation: 0
Post: #1
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?
find quote
mad-max Offline
Posting Freak
Posts: 1,513
Joined: Jul 2010
Reputation: 59
Location: Germany
Post: #2
Just edit ShutdownMenu in the xmls and delete the unwanted entries

[Image: obi3o55x.jpg]

- - - Tribute to Metallica - - -

If I managed to help you, please click my reputation
find quote
burgerga Offline
Junior Member
Posts: 9
Joined: Jan 2013
Reputation: 0
Post: #3
(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
(This post was last modified: 2013-01-08 14:40 by burgerga.)
find quote
steelhouse Offline
Junior Member
Posts: 27
Joined: Oct 2014
Reputation: 0
Post: #4
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
find quote
ihaar Offline
Junior Member
Posts: 11
Joined: Aug 2010
Reputation: 0
Post: #5
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
find quote
zerocool_ie Online
Fan
Posts: 493
Joined: Jun 2012
Reputation: 15
Location: Ireland
Post: #6
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)

2x R-Pi3 LibreELEC v7.95.3 BETA | Transparency! | Flirc case | RetroPie dual-boot
Storage Synology DS411 | 4 x WD RED 6TB
Software MariaDB 10.1.13 | Belvedere | Filebot | Ember Media Manager
wiki (wiki) | First time user (wiki) | Debug_Log (wiki) | mysql (wiki) | artwork (wiki)
find quote