LinHES Forums http://forum.linhes.org/ |
|
Where does MythTV check if woken up AUTO or by USER [Solved] http://forum.linhes.org/viewtopic.php?f=6&t=18588 |
Page 1 of 1 |
Author: | tzoom84 [ Sat Jul 19, 2008 3:58 pm ] |
Post subject: | Where does MythTV check if woken up AUTO or by USER [Solved] |
(Both a curiosity and troubleshooting question) Where in the bootup or shutdown process does Mythtv set the flag indicating whether or not the system was woken up automatically (ACPI, nv-ram) vs. manually woken up by the user? I have my box doing auto-shutdown and ACPI auto-wakeup. But regardless of if I push the power button, or it auto-wakes, the mythbackendlog always indicates: "Seem to be woken up by USER". |
Author: | heilig [ Sun Jul 20, 2008 12:12 pm ] |
Post subject: | |
See here: http://knoppmyth.net/phpBB2/viewtopic.php?t=18224&postdays=0&postorder=asc&start=15 Basically, when mythwelcome starts it compares MythShutdownWakeupTime in the database to the current time, and if it is in a certain window (15 minutes, I think) it determines it has been auto-started, otherwise it was a manual boot. jens |
Author: | tzoom84 [ Mon Jul 21, 2008 7:41 pm ] |
Post subject: | |
Great reference. Thanks! I'll fiddle around and see if that field MythShutdownWakeupTime field in the settings sql table is being set before shutdown. I'll report back. |
Author: | tzoom84 [ Fri Jul 25, 2008 4:11 pm ] |
Post subject: | |
The reason for it not setting was a broken MythWelcome, and possibly some other items (likely due to a large dependencies list during an apt-get) A reinstall did the trick. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |