Re: [Freevo-users] Freevo 1.5.x Wakeup Client and Server
Robert Winder wrote: On Tuesday, August 8, 2006, 7:54:05 PM, Duncan wrote: One problem I'm having is finding a version of grub that actually works with the --once patch. It seems to stay at the poweroff entry. Well it was a long time ago I messed with this but never found a grub version which worked with the --once option. Still using old and trusty lilo for this very reason. But things with Grub might have changed by now. Hi Robert, I have found a version 0.95 plus the IPCop patches, or a SuSE 0.95-10. (SuSE has a grubonce script) I'm not sure that this is a problem with the patches of some odd configuration detail.What I've found out is that grub is a bit fussy. The first time we set the default to 0 and the power of entry to say 2, then reboot. After this it is possible to change the menu.lst or grub.conf to use default saved, afterwards it will boot to entry 0 when shutdown with the --once option OR it will boot with saved default if normally rebooted. Took me quite some time and a few gray hairs to figure this out. I've attached the grub.conf file and my shutdown script which may make this clearer. Duncan # Begin /boot/grub/grub.conf # Allow 2 seconds before booting the default. timeout 2 # By default boot the first menu entry. #default 0 # By default boot is the last menu selected. default saved # Use prettier colors. color blue/black light-blue/black foreground = ee background = 313191 # Use a splash image splashimage=(hd0,1)/boot/grub/freevo.xpm.gz # vga=0x318 video=vesafb:mtrr,ywrap # video=vesafb:mtrr,ywrap,[EMAIL PROTECTED] # vga 1280x1024-16 = 0x31A = 794 # vga 1280x1024-32 = 0x31A = 795 # vga 1024x768-16 = 0x317 = 791 # vga 1024x768-32 = 0x317 = 792 # vga 800x600-24 = 0x114 = 276 (788) title LFS kernel-2.6.15.6-r1 Freevo on TV root (hd0,1) kernel /boot/kernel-2.6.15.6-r1 root=/dev/sda2 ro vga=791 video=vesafb:mtrr,ywrap idebus=66 quiet 4 splash=silent initrd /boot/initrd.splash savedefault title LFS kernel-2.6.15.6-r1 Freevo on PC SMP root (hd0,1) kernel /boot/kernel-2.6.15.6-r1 root=/dev/sda2 ro vga=791 video=vesafb:mtrr,ywrap idebus=66 quiet 5 splash=silent initrd /boot/initrd.splash savedefault title PowerOff Halt halt # End /boot/grub/grub.conf #! /bin/bash bootloader=${1:-grub} bootloaderentry=${2:-1} needreboot=${3:-yes} echo "Usage: $(basename $0) " if [ "${bootloader}" == "grub" ]; then if ! echo "savedefault --default=${bootloaderentry} --once \nquit" | /sbin/grub --no-floppy --batch; then echo "failed to set up grub with \"savedefault --default=${bootloaderentry} --once\"" exit 1 fi elif [ "${bootloader}" == "lilo" ]; then if ! /sbin/lilo -R ${bootloaderentry}; then echo "failed to set up lilo with \"-R ${bootloaderentry}\"" exit 1 fi else echo "Bootloader \"${bootloader}\" not supported" exit 1 fi #echo "Press Enter to Reboot/Shutdown" #read ENTER if [ "${needreboot}" == "yes" ]; then /sbin/shutdown -r now elif [ "${needreboot}" == "no" ]; then /sbin/shutdown -h now else echo "needreboot \"${needreboot}\" should be \"yes\" or \"no\"" exit 1 fi - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Freevo 1.5.x Wakeup Client and Server
On Tuesday, August 8, 2006, 7:54:05 PM, Duncan wrote: > Hi all, > I just written a client/server process to set the nvram and shutdown the > machine. > I allows a fall-back time for the next start if no program has been > scheduled to record. Fall-back times are there to allow running of cron > jobs such as tv_grab. > It sets the nvram with nvram_wakeup, but I'm uncertain where to add the > code to do the actual shutdown. It could be either in the client of > server. That is where I need your suggestions. > One problem I'm having is finding a version of grub that actually works > with the --once patch. It seems to stay at the poweroff entry. Well it was a long time ago I messed with this but never found a grub version which worked with the --once option. Still using old and trusty lilo for this very reason. But things with Grub might have changed by now. /Robert > The source is http://www.linuxowl.com/software/wakeup-0.0.1.tar.bz2 (or > http://svn.linuxowl.com/ffs/trunk/wakeup/). There's a README in there. ;-) > I'll put this in the plugins page when I've done this last step. > Feedback is always welcome. > Cheers, > Duncan > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Freevo-users mailing list > Freevo-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freevo-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Freevo 1.5.x Wakeup Client and Server
Duncan Webb wrote: > Hi all, > > I just written a client/server process to set the nvram and shutdown the > machine. > > I allows a fall-back time for the next start if no program has been > scheduled to record. Fall-back times are there to allow running of cron > jobs such as tv_grab. > > It sets the nvram with nvram_wakeup, but I'm uncertain where to add the > code to do the actual shutdown. It could be either in the client of > server. That is where I need your suggestions. > > One problem I'm having is finding a version of grub that actually works > with the --once patch. It seems to stay at the poweroff entry. > > The source is http://www.linuxowl.com/software/wakeup-0.0.1.tar.bz2 (or > http://svn.linuxowl.com/ffs/trunk/wakeup/). There's a README in there. ;-) > > I'll put this in the plugins page when I've done this last step. > > Feedback is always welcome. > > Cheers, > Duncan > Should have said that there is a patch for the radioplayer at http://www.linuxowl.com/patches/freevo-1.5.4-radioplay.patch that allows the radioplayer to send PLAY_START and PLAY_END events. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
[Freevo-users] Freevo 1.5.x Wakeup Client and Server
Hi all, I just written a client/server process to set the nvram and shutdown the machine. I allows a fall-back time for the next start if no program has been scheduled to record. Fall-back times are there to allow running of cron jobs such as tv_grab. It sets the nvram with nvram_wakeup, but I'm uncertain where to add the code to do the actual shutdown. It could be either in the client of server. That is where I need your suggestions. One problem I'm having is finding a version of grub that actually works with the --once patch. It seems to stay at the poweroff entry. The source is http://www.linuxowl.com/software/wakeup-0.0.1.tar.bz2 (or http://svn.linuxowl.com/ffs/trunk/wakeup/). There's a README in there. ;-) I'll put this in the plugins page when I've done this last step. Feedback is always welcome. Cheers, Duncan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users