Wake up after standy
#16
Hi Frank-NL
just one more question before I go home to try the script

Quote:Now in the XBMC configuration, go to Settings, TV, Energy and fill in the wake up command

sudo setwakeup.sh

is it correct to enter "sudo setwakeup.sh" in the XBMC webinterface or should it be "usr/bin/setwakeup.sh" ?

Thank you very much for your help :-)
Reply
#17
Hello Frank-NL ,

you asked me to paste the result of

Quote:Now after you've don that, do this again:

cat /sys/class/rtc/rtc0/wakealarm

And paste the result here.

voilá: 1361366070
Reply
#18
So the script works.

Did you have to enter your password afer the sudo command?

Can you post the output of:

sudo cat /etc/sudoers

It is the file you edit if you use sudo visudo.

If that is also correct, please confirm the command you have set in this screen: http://wiki.xbmc.org/index.php?title=PVR...wer_Saving

How does that look?
Reply
#19
Hello Frank,

Quote:Did you have to enter your password afer the sudo command?

a password was not required.

Quote:Can you post the output of:

sudo cat /etc/sudoers

voilá:
Quote:#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d
bernd ALL = NOPASSWD: /usr/bin/setwakeup.sh, /usr/sbin/pm-suspend

after all that I inserted usr/bin/setwakeup.sh (correct ??) in the XBMC Webinterface
and resetted the command to"cat /sys/class/rtc/rtc0/wakealarm"

Then I rebooted, planned a recording for 20 minutes in the future and set the system manually in standby. But it didn wake.... :-((
Reply
#20
I am trying this method too, I have sceduled a recording and put it into standby, will see what happens.

No luck.
Reply
#21
Good, good. You are almost there. You have to make sure you enter the correct command in XBMC:

sudo setwakeup.sh

That will work. Please try again and let me know, all the rest of your settings are fine.
Reply
#22
Frank it worked for me, you or someone should write this up in the wiki especially now it is mainline.
Reply
#23
Frank, you are my hero. It works !
All that took me about two weeks reading forums in tvheadend, vdr, XBMCnerds and here in XBMC-forum. Thank you very much.
And it' s a good succestion from bilbonvidia to write this down in the wiki.
Is it OK to post the instruction in XBMCnerds-forum ?
Finally I just planned a recording for the middle of the night to check if the system suspends after recording...
Thank you again all together !
Reply
#24
You're both welcome! No problem to post it wherever you like, I didn't invent this method. It is also used by OpenELEC and MythTV. It is just something you need to know Big Grin

I don't know if I can edit the wiki, will have a look.

Happy to help!

By the way, it will suspend after recording if you set the system energy settings to suspend. But I recall you have done that already.
Reply



Logout Mark Read Team Forum Stats Members Help
Wake up after standy0
This forum uses Lukasz Tkacz MyBB addons.