Skinners can add "Suspend" and "Hibernate" buttons now to the shutdown-menu

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
topfs2 Offline
Team-Kodi Developer
Posts: 4,187
Joined: Dec 2007
Reputation: 13
Thumbs Up  Skinners can add "Suspend" and "Hibernate" buttons now to the shutdown-menu
Post: #1
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

If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

[Image: badge.gif]

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
find quote
Razor_109 Offline
Senior Member
Posts: 235
Joined: Nov 2007
Reputation: 0
Location: Netherlands
Post: #2
thanks for this function! i have been waiting for this!

HTPC + Mediaserver
E8400 - ABIT I-N73HD - 2GB DDR2 - 3.5TB - Geforce G210 - ANTEC FUSION V2 - Ubuntu 10.04 - XBMC-PVR

TV-Server
Ubuntu 10.04 - Tvheadend - Smargo Reader - Oscam Card Server - 2x PCI DVB-C
find quote
CASHMON3Y Offline
Donor
Posts: 395
Joined: Sep 2008
Reputation: 15
Location: Detroit, MI
Post: #3
So know we can have a button on XBMC to suspend the computer?
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Post: #4
CASHMON3Y Wrote:So know we can have a button on XBMC to suspend the computer?
Yes, read:
http://xbmc.org/topfs2/2008/09/23/skinne...hibernate/
and:
http://wiki.xbmc.org/?title=List_of_Built_In_Functions
and:
http://wiki.xbmc.org/?title=Built_In_Scripting

Nod

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Freddo Offline
Skilled Skinner
Posts: 489
Joined: Apr 2004
Reputation: 13
Post: #5
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.
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Post: #6
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

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
topfs2 Offline
Team-Kodi Developer
Posts: 4,187
Joined: Dec 2007
Reputation: 13
Post: #7
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.

If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

[Image: badge.gif]

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
(This post was last modified: 2009-03-17 17:22 by spiff.)
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Post: #8
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.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
Jeroen Offline
Skilled Skinner
Posts: 2,499
Joined: Feb 2008
Reputation: 23
Location: The Netherlands
Post: #9
Nice, really happy with the minimize function. Thanks Smile
find quote
topfs2 Offline
Team-Kodi Developer
Posts: 4,187
Joined: Dec 2007
Reputation: 13
Post: #10
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

If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

[Image: badge.gif]

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
find quote