Computer standby from XBMC

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
matt_cyr Offline
Fan
Posts: 352
Joined: Oct 2007
Reputation: 0
Post: #11
Man, I wish there was an edit for our posts.
anyway, a slightly better version of the code (for standby) would be
Code:
rundll32.exe powrprof.dll,SetSuspendState 0,1,0

the three numbers at the end (0,1,0) correspond to
Hibernate, - if true sets to hibernate instead of suspend
ForceCritical, - if true, the system does the operation immediatly
DisableWakeEvent - if true, the system disables wake events
find quote
BAG_Ass Offline
Fan
Posts: 377
Joined: Dec 2006
Reputation: 0
Post: #12
I think WiSo just need to add "rundoscommand" function to XBMC and after in add it to keymap.xml file to link it to button remote or keyboard.
find quote
WiSo Offline
Team-XBMC Developer
Posts: 2,481
Joined: Oct 2003
Reputation: 0
Location: Germany
Post: #13
If you have more insides let me know. More easier than for me to find the right places in the code.

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
spiff Online
Grumpy Bastard Developer
Posts: 12,180
Joined: Nov 2003
Reputation: 82
Post: #14
wiso, there's already a system.exec() on linux - reuse that one.
it's a builtin command, see CUtil::ExecuteBuiltin

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
BAG_Ass Offline
Fan
Posts: 377
Joined: Dec 2006
Reputation: 0
Post: #15
Thanks Spiff
find quote
WiSo Offline
Team-XBMC Developer
Posts: 2,481
Joined: Oct 2003
Reputation: 0
Location: Germany
Post: #16
Yep u're right. Saw this once but didn't remember. I'll check that.

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
Post Reply