[mythtv-users] Carbon Footprint

Thomas Boehm mythtv-users at lists.boehmi.net
Thu Aug 29 14:52:31 UTC 2013


Daryl McDonald wrote:
>
>
>
> On Thu, Aug 29, 2013 at 10:27 AM, Stephen Worthington
> <stephen_agent at jsw.gen.nz <mailto:stephen_agent at jsw.gen.nz>> wrote:
>
>     On Thu, 29 Aug 2013 10:10:48 -0400, you wrote:
>
>
>     >If I understand correctly, logging off, instead of powering off
>     will allow
>     >myth to power off the box and thereby enable powering on for
>     recordings
>     >when set up properly.
>     >But I've hit a brick wall before I get that far, I'm following
>     the how-to
>     > for setting the alarm when clock is in RTC, I've swapped the
>     "&gt" command
>     >for ">." and even prefaced with "sudo" and still permission is
>     denied. What
>     >have I missed?
>     >
>     >daryl at daryl-A780L3C:~$ SECS=`date -u --date "2013-08-29 10:15:00"
>     +%s`
>     >daryl at daryl-A780L3C:~$ echo 0 >.; /sys/class/rtc/rtc0/wakealarm
>
>     That should be:
>
>       echo 0 >/sys/class/rtc/rtc0/wakealarm
>
>     >bash: .: Is a directory
>     >bash: /sys/class/rtc/rtc0/wakealarm: Permission denied
>     >daryl at daryl-A780L3C:~$ sudo echo 0 >.; /sys/class/rtc/rtc0/wakealarm
>
>       sudo echo 0 >/sys/class/rtc/rtc0/wakealarm
>
>     >bash: .: Is a directory
>     >bash: /sys/class/rtc/rtc0/wakealarm: Permission denied
>     >daryl at daryl-A780L3C:~$
>     >
>     >Daryl
>
>     As Chris Porter said, the &gt; on that web page is html for a >
>     character - it looks like the HTML editing software used to create the
>     page put it in automatically instead of the correct > character in the
>     examples, so wherever you see those characters in bash scripts inside
>     the boxes on that page, replace all 4 characters with one single >
>     character to get the correct syntax.
>
> I'm still getting permission denied:
>
>  daryl at daryl-A780L3C:~$ SECS=`date -u --date "2013-08-29 10:50:00" +%s`
> daryl at daryl-A780L3C:~$ echo 0 > /sys/class/rtc/rtc0/wakealarm
> bash: /sys/class/rtc/rtc0/wakealarm: Permission denied
> daryl at daryl-A780L3C:~$ echo $SECS > /sys/class/rtc/rtc0/wakealarm
> bash: /sys/class/rtc/rtc0/wakealarm: Permission denied
> daryl at daryl-A780L3C:~$ SECS=`date -u --date "2013-08-29 10:50:00" +%s`
> daryl at daryl-A780L3C:~$ sudo echo 0 > /sys/class/rtc/rtc0/wakealarm
> bash: /sys/class/rtc/rtc0/wakealarm: Permission denied
> daryl at daryl-A780L3C:~$ sudo echo $SECS > /sys/class/rtc/rtc0/wakealarm
> bash: /sys/class/rtc/rtc0/wakealarm: Permission denied
> daryl at daryl-A780L3C:~$ 
>
> what can I try now?
All these commands need root privileges. Either you use "sudo" in front
of each command or get a root shell with "sudo bash" and try all
commands there.

HTH
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130829/3c5189d4/attachment.html>


More information about the mythtv-users mailing list