hei Michael
thanks for response. I have not yet the solution, I tried the following:
- I understand well the functions of the suspend.d/ and resume.d/ scripts and 
tried it, thanks for the link to the post
- my problem is to STOP freevo (In the post, freevo is NOT stopped, and I do 
not understand how he can restart it after resume) because if I STOP freevo, 
it kills the STOPPING script (what ever it is) as well! This looks like the 
child-process tries to kill his parrent and die as well... (or not?)

-> but I will try to do it exactly how it was in the post and how you pointed 
it in your response...
-> it would very help, if someone that was successful could post his 
solution...

on the other hand: is it not possible to reinitialise lirc and lcdproc inside 
freevo??? -> this would be the proper solution for me, because it would be 
much more faster...

Andreas

Am Freitag, 4. Januar 2008 03:07 schrieb Michael Brown:
> Andreas,
>
> Disclaimer: I'm not using sleep on my system (yet), but this is how I
> understand it...
>
> -----Original Message-----
> From:  Andreas Dick
>
> >the proposed solution use
>
> SHUTDOWN_SYS_CMD = "/etc/acpi/sleep.sh"
> the drawback is, that freevo is still running at sleep, and can not be
> started  at resume... (right?)<
>
> As I understand it, this script then calls scripts residing in
> /etc/acpi/suspend.d in order to properly suspend the system.  The post I
> pointed you towards indicated the fellow who had done this had created a
> script which he stuck in /etc/acpi/suspend.d which stopped freevo, lcdproc,
> and lirc.
>
> He also created another script which
> he stuck in /etc/acpi/resume.d which started lirc, lcdproc, and finally
> freevo as the system resumed properly.
>
> On my Ubuntu system, the scripts in those directories begin with a number,
> allowing the admin to fine-tune suspend/resume orders.  You could simply
> create bash scripts and stick them in those directories to deal with the
> services you need to stop/start.  Create a script which simply executes
> /etc/init.d/[service] {stop/start} as needed, and stick it in
> acpi/suspend.d or acpi/resume.d.
>
> >I tried then to use as a bash script like
>
> ------------SHUTDOWN_SYS_CMD script ---------------------
>       #!/bin/bash
>       freevo stop
>       /etc/acpi/sleep.sh
>       freevo -fs --------------------------------------
> ---------------------------------------------------------------------------
>--<
>
> You'll just need to use the /etc/acpi/sleep.sh as the Shutdown command. 
> Services are best handled in the suspend. and resume.d directories.  If you
> need to force freevo to start with -fs, then create a script like this
>
> #!/bin/bash
> /path/to/freevo -fs
>
> Save it in /etc/acpi/resume.d as 99-freevo.sh and make it executable.
>
> >problem is lirc_imon which do not work after
>
> resume. (on the other hand, lirc_serial and lcdproc works fine)
> if I want have lirc_imon running too, I have to restart lirc and LCDd...
> but then can freevo no longer use lirc and LCDd... right?<
>
> Just make sure the resume scripts for lirc and lcdproc are numbered lower
> than Freevo, like 90-lirc.sh and
> 91-lcdproc.sh
>
> and that should let them start up in the right order before freevo.
>
> -> Is it maybe possible to reinitialise lirc and LCDd from inside of
> freevo? (after running sleep.sh)
>
> No need to.  Just create the proper suspend and resume scripts.  Think of
> the suspend.d and resume.d directories as being similar to the run levels
> that a normal Unix system uses for startup & shutdown.  Just re-read that
> post
>
> http://article.gmane.org/gmane.comp.video.freevo.user/14423/
>
> and hopefully it's a bit clearer now.
>
> >thanks for any help
>
> Andreas<
>
> No worries!  Hope that helps!
>
> /Mike
> (Typed on my Treo, so forgive if it's a bit terse)
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Freevo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freevo-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to