On Saturday 13 November 2004 22:53, Hans Meine wrote: > Could you please post your scripts here? (I was about to ask privately, but > probably it's of general interest.)
Sorry, that I didn't post them with my first mail. I didn't intend to annoy you. However, posting things that might be too simple may annoy others. Probably I was a little bit too cautious. > Do you disable system shutdown in Freevo and use a script that starts > Freevo in a loop? Yes, exactly. As the Linux kernel stops processes immediately upon suspend and continues execution after resume the script is an infinite loop of suspend() / resume() actions (see the script home-center that I attached). That script gets started once after booting into linux and runs forever. In addition I use the following lines in /etc/freevo/lirc and start irexec with that config file (see script home-center again): begin prog = irexec button = POWER config = touch /var/run/suspend end That triggers suspend when you push the power button on your remote. > I thought patching shutdown.py to allow for hibernating > would be a more clean solution (increasing the choice of shutdown options, > making the suspend a possible default). Yes, definitely. My external loop could and should be added to freevo as in that case we are able to avoid starting and stopping freevo. Cheers, Stephan Kanthak
home-center
Description: application/shellscript