/dev/rtc0 not enabled for wakeup events and Cannot write '0' to /sys/class/rtc/rtc0/wakealarm












0















I am having Ubuntu 13.04 desktop 64bit



When running rtcwake -s 30 , I get following results:



rtcwake: assuming RTC uses UTC ...
rtcwake: open failed: /sys/class/rtc/rtc0/device/power/wakeup: No such file or directory
rtcwake: /dev/rtc0 not enabled for wakeup events


Running fwts s3 --s3-quirks -a, I get a similar answer in the log:



Cannot write '0' to /sys/class/rtc/rtc0/wakealarm


Running sudo sh -c "echo 0 > /sys/class/rtc/rtc0/wakealarm , I get the result:



sh: 1: cannot create /sys/class/rtc/rtc0/wakealarm: Directory nonexistent


How this can be fixed ?



Or how to enable /dev/rtc0 ?










share|improve this question





























    0















    I am having Ubuntu 13.04 desktop 64bit



    When running rtcwake -s 30 , I get following results:



    rtcwake: assuming RTC uses UTC ...
    rtcwake: open failed: /sys/class/rtc/rtc0/device/power/wakeup: No such file or directory
    rtcwake: /dev/rtc0 not enabled for wakeup events


    Running fwts s3 --s3-quirks -a, I get a similar answer in the log:



    Cannot write '0' to /sys/class/rtc/rtc0/wakealarm


    Running sudo sh -c "echo 0 > /sys/class/rtc/rtc0/wakealarm , I get the result:



    sh: 1: cannot create /sys/class/rtc/rtc0/wakealarm: Directory nonexistent


    How this can be fixed ?



    Or how to enable /dev/rtc0 ?










    share|improve this question



























      0












      0








      0








      I am having Ubuntu 13.04 desktop 64bit



      When running rtcwake -s 30 , I get following results:



      rtcwake: assuming RTC uses UTC ...
      rtcwake: open failed: /sys/class/rtc/rtc0/device/power/wakeup: No such file or directory
      rtcwake: /dev/rtc0 not enabled for wakeup events


      Running fwts s3 --s3-quirks -a, I get a similar answer in the log:



      Cannot write '0' to /sys/class/rtc/rtc0/wakealarm


      Running sudo sh -c "echo 0 > /sys/class/rtc/rtc0/wakealarm , I get the result:



      sh: 1: cannot create /sys/class/rtc/rtc0/wakealarm: Directory nonexistent


      How this can be fixed ?



      Or how to enable /dev/rtc0 ?










      share|improve this question
















      I am having Ubuntu 13.04 desktop 64bit



      When running rtcwake -s 30 , I get following results:



      rtcwake: assuming RTC uses UTC ...
      rtcwake: open failed: /sys/class/rtc/rtc0/device/power/wakeup: No such file or directory
      rtcwake: /dev/rtc0 not enabled for wakeup events


      Running fwts s3 --s3-quirks -a, I get a similar answer in the log:



      Cannot write '0' to /sys/class/rtc/rtc0/wakealarm


      Running sudo sh -c "echo 0 > /sys/class/rtc/rtc0/wakealarm , I get the result:



      sh: 1: cannot create /sys/class/rtc/rtc0/wakealarm: Directory nonexistent


      How this can be fixed ?



      Or how to enable /dev/rtc0 ?







      13.04 power-management






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 16 '13 at 11:45







      user164718

















      asked Oct 12 '13 at 13:45









      David Van HuffelDavid Van Huffel

      3561314




      3561314






















          1 Answer
          1






          active

          oldest

          votes


















          0














          on my ubuntu 12.04 (64bit) system sudo rtcwake -s 30 -mode mem works as desired (but i need to set mode to 'mem' (=suspend to ram) or 'disk' as the default mode of 'standby' is not supported on my system (acer laptop).



          what hardware are you running your system on? does it have a rtc and can your system discover it (as a first step, check the output of ls -l /dev/rtc?)?



          your output-line rtcwake: open failed: /sys/class/rtc/rtc0/device/power/wakeup: No such file or directory
          might show a relevant part of the problem. on my system /sys/class/rtc/rtc0/device/power/wakeup is also not present (i don't get that error-msg) but a wakealarm-namedpipe is located in /sys/class/rtc/rtc0/wakealarm. does such exist on yours?



          if this is the case, try to directly write into it, e.g. through



          sudo sh -c ‘echo "+00-00-00 00:00:30" > /sys/class/rtc/rtc0/wakealarm'



          note that this command does not set your system into sleep but only schedules a wakeup-alarm, so you might need to put your system to standby/sleep yourself.



          then, what does cat /proc/driver/rtc say (especially lines starting with alrm_time, alrm_date and alrm_pending)?



          probably not an answer but i can't comment yet...



          EDIT: oops, just realized this was asked in 2012, not 2013...






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f357152%2fdev-rtc0-not-enabled-for-wakeup-events-and-cannot-write-0-to-sys-class-rtc-r%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            on my ubuntu 12.04 (64bit) system sudo rtcwake -s 30 -mode mem works as desired (but i need to set mode to 'mem' (=suspend to ram) or 'disk' as the default mode of 'standby' is not supported on my system (acer laptop).



            what hardware are you running your system on? does it have a rtc and can your system discover it (as a first step, check the output of ls -l /dev/rtc?)?



            your output-line rtcwake: open failed: /sys/class/rtc/rtc0/device/power/wakeup: No such file or directory
            might show a relevant part of the problem. on my system /sys/class/rtc/rtc0/device/power/wakeup is also not present (i don't get that error-msg) but a wakealarm-namedpipe is located in /sys/class/rtc/rtc0/wakealarm. does such exist on yours?



            if this is the case, try to directly write into it, e.g. through



            sudo sh -c ‘echo "+00-00-00 00:00:30" > /sys/class/rtc/rtc0/wakealarm'



            note that this command does not set your system into sleep but only schedules a wakeup-alarm, so you might need to put your system to standby/sleep yourself.



            then, what does cat /proc/driver/rtc say (especially lines starting with alrm_time, alrm_date and alrm_pending)?



            probably not an answer but i can't comment yet...



            EDIT: oops, just realized this was asked in 2012, not 2013...






            share|improve this answer




























              0














              on my ubuntu 12.04 (64bit) system sudo rtcwake -s 30 -mode mem works as desired (but i need to set mode to 'mem' (=suspend to ram) or 'disk' as the default mode of 'standby' is not supported on my system (acer laptop).



              what hardware are you running your system on? does it have a rtc and can your system discover it (as a first step, check the output of ls -l /dev/rtc?)?



              your output-line rtcwake: open failed: /sys/class/rtc/rtc0/device/power/wakeup: No such file or directory
              might show a relevant part of the problem. on my system /sys/class/rtc/rtc0/device/power/wakeup is also not present (i don't get that error-msg) but a wakealarm-namedpipe is located in /sys/class/rtc/rtc0/wakealarm. does such exist on yours?



              if this is the case, try to directly write into it, e.g. through



              sudo sh -c ‘echo "+00-00-00 00:00:30" > /sys/class/rtc/rtc0/wakealarm'



              note that this command does not set your system into sleep but only schedules a wakeup-alarm, so you might need to put your system to standby/sleep yourself.



              then, what does cat /proc/driver/rtc say (especially lines starting with alrm_time, alrm_date and alrm_pending)?



              probably not an answer but i can't comment yet...



              EDIT: oops, just realized this was asked in 2012, not 2013...






              share|improve this answer


























                0












                0








                0







                on my ubuntu 12.04 (64bit) system sudo rtcwake -s 30 -mode mem works as desired (but i need to set mode to 'mem' (=suspend to ram) or 'disk' as the default mode of 'standby' is not supported on my system (acer laptop).



                what hardware are you running your system on? does it have a rtc and can your system discover it (as a first step, check the output of ls -l /dev/rtc?)?



                your output-line rtcwake: open failed: /sys/class/rtc/rtc0/device/power/wakeup: No such file or directory
                might show a relevant part of the problem. on my system /sys/class/rtc/rtc0/device/power/wakeup is also not present (i don't get that error-msg) but a wakealarm-namedpipe is located in /sys/class/rtc/rtc0/wakealarm. does such exist on yours?



                if this is the case, try to directly write into it, e.g. through



                sudo sh -c ‘echo "+00-00-00 00:00:30" > /sys/class/rtc/rtc0/wakealarm'



                note that this command does not set your system into sleep but only schedules a wakeup-alarm, so you might need to put your system to standby/sleep yourself.



                then, what does cat /proc/driver/rtc say (especially lines starting with alrm_time, alrm_date and alrm_pending)?



                probably not an answer but i can't comment yet...



                EDIT: oops, just realized this was asked in 2012, not 2013...






                share|improve this answer













                on my ubuntu 12.04 (64bit) system sudo rtcwake -s 30 -mode mem works as desired (but i need to set mode to 'mem' (=suspend to ram) or 'disk' as the default mode of 'standby' is not supported on my system (acer laptop).



                what hardware are you running your system on? does it have a rtc and can your system discover it (as a first step, check the output of ls -l /dev/rtc?)?



                your output-line rtcwake: open failed: /sys/class/rtc/rtc0/device/power/wakeup: No such file or directory
                might show a relevant part of the problem. on my system /sys/class/rtc/rtc0/device/power/wakeup is also not present (i don't get that error-msg) but a wakealarm-namedpipe is located in /sys/class/rtc/rtc0/wakealarm. does such exist on yours?



                if this is the case, try to directly write into it, e.g. through



                sudo sh -c ‘echo "+00-00-00 00:00:30" > /sys/class/rtc/rtc0/wakealarm'



                note that this command does not set your system into sleep but only schedules a wakeup-alarm, so you might need to put your system to standby/sleep yourself.



                then, what does cat /proc/driver/rtc say (especially lines starting with alrm_time, alrm_date and alrm_pending)?



                probably not an answer but i can't comment yet...



                EDIT: oops, just realized this was asked in 2012, not 2013...







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 16 '13 at 11:19









                antiplexantiplex

                261310




                261310






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f357152%2fdev-rtc0-not-enabled-for-wakeup-events-and-cannot-write-0-to-sys-class-rtc-r%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    數位音樂下載

                    格利澤436b

                    When can things happen in Etherscan, such as the picture below?