Thank you for your donation


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prevent system shutdown with Kodi
20th Feb, 2015, 08:00 AM
Post: #1
Prevent system shutdown with Kodi
It appears that we formerly had the ability to change the behavior of XBMC/Kodi when a user selected the "Power off" function. As I understood it, this would control the behavior of Kodi whether the user selected the "Power off" from the Kodi interface, from the remote, or via other RPCs.

Naturally, running on the Pi, having "suspend" or "hibernate" options didn't make much sense, and actually caused problems, so the team removed them.

But, I want to be able to configure my Kodi system in such a way that the "Power off" command either does nothing or simply exits the Kodi application, rather than effects any system-wide change. Reading the Kodi docs, I can change this in the "System > Power saving" section of the Kodi Settings. But, on my system, I cannot change this setting, even if I set the "Shutdown function timer" setting first.

I tried setting the shutdownstate node value in the powermanagement section of the guisettings.xml (~/.kodi/userdata/guisettings.xml) file:
Code:
<powermanagement>
    <shutdownstate>0</shutdownstate>
</powermanagement>

But, no value I set here affected the setting in the Kodi interface. How do I change this behavior of Kodi?
Find all posts by this user
Quote this message in a reply
21st Feb, 2015, 02:55 AM
Post: #2
RE: Prevent system shutdown with Kodi
Can you check you have a softlink in your home directory called .xbmc.

I have a feeling that it may not be looking in the wrong location.

I do know in the skin Amber you can disable what is shown in the shutdown menu. Not that it much help.

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
23rd Feb, 2015, 10:03 AM
Post: #3
RE: Prevent system shutdown with Kodi
(21st Feb, 2015 02:55 AM)IriDium Wrote:  Can you check you have a softlink in your home directory called .xbmc.

I have a feeling that it may not be looking in the wrong location.

I had .xbmc in my home directory, but it was its own directory, rather than a softlink to the ~/.kodi directory (and .kodi was also a directory).

So, I correspondingly updated the powermanagement section of the guisettings.xml file in the .xbmc directory (~/.xbmc/userdata/guisettings.xml), but the Kodi interface still reflected no change.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
Bug [PROBLEM] How to prevent XBMC from buffering ? Avriukas 10 46,357 19th Oct, 2014 06:51 PM
Last Post: f1vefour

Forum Jump: