Re: [Freevo-users] Suspend and set alarm

2009-10-08 Thread Laurence Huizinga
Hey guys.
I think I am closer to getting suspend and resume working than I think.
I have tested the commands outside of freevo and they all work well.
I have included sudo in the echo part of the wakeup command script.  My  
~/.freevo/set_acpi script is as follows:
#!/bin/sh
sudo sh -c echo $1  /sys/class/rtc/rtc0/wakealarm
so as to make sure all commands are run as root priveleges.
This works in the shell with whatever date/time.

In local_conf.py I have the relevant commands:
ENABLE_SHUTDOWN_SYS = 0 $and also have tried 1
SHUTDOWN_SYS_CMD = sudo pm-suspend
RESTART_SYS_CMD = sudo shutdown -r now $not sure where this comes 
into  
play as I only have shutdown option
AUTOSHUTDOWN_TIMER_TIMEOUT = 10
AUTOSHUTDOWN_PRETEND = True $and have tried False
AUTOSHUTDOWN_PROCESS_LIST = ['tv_grab','mplayer','xine']
AUTOSHUTDOWN_DEFAULT_WAKEUP_TIME = 19:00
AUTOSHUTDOWN_FORCE_DEFAULT_WAKEUP = True
AUTOSHUTDOWN_ALLOWED_IDLE_TIME = 10
AUTOSHUTDOWN_METHOD = 'acpi'
AUTOSHUTDOWN_WAKEUP_CMD = 'sudo /home/freevo/.freevo/set_acpi.sh'

And the output from trying to close down freevo is:
[fre...@wetland ~]$ freevo
/usr/lib/python2.6/site-packages/kaa/metadata/disc/cdrom.py:37:  
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
version: 1.9.0
plugin dialog.x11_overlay_display deactivated, reason: kaa.display is 
not  
installed
Freevo 1.9.0 ready
2009-10-09
*   shutdown: you must be root to do that!   *
Freevo shutdown

Where is the you must be root to do that! command called from??

Larry   


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] Suspend and set alarm

2009-10-07 Thread Laurence Huizinga
Would there be a way to suspend within freevo (and without actually  
closing freevo) and set an alarm in the bios (mine is at  
/sys/class/rtc/rtc0/wakealarm coz i'm in ArchLinux) to resume at next  
recording or the default wakeup time.

Also, would this be possible without activating the autoshutdown plugin or  
do we need that for the acpi/nvram?

Ps, Arch uses pm-utils.  I can suspend with a simple sudo pm-suspend.

Larry


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users