Opened 14 years ago
Closed 9 years ago
#10197 closed Bug Report - General (Unverified)
Shutdown from Mythwelcome does not trigger wakeup
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | MythTV - Mythwelcome & Mythshutdown | Version: | Master Head |
| Severity: | medium | Keywords: | mythwelcome wakeup shutdown |
| Cc: | Ticket locked: | no |
Description
In a combined mythbackend and mythfrontend, mythwelcome does not trigger the set wakeup routine when selecting 'Shutdown now'
Change History (4)
comment:1 by , 14 years ago
| Component: | MythTV - General → MythTV - Mythwelcome & Mythshutdown |
|---|
comment:3 by , 9 years ago
Replying to Matthias Hofmann <borim7@…>:
The configured "command to set wakeup time" (in my case: sudo /usr/sbin/rtcwake -m no -t $time) is not executed, when "mythshutdown --shutdown" is executed. Instead the default command "/usr/bin/nvram-wakeup --settime $time" is executed.
In the source code at mythtv/programs/mythshutdown/main.cpp:659 the command is fetched from the configuration and always the default command is returned. Another point is that the configuration is fetched in another way as in the rest of the file. Normally the static function getGlobalSetting is used, but for the wakeup time command "gCoreContext->GetSetting(...)" is used. I do not know if this is the reason for the bug.
This means you haven't configured mythwelcome/mythshutdown properly. There is one setting in mythtv-setup and another in mythwelcome. You have most likely only configured the one in mythtv-setup but not the one in mythwelcome. See https://www.mythtv.org/wiki/Mythwelcome and/or https://www.mythtv.org/wiki/ACPI_Wakeup.
comment:4 by , 9 years ago
| Resolution: | → Unverified |
|---|---|
| Status: | new → closed |
It's unclear to me which of the two settings mentioned in the previous comment the reporter experienced problems with but the code looks ok to me. Feel free to reopen the ticket if you can still reproduce it after all these years and you have more information.

The configured "command to set wakeup time" (in my case: sudo /usr/sbin/rtcwake -m no -t $time) is not executed, when "mythshutdown --shutdown" is executed. Instead the default command "/usr/bin/nvram-wakeup --settime $time" is executed.
In the source code at mythtv/programs/mythshutdown/main.cpp:659 the command is fetched from the configuration and always the default command is returned. Another point is that the configuration is fetched in another way as in the rest of the file. Normally the static function getGlobalSetting is used, but for the wakeup time command "gCoreContext->GetSetting(...)" is used. I do not know if this is the reason for the bug.
When this bug gets fixed, it would be nice if mythshutdown gets an option to set the wakeup time without shutting down.
I use: