Bugs item #1567885, was opened at 2006-09-29 16:58 Message generated for change (Comment added) made by rvpaasen You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1567885&group_id=46652
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Richard van Paasen (rvpaasen) Assigned to: Nobody/Anonymous (nobody) Summary: Extensive wakup/shutdown (nvram) plugin Initial Comment: Some time ago I wrote a wakeup/shutdown plugin and submitted it to the mailing list. It is very configurable and includes a menu for: - manual shutdown for a wakeup later - pause/restart automatic shutdown - manual restart system - manual shutdown The plugin takes into account: - automatic (timed) shutdown for wakeup - that a next recording may be coming soon - that the user has other processes running that should not be interrupted - that a wakeup must occur just before a recording starts - that a wakeup must occur at regular times (to e.g. update the program guide It has been tested extensively with the grub bootmanager. Lilo is supported, but not tested. The plugin is attached to this request, or downloadable from http://www.t3i.nl ---------------------------------------------------------------------- >Comment By: Richard van Paasen (rvpaasen) Date: 2006-09-29 17:07 Message: Logged In: YES user_id=182311 An example /boot/grub/grub.conf for the automatic wakeup/shutdown plugin is: #--------------------------------------------- # example /boot/grub/grub.conf #--------------------------------------------- default saved timeout 5 splashimage=(hd0,0)/boot/grub/splash.xpm.gz #--------------------------------------------- # item 0: poweroff #--------------------------------------------- title=PowerOff savedefault 1 halt #--------------------------------------------- # item 1: default kernel #--------------------------------------------- # w/o longhaul title=Gentoo Linux 2.6.16.19-1 root (hd0,0) kernel /boot/bzImage-2.6.16.19-1 root=/dev/hda3 savedefault #--------------------------------------------- # item n: other kernels #--------------------------------------------- # w/o longhaul, with acpi title=Gentoo Linux 2.6.15.1-4 root (hd0,0) kernel /boot/bzImage-2.6.15.1-4 root=/dev/hda3 savedefault ---------------------------------------------------------------------- Comment By: Richard van Paasen (rvpaasen) Date: 2006-09-29 17:01 Message: Logged In: YES user_id=182311 Note, the configurable parameters must should added to local_conf.py to make this plugin work. # Add this to local_conf.py # Put autoshutdown.py in freevo/plugins/ ############################################################# # AUTOSHUTDOWN CONFIGURATION ############################################################# # -- plugin configuration -- # replace the default shutdown plugin plugin.remove('shutdown') plugin.activate('autoshutdown', level=90) # activate the timer plugin.activate('autoshutdown.autoshutdowntimer') # -- autoshutdown menu item configuration -- # CONFIRM_SHUTDOWN # Set to True to popup dialog boxes for confirmation. # this applies to menu items only. AUTOSHUTDOWN_CONFIRM = True # -- autoshutdown timer configuration -- # TIMER_TIMEOUT # Set the timeout in minutes after which the system # is shutdown. The allowed idle time and the running # processes (see below) are evaluated to determine if # a shutdown is allowed. Menu navigation in freevo will # reset the timer. AUTOSHUTDOWN_TIMER_TIMEOUT=30 # -- autoshutdown behaviour configuration -- # PRETEND # Set to True to disable the actual shutdown command. AUTOSHUTDOWN_PRETEND = False # PROCESS_LIST # List the processes that will prevent an automatic # shutdown. If there are important programs that # should not be interrupted, then add them to this # list. Set to None if a shutdown is always allowed. AUTOSHUTDOWN_PROCESS_LIST = [ 'emerge', 'tvgids', 'transcode', 'cdrecord', 'mplayer', 'top' ] # DEFAULT_WAKEUP_TIME # Set the default time at which to wakeup if there # are no recordings scheduled. The time is specified # in localtime 24 hour format. Set to None to disable # default wakeup time. AUTOSHUTDOWN_DEFAULT_WAKEUP_TIME = "13:00" # FORCE_DEFAULT_WAKEUP # Set to True to always wakeup at the default wakeup # time. Set to False to only wakeup at the default # wakeup time when no recordings are scheduled. AUTOSHUTDOWN_FORCE_DEFAULT_WAKEUP = True # ALLOWED_IDLE_TIME # The number of minutes that may be spent idle until # the next scheduled recording or default wakeup. That # is, if the gap between "now" and the next recording # or default wakeup is less than the allowed idle time # then a shutdown is not performed but the system is # left running. If the period from now to the next # recording or default wakeup is more than the allowed # idle time, then the system is shut down and a wakeup # is scheduled. Use this to minimize the number of # shutdown/boot sequences when many short programs are # recorded in a short period of time. Note that this # variable is used by both the timer and the menu. AUTOSHUTDOWN_ALLOWED_IDLE_TIME = 45 # -- autoshutdown nvram-wakeup configuration -- # The nvram-wakeup utility is used to write the # wakeup alarm to the RTC in bios. Read the # nvram-wakeup documentation about this topic, # a working nvram-wakeup configuration is needed. # NVRAM_CMD / NVRAM_OPT # Path to nvram-wakeup and options. Options can # be used to specify a config file. AUTOSHUTDOWN_NVRAM_CMD = "/usr/bin/nvram-wakeup" AUTOSHUTDOWN_NVRAM_OPT = "--syslog" # WAKEUP_NEEDS_REBOOT # Set to True if the bios needs a reboot to catch # up with the rtc alarm that nvram-wakeup sets. The # boot loader options should be set too. Read the # nvram-wakeup documentation about this topic. AUTOSHUTDOWN_BIOS_NEEDS_REBOOT = True # -- if the bios needs a reboot -- # BOOT_LOADER # Set to "GRUB" or "LILO" Only needed if bios needs # a reboot to initialize the RTC wakeup call. AUTOSHUTDOWN_BOOT_LOADER = "GRUB" # REMOUNT_BOOT_CMD / REMOUNT_BOOT_OPT # Grub needs to write to /boot/grub/grub.conf. Set # the command and options to remount the /boot # partition writeable. Set to None if this is not # needed. AUTOSHUTDOWN_REMOUNT_BOOT_CMD = "/bin/mount" AUTOSHUTDOWN_REMOUNT_BOOT_OPT = "/boot -o remount,rw" # GRUB_CMD / GRUB_OPT # Grub-set-default command and options that will # reboot and poweroff the system. AUTOSHUTDOWN_GRUB_CMD = "/sbin/grub-set-default 0" AUTOSHUTDOWN_GRUB_OPT = "0" # LILO_CMD / LILO_OPT # Lilo command with options that will reboot and # poweroff the system. AUTOSHUTDOWN_LILO_CMD = "/sbin/lilo" AUTOSHUTDOWN_LILO_OPT = "-R PowerOff" ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1567885&group_id=46652 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
