On Fri 30.01.2004 at 09:27:11AM +0100, Pferdekaemper, Thorsten wrote: > Hi all, > > > On Wed 28.01.2004 at 12:53:23PM +0100, Pferdekaemper, Thorsten wrote: > > > And another question so far...: How do you make sure that the system > > > does not shut down while watching TV? I assume that this has something > > > to with the function set_tv_video()... > > > > My idea was that if you watch TV, you have been using the remote control > > to access the menu that starts the TV. And if you use the remote > > control, the auto-off is disabled until nukkumaatti receives a SIGHUP. > > This also allows to discriminate an automatic wake-up (for scheduled > > recordings) which require an automatic shutdown once the show is > > recorded, from a manual wake-up (where the user will use the remote > > control at some time, hopefully). It also allows the machine not to > > shutdown if the user starts to use it after an automatic wake-up. > > Ok. I was not aware of the fact, that nukkumaatti never will shut down > if the user pressed a button. It only shuts down if the user never > pressed a button.
Or if a SIGHUP signal is sent to it (which will put it to the same state it was when it started, i.e. considers that no button has been pressed). > > But as you can notice, the feature to shutdown if the users gets asleep > > in front of the TV is not implemented. The system lacks a sensor for > > checking if the user sleeps or nor :) > > ...but it also does not shut down if you want to record something > starting in about half an hour, but you want to go to bed immediately. > I.e. you have hit a key on your remote to schedule the recording. For this case I have modified Freevo's config so that it uses "kill `cat /tmp/freevo-nukkumaatti.pid`" as the "SYS_SHUTDOWN_CMD" (or whatever the name of this variable). So if I want to record something that starts in half an hour, I schedule it, then activate the "Shutdown" item from the main menu. The interface will close, the screen remains black, and the machine will (or at least should :) shutdown some time (15 min by default--this might be too long, actually) after the recording ends. > I am currently trying to write a plugin which can be used instead of > the base.shutdown plugin normally used by freevo to handle the > "shutdown" command in the main menu. This way, I can shut down freevo > in a cleaner way than just shutting down the system. I also want to > check if the system is ready to shut down when the user chooses > "shutdown" from the main menu. See above for my config regarding this. Matthieu -- (~._.~) Matthieu Weber - Universit� de Jyv�skyl� (~._.~) ( ? ) email : [EMAIL PROTECTED] ( ? ) ()- -() public key id : 452AE0AD ()- -() (_)-(_) "Humor ist, wenn man trotzdem lacht (Germain Muller)" (_)-(_) ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users
