Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Computer standby from XBMC
#1
Is there any method that win32 XBMC act like xbox XBMC regarding shutdown? Right now when I select shutdown the application itself shuts down, but I want xbox-like behavior, that whole system shuts down or preferably becasue we are in the XP/Vista world system stands by without leaving XBMC application. That way after turning on we have sweet XBMC waiting for your commands Smile Anyone tried to achive it? Custom keymap.xml? 3rd party app? Any ideas?

DP
Reply
#2
not sure how to intergrate it into xbmc, but I have a batch file that shuts down my pc with one keypress..
Reply
#3
I know in the skin, with the linux build there is basically a command that can be put in to shut down the computer, instead of just XBMC... maybe this is possible in the windows build too?
Reply
#4
the following batch file will start xbmc and shut down your pc after you exit xbmc

xbmc
cd\
shutdown -u

this works as long as you have the windows command "shutdown" in the root dir..

i have tested this is works in XP, not sure about Vista..
Reply
#5
shutdown isn't problem. I want my komputer to stand by, not to shut down. I plan to replace the explorer.exe on my HTPC with XBMC. That way XBMC will start automaticly right after boot, and I want to stand by my PC from XBMC. I don't want to use any other application on this PC. Just like I don't use anything else on my Xbox (XBMC is my dashboard)

DP
Reply
#6
dpassent Wrote:That way XBMC will start automaticly right after boot, and I want to stand by my PC from XBMC. I don't want to use any other application on this PC. Just like I don't use anything else on my Xbox (XBMC is my dashboard)

i like this idea. I also heard of PE Builder/WinBuilder which can strip Windows XP to 200 MB and on which you can use PlugIns like Firefox, OpenGL. Could imagine that the boot time of a lean windows is also very short.
Reply
#7
Suspend to RAM or HDD would be nice too ;-)
Reply
#8
supend to ram = stand by, suspend to hdd = hibernate. it's all there - we just need a way to invoke those from XBMC

DP
Reply
#9
haven't tested it, but a batch file containing
Code:
rundll32.exe powrprof.dll,SetSuspendState
should send your pc into hibernate mode or standby depending on your power settings 'When I press the sleep button on my computer'
Reply
#10
Edit: In order to use standby then your system must have hibernation disabled.
Reply
#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
Reply
#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.
Reply
#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.
Reply
#14
wiso, there's already a system.exec() on linux - reuse that one.
it's a builtin command, see CUtil::ExecuteBuiltin
Reply
#15
Thanks Spiff
Reply

Logout Mark Read Team Forum Stats Members Help
Computer standby from XBMC0