Results 1 to 5 of 5

Thread: Can't set(edit) wakealarm

  1. #1
    Join Date
    Nov 2009
    Beans
    27
    Distro
    Ubuntu 13.10 Saucy Salamander

    Unhappy [SOLVED] Can't set(edit) wakealarm

    Hi All

    I'm running 11.04 with the latest packages and I didn't have this problem with the previous version.

    I can't set a value in /sys/class/rtc/rtc0/wakealarm so the system will wake from suspend or poweroff.

    For some reason I can't seem to edit the file /sys/class/rtc/rtc0/wakealarm anymore no matter which user I am, including root.

    Anyone got any ideas ?

    Thanks.


    Code:
    root@pc:/# sudo sh -c "echo 0 > /sys/class/rtc/rtc0/wakealarm"
    root@pc:/# cat /sys/class/rtc/rtc0/wakealarm
    root@pc:/# 
    
    root@pc:/# sudo sh -c "echo `date '+%s' -d '+ 10 minutes'` > /sys/class/rtc/rtc0/wakealarm"
    root@pc:/# cat /sys/class/rtc/rtc0/wakealarm
    root@pc:/# 
    
    root@pc:/# cat /proc/driver/rtc
    rtc_time    : 15:11:58
    rtc_date    : 2011-05-19
    alrm_time    : 15:16:47
    alrm_date    : 2011-05-19
    alarm_IRQ    : no
    alrm_pending    : no
    24hr        : yes
    periodic_IRQ    : no
    update_IRQ    : no
    HPET_emulated    : yes
    BCD        : yes
    DST_enable    : no
    periodic_freq    : 1024
    batt_status    : okay
    
    root@pc:/# ls -lrt /sys/class/rtc/rtc0/wakealarm
    -rw-rw-r-- 1 root root 4096 2011-05-19 15:11 /sys/class/rtc/rtc0/wakealarm
    Last edited by inspiral; June 7th, 2011 at 10:58 AM.

  2. #2
    Join Date
    Nov 2009
    Beans
    27
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Can't set(edit) wakealarm

    Hi All

    I'm still stuck....I've just tried re installing the ACPI packages but it hasn't made any difference.

    Anyone got any ideas ?

    Thanks.

  3. #3
    Join Date
    Mar 2008
    Beans
    41

    Re: Can't set(edit) wakealarm

    I wish I could help but am also having exactly the same problem.
    I'm hoping by "bumping" this thread someone else may notice and help.

    Here's hoping.


    Blonddeeni

    PS: This worked fine with my Mythbuntu-8.10, but that got messed up with the "Database schema being too new for the mythtv front/backends. So am doing a complete reinstall using 11.04.
    eek!
    Last edited by Blonddeeni; June 7th, 2011 at 10:28 AM. Reason: PS:

  4. #4
    Join Date
    Nov 2009
    Beans
    27
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Can't set(edit) wakealarm

    Hi

    I have just managed to solve my particular issue though I'm not sure if it'll help you, hope so

    It turns out the problem as far as I can work out was not caused by updating the OS but the move between GMT(same as UTC) and BST(British Summer) time which is GMT+1.

    Prior to the time change everything worked find for me as the wake alarm commands use UTC and my local time was the same but when we moved to BST that changed.

    To fix the problem I changed a setting in /etc/default/rcS so that every time the OS shuts down its writes UTC to the BIOS sys date/time.

    My /etc/default/rcS now looks like this:
    Code:
    #
    # /etc/default/rcS
    #
    # Default settings for the scripts in /etc/rcS.d/
    #
    # For information about these variables see the rcS(5) manual page.
    #
    # This file belongs to the "initscripts" package.
    
    TMPTIME=0
    SULOGIN=no
    DELAYLOGIN=no
    UTC=yes
    VERBOSE=no
    FSCKFIX=no
    Note this solution won't work if your system dual boots with Windows as it requires the BIOS time to be local.

    Hope this helps.

  5. #5
    Join Date
    Mar 2008
    Beans
    41

    Re: Can't set(edit) wakealarm

    Thanks inspiral.

    I will try that when I get home on friday.

    I cannot think of anything else other than maybe 11.04 needs rtc alarm to be enabled in the bios. 8.10 didn't but who knows?

    Thanks again for your help.

    Cheers and enjoy the summer, cold and wet down here.

    B.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •