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

Reply via email to