LinHES Forums http://forum.linhes.org/ |
|
nvram and R5F27 http://forum.linhes.org/viewtopic.php?f=6&t=16903 |
Page 1 of 1 |
Author: | fra [ Mon Oct 08, 2007 12:58 pm ] |
Post subject: | nvram and R5F27 |
Hi, I was reading http://www.mythtv.org/wiki/index.php/Mythwelcome and http://www.knoppmythwiki.org/index.php? ... ythWelcome to see how to set up wake-to-record. I'm wondering now if with R5F27 all this is unnecessary and I can do things simpler? Or do I still have to go through all the setup on those wiki's? For example, is setting up Mythwelcome still necessary or are all the required settings part of KM's installation process? [e.g. the poweroff command] Is MythBackend already set to play nice with Mythwelcome? Is adding image=/boot/bzimage.poweroff to lilo still necessary? Is Mythshutdown already configured right? Thanks! |
Author: | alien [ Tue Oct 09, 2007 10:16 am ] |
Post subject: | |
Yeah, the wiki could use a bit of clean up. I haven't been home enough to play with my box recently. Basically, you probably want to use acpi wakeup instead of nvram wakeup. See http://www.mythtv.org/wiki/index.php/ACPI_Wakeup If you do this, feel free to clean up the wiki ![]() Allen |
Author: | fra [ Tue Oct 09, 2007 10:37 am ] |
Post subject: | |
alien wrote: Yeah, the wiki could use a bit of clean up. I haven't been home enough to play with my box recently.
Basically, you probably want to use acpi wakeup instead of nvram wakeup. See http://www.mythtv.org/wiki/index.php/ACPI_Wakeup If you do this, feel free to clean up the wiki ![]() Allen yeah, i'm a bit at a loss as to what these different methods do! so if acpi works then it replaces nvram? [and seems to be easier to setup!] EDIT: I just setup acpi and it seems to work fine. I now have to tweak Mythtv-setup parameters. (any helpful link to that? is this the one to follow? http://www.mythtv.org/docs/mythtv-HOWTO-11.html ) |
Author: | fra [ Tue Oct 09, 2007 11:40 am ] |
Post subject: | |
Do I need to use MythWelcome now? Can I just edit some MythTV settings and not use MythWelcome? EDIT: I decided to setup MythWeclome, since otherwise the backend never goes idle!!!!!! So far, it all looks good. I simply followed the instructions in http://mysettopbox.tv/phpBB2/viewtopic.php?t=13634 |
Author: | fra [ Tue Oct 09, 2007 11:01 pm ] |
Post subject: | |
alien wrote: If you do this, feel free to clean up the wiki
![]() I'm writing up every step along the way from the day I thought about the mythtv project till the day I have everything setup as I want! I'll soon have a substantial amount of info and will post it somewhere on the KnoppMyth wiki. I won't wait till it's perfect, of course, 'cos it'll never reach that stage ![]() ![]() So I'll include there the Shutdown/Wake up setup and how I made things in the above thread work [e.g. halt -h should be halt -h now, and the person who wrote the thread seems to have been living in UTC time zone!! so i had to tweak things a bit] FRA |
Author: | rkshack [ Fri Nov 16, 2007 11:57 pm ] |
Post subject: | |
fra wrote: I'm writing up every step along the way from the day I thought about the mythtv project till the day I have everything setup as I want! FRA
I am having trouble getting it to work for me have you posted your write up yet? rkshack |
Author: | tjc [ Sat Nov 17, 2007 10:48 am ] |
Post subject: | |
alien wrote: Yeah, the wiki could use a bit of clean up.
... If you do this, feel free to clean up the wiki ![]() This just caught my eye, and seemed like it deserved comment. Please, remember wikis are a community effort, the people responsible for cleaning them up are YOU. Please, Adopt a wiki page today. Find one (or more) pages with content that interests you, or which has helped you, or which you have some expertise on, and visit it (or them) every couple weeks. If it's got typos, fix them. If it has mangled grammar, fix it. If it's missing details, fill them in. If it assumes certain knowledge, provide a pointer to it. If it's formating and layout need help, fix them up. If it's out of date, update it. These don't need to be big efforts, every little bit helps. If you complain about a wiki page being out of date, the second half of your sentence should be, "so I updated it to the best of my abilities." |
Author: | fra [ Fri Nov 30, 2007 11:13 am ] |
Post subject: | |
rkshack wrote: fra wrote: I'm writing up every step along the way from the day I thought about the mythtv project till the day I have everything setup as I want! FRA I am having trouble getting it to work for me have you posted your write up yet? rkshack i don't have the writeup ready for public view yet. but i'll write what i did a bit later tonight (i'm at work now). stay tuned! |
Author: | fra [ Fri Nov 30, 2007 6:08 pm ] |
Post subject: | |
rkshack wrote: fra wrote: I'm writing up every step along the way from the day I thought about the mythtv project till the day I have everything setup as I want! FRA I am having trouble getting it to work for me have you posted your write up yet? rkshack i do have the mythbox working as i like. i've been working on cleaning up the writeup before posting it. hopefully, i'll finish it up over windetr break. but here's the part on acpi: First, you need to set the BIOS up to be able to boot from an alarm. I followed http://www.mythtv.org/wiki/index.php/ACPI_Wakeup In short: find something like Power Management in your BIOS and enable something like Power-On from Alarm. After boot, open a terminal (alt x), become root (su -), and test if the alarm works: Code: cat /proc/acpi/alarm should show that the alarm is set to right now. Edit it to make it wake up 5 minutes from now and shutdown. Code: echo "+00-00-00 00:05:00" > /proc/acpi/alarm shutdown -h now It should wake up after 5 minutes. If it does, you have set up the BIOS correctly. Now you need to setup mythwelcome. I followed http://mysettopbox.tv/phpBB2/viewtopic.php?t=13634 with a couple of modifications: Exit to a desktop and open a terminal (alt x). Make mythwelcome start on boot: Code: nano /home/mythtv/.fluxbox/apps change "[startup] {KnoppMyth-run}" to "[startup] {mythwelcome}" (to save and exit a file being edited by nano use control x) type mythwelcome --setup and set: nvram-wakeup Command: /usr/bin/setwakeup.sh nvram-wakeup Restart Command: leave blank Command to reboot: sudo shutdown -h now Command to shutdown: sudo shutdown -h now Command to run Xterm: xterm Command to run to start the Frontend: KnoppMyth-run Next, create the file /usr/bin/setwakeup.sh and put in it: Code: #!/bin/bash # Script to set wakeup time using acpi alarm # Called from mythwellcome: # first option passed from mythwelcome is --settime second is seconds since 1970 # Convert from stupid time in seconds since 1970 datum=$(/bin/date -d "1970-01-01 UTC $2 sec" +%F\ %T\ %z) # Reinterpret this in utc and write to alarm utcdatum=$(/bin/date -u -d "$datum" +%F\ %T) # Sending an email to me (you need sendEmail to be installed) #sendEmail -f username@domain -t username@domain -s smtp_server:port -xu username -xp password -u "MythTV is shutting down NOW.." -m "Will be back on `date -d "$datum" +%A,\ %B\ %d\ %Y,` "at" `date -d "$datum" +%H:%M:%S\ %Z`" >/dev/null # Write wakeup time to acpi alarm echo $utcdatum>/tmp/alarm # Then, /etc/init.d/hwclock.sh is modified to read this file (the email line above is one long line. uncomment it if you want emails sent to you when the thing shuts down, and fill in the required info: usrename, etc. also you need sendEmail to be set up) Make the file executable: Code: chmod +x /usr/bin/setwakeup.sh Next, you need to modify /etc/init.d/hwclock.sh to make it set the alarm. Become root (su -) and edit the file (nano /etc/init.d/hwclock.sh). After the line "clock will not be carried across reboots." add the line Code: ACPITIME=`cat /tmp/alarm` then a bit further down, after the line: verbose_log_action_msg "Hardware Clock update to `date`" add the line Code: echo "$ACPITIME" > /proc/acpi/alarm
(again, to save and exit use control x) Finally, you need to rerun mythtv-setup: stop the front-end (alt 2), start mythtv-setup (alt s). In General find Shutdown/Wakeup Options and set: Startup command: leave blank Check Block shutdown before client connected Idle timeout: what suites you (I have it at 60 seconds) Max wait for recording: what suites you (I have it at 15 minutes) Startup before rec. (secs): what you want (I have it at 300 seconds) Wakeup time format: yyyy-MM-dd:hh:mm Set wakeuptime command: sudo mythshutdown --setwakeup $time Server halt command: sudo mythshutdown --shutdown Pre-shutdown command: sudo mythshutdown --check Once you exit the setup, type: mythwelcome to run it. Hopefully, you're all set! Please let me know if there were any parts that weren't clear and you had to figure out what I meant. Or, if you had to do something different... |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |