[mythtv-users] Mythwelcome doesnt trigger setwakeup

Mike Perkins mikep at randomtraveller.org.uk
Fri Mar 9 10:55:14 UTC 2012


On 08/03/12 22:01, Rajil Saraswat wrote:
> Hi all,
>
> I have a common BE/FE which I have configured to shutdown/bootup using
> ACPI alarm. I have followed the ACPI_Wakeup article on the wiki and am
> using the same settings as specified under mythwelcome (reproduced
> below).
>
> Mythwelcome correctly shuts down the system on idle, however it does
> not trigger the  "sudo /usr/bin/setwakeup.sh $time" command. Thus my
> system never wakes up. Somebody else has also reported a bug about
> this ( http://code.mythtv.org/trac/ticket/10197). The only way i can
> register the alarm is if i manually issue 'mythshutdown -x'  command
> via cli.
>
>   Is there any work around for this?
>
>
>
> #Myth-Setup settings
>
> Block shutdown before client connected : unchecked
> Idle shutdown timeout (secs)           : 120 (if using active EIT this
> may need to be set to a lower value)
> Max. wait for recording (min)          : 15
> Startup before rec. (secs)             : 600
> Wakeup time format                     : yyyy-MM-ddThh:mm:ss
> Command to set Wakeup Time        : mythshutdown --setwakeup $time
> Server halt command                    : mythshutdown --shutdown
> Pre Shutdown check-command      : mythshutdown --check
>
> #Mythwelcome settings
> Command to set wakeup time             : sudo /usr/bin/setwakeup.sh $time
> Wakeup time format                     : time_t
> nvram-wakeup Restart command         : blank
> Command to shutdown                    : sudo shutdown -h now
> Command to start the frontend          : /usr/bin/mythfrontend
>
Have you checked your system logs? A related problem happened to me while I was 
commissioning a new minimyth front end recently. It all worked with one 
exception: the shutdown command was ignored. This was using the exact same code 
as another front end, so I knew that the software was ok.

Looked in syslog, and saw 'sudo: file not found'.

Turns out that when the system was set up, with a new hostname therefore a fresh 
set of hosts settings, the shutdown command defaults to 'sudo /usr/bin/shutdown 
-h now'. There's no sudo in minimyth. Changed the command to '/bin/halt' (using 
front-end setup) and it all worked.

Your problem may be something similar. Try removing the 'sudo' from the front of 
your command. Another possibility is that you need sudo, but the /etc/sudoers 
file isn't correctly set up. If it isn't either of those, check syslog in any 
case, you may find a clue.

-- 

Mike Perkins



More information about the mythtv-users mailing list