[mythtv-users] powerdown a masterbackend box

Johannes Niess linux at johannes-niess.de
Sun Feb 15 06:27:23 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Sonntag, 15. Februar 2004 05:16 schrieb Audio Phile:
> I've read some on the list say this can't be done... I
> have one machine (masterbackend) in my living room
> that records and plays for us.  I would really like to
> have a menu option to allow the box to quit myth and
> powerdown the machine.  Currently, it just lets me
> quit.
>
> Can this be done, and if so, how :)

Hi,

powering down is quite simple with mythsetup:
1) Set a timeout for the frontend to disconnect from backend
2) Set a timeout for the backend to shut down.

The tricky part is to have the box power up again for the next recording. How 
to do that depends on your hardware, kernel, BIOS setiings, etc. I recommend 
to test both routes from the command line:
A) "apmsleep +1m" or " <set rtc alarm>; apm -S"
B) echo "2004-02-15 12:17:00" >/proc/acpi/alarm; echo 4 > /proc/acpi/sleep

Route A requires APM support in your kernel and luck that BIOS switches off 
the fans.

Route B uses ACPI and may need a 2.6 kernel. Even then it does not result in a 
"resume from disk" for me, but in a not so clean reboot. With a 2.4 kernel 
you could also try to the other integers to /proc/acpi/sleep. But be prepared 
for unclean shutdown.

As I have no dedicated mythtv box I need more intelligence before shuting 
down. Load < 0.1 and no logins need to be checked.

HTH,

Johannes Nieß

P.S: When do the shutdown timers start? Before or after ad cleaning and 
transcoding?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAL1ekZ86b9aw2E+0RAleaAJ40/JHJ6LOl705E+JKsUKufz53mHQCfcKly
Ogw44xv/YaC4o7P0vI6pweg=
=ZQUH
-----END PGP SIGNATURE-----


More information about the mythtv-users mailing list