Kodi Community Forum

Full Version: Skinners can add "Suspend" and "Hibernate" buttons now to the shutdown-menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
http://xbmc.org/topfs2/2008/09/23/skinne...hibernate/

Note that this is perfectly backwards compatible and any additions works on the Xbox aswell. Although note that Suspend and Hibernate doesn't work on Xbox due to Hardware limitations.

Also very much worth to know is that XBMC.Restartapp that currently doesn't work well in OSX, Win32 and Linux is working in XBMC Live so don't take away that action if anyone planned to do so Wink

Cheers, Tobias
thanks for this function! i have been waiting for this!
So know we can have a button on XBMC to suspend the computer?
I'm pretty sure I can do it with an additional onclick action but it'd be nice if when hibernating/suspending the shutdown menu would close so it isn't the first thing you see when resuming.
Freddo Wrote:it'd be nice if when hibernating/suspending the shutdown menu would close so it isn't the first thing you see when resuming.
+1

I like that too Nod
Follow up: As of r18571 skinners have even more options

These are skinning conditionals.
  • System.CanPowerdown
  • System.CanSuspend
  • System.CanHibernate
  • System.CanReboot

The idea about these is that even though systems might differ ie xbox can´t suspend/hibernate mac´s usually never hibernates (I think they can though) and ATV as I have understand doesn´t powerdown but rather only suspends. So this is will hopefully be a great way for skinners to make the skins feel more native.

Also some time ago we added
  • XBMC.Minimize()
As an action for those that want to minimze instead of exiting.
I guess we might add a CanMinimize aswell as on standalone systems (XBMC Live and ATV) we don´t allow minimze Smile

I plan on adding some more of these that has to do with powermanagement, say System.HasBattery System.OnBattery / System.OnAC and so on.
If you have any such that any skinner would need please ask about them here.
Just to clarify, OSX does "Sleep" and "Safe Sleep"

Sleep is similar to Suspend.

Safe Sleep is similar to Hibernate but you only get to choose to "Sleep".

When put to sleep, OSX will prep for a Safe Sleep (ram contents to disk). If power gets yanked or battery pulled, it seems to know to pull ram contents from disk. All this happens behind the curtains and eliminates the confusion of Suspend/Hibernate for novice users.
Nice, really happy with the minimize function. Thanks Smile
davilla Wrote:Just to clarify, OSX does "Sleep" and "Safe Sleep"

Sleep is similar to Suspend.

Safe Sleep is similar to Hibernate but you only get to choose to "Sleep".

When put to sleep, OSX will prep for a Safe Sleep (ram contents to disk). If power gets yanked or battery pulled, it seems to know to pull ram contents from disk. All this happens behind the curtains and eliminates the confusion of Suspend/Hibernate for novice users.

Ah cool, that´s actually quite smart

Also now I get why the heck osx does sleep on both suspend and hibernate Big Grin