Stopping sleep to off timer programatically

Posted by: THardie

Stopping sleep to off timer programatically - 01/12/2002 21:38

I've added a WET11, and ethernet hub to my car so I can talk to my EMPEG when it's parked in the garage.

Wroks fine, except the player shutdown down after 30 or so minutes (Setting off_timer to the max of 172000 doesn't work)

I am writing a program that will run on one of my linux servers that'll continually look for the empeg to be available on the LAN (via the wireless), and when it is, connect and sync. I'd like to be able to disable the shutdown timer while this happens, and then force a shutdown when the sync is complete.

Ideas?
Posted by: tfabris

Re: Stopping sleep to off timer programatically - 01/12/2002 21:51

If you're using Hijack, you could send an HTTP command to wake up the player and then pause it.

And there is already something in the sync protocol to say "shut down the player when synch completes", emplode uses it...
Posted by: RobotCaleb

Re: Stopping sleep to off timer programatically - 01/12/2002 21:51

switch to ac mode using hijack when you leave it in the car, then put it in standby.
Posted by: tfabris

Re: Stopping sleep to off timer programatically - 01/12/2002 21:53

Hey, that's even better.