How to use the rtcwake command












1















I would like to get my rtcwake command to wake my computer from sleep at 06:00 the following day.



Here is the command I'm using:



rtcwake -m mem -u -t $(date +%s -d "tomorrow 06:00")


So far it isn't waking. Any ideas?










share|improve this question

























  • posted this for me. I have it in a cronjob and the going to sleep part works but it never wakes up. I have to manually wake it and when i do that the computer says the time is still the time that it went to sleep.

    – basketball
    Oct 4 '14 at 14:05











  • @basketball I am not sure I get this right, ryanlee posted this for you?

    – Jacob Vlijm
    Oct 5 '14 at 7:44











  • @JacobVlijm yes

    – basketball
    Oct 5 '14 at 15:02











  • @basketball does the sudo work for you? If not, I'll remove the answer, if it does, would you ask ryanlee to accept the answer? otherwise it will continue to appear as unanswered.

    – Jacob Vlijm
    Oct 5 '14 at 15:07













  • @JacobVlijm no it does not work. are you in #ubuntu?

    – basketball
    Oct 5 '14 at 15:58
















1















I would like to get my rtcwake command to wake my computer from sleep at 06:00 the following day.



Here is the command I'm using:



rtcwake -m mem -u -t $(date +%s -d "tomorrow 06:00")


So far it isn't waking. Any ideas?










share|improve this question

























  • posted this for me. I have it in a cronjob and the going to sleep part works but it never wakes up. I have to manually wake it and when i do that the computer says the time is still the time that it went to sleep.

    – basketball
    Oct 4 '14 at 14:05











  • @basketball I am not sure I get this right, ryanlee posted this for you?

    – Jacob Vlijm
    Oct 5 '14 at 7:44











  • @JacobVlijm yes

    – basketball
    Oct 5 '14 at 15:02











  • @basketball does the sudo work for you? If not, I'll remove the answer, if it does, would you ask ryanlee to accept the answer? otherwise it will continue to appear as unanswered.

    – Jacob Vlijm
    Oct 5 '14 at 15:07













  • @JacobVlijm no it does not work. are you in #ubuntu?

    – basketball
    Oct 5 '14 at 15:58














1












1








1








I would like to get my rtcwake command to wake my computer from sleep at 06:00 the following day.



Here is the command I'm using:



rtcwake -m mem -u -t $(date +%s -d "tomorrow 06:00")


So far it isn't waking. Any ideas?










share|improve this question
















I would like to get my rtcwake command to wake my computer from sleep at 06:00 the following day.



Here is the command I'm using:



rtcwake -m mem -u -t $(date +%s -d "tomorrow 06:00")


So far it isn't waking. Any ideas?







command-line






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 4 '14 at 2:59









bcbc

5,84942966




5,84942966










asked Oct 4 '14 at 0:40









ryanleesipesryanleesipes

9116




9116













  • posted this for me. I have it in a cronjob and the going to sleep part works but it never wakes up. I have to manually wake it and when i do that the computer says the time is still the time that it went to sleep.

    – basketball
    Oct 4 '14 at 14:05











  • @basketball I am not sure I get this right, ryanlee posted this for you?

    – Jacob Vlijm
    Oct 5 '14 at 7:44











  • @JacobVlijm yes

    – basketball
    Oct 5 '14 at 15:02











  • @basketball does the sudo work for you? If not, I'll remove the answer, if it does, would you ask ryanlee to accept the answer? otherwise it will continue to appear as unanswered.

    – Jacob Vlijm
    Oct 5 '14 at 15:07













  • @JacobVlijm no it does not work. are you in #ubuntu?

    – basketball
    Oct 5 '14 at 15:58



















  • posted this for me. I have it in a cronjob and the going to sleep part works but it never wakes up. I have to manually wake it and when i do that the computer says the time is still the time that it went to sleep.

    – basketball
    Oct 4 '14 at 14:05











  • @basketball I am not sure I get this right, ryanlee posted this for you?

    – Jacob Vlijm
    Oct 5 '14 at 7:44











  • @JacobVlijm yes

    – basketball
    Oct 5 '14 at 15:02











  • @basketball does the sudo work for you? If not, I'll remove the answer, if it does, would you ask ryanlee to accept the answer? otherwise it will continue to appear as unanswered.

    – Jacob Vlijm
    Oct 5 '14 at 15:07













  • @JacobVlijm no it does not work. are you in #ubuntu?

    – basketball
    Oct 5 '14 at 15:58

















posted this for me. I have it in a cronjob and the going to sleep part works but it never wakes up. I have to manually wake it and when i do that the computer says the time is still the time that it went to sleep.

– basketball
Oct 4 '14 at 14:05





posted this for me. I have it in a cronjob and the going to sleep part works but it never wakes up. I have to manually wake it and when i do that the computer says the time is still the time that it went to sleep.

– basketball
Oct 4 '14 at 14:05













@basketball I am not sure I get this right, ryanlee posted this for you?

– Jacob Vlijm
Oct 5 '14 at 7:44





@basketball I am not sure I get this right, ryanlee posted this for you?

– Jacob Vlijm
Oct 5 '14 at 7:44













@JacobVlijm yes

– basketball
Oct 5 '14 at 15:02





@JacobVlijm yes

– basketball
Oct 5 '14 at 15:02













@basketball does the sudo work for you? If not, I'll remove the answer, if it does, would you ask ryanlee to accept the answer? otherwise it will continue to appear as unanswered.

– Jacob Vlijm
Oct 5 '14 at 15:07







@basketball does the sudo work for you? If not, I'll remove the answer, if it does, would you ask ryanlee to accept the answer? otherwise it will continue to appear as unanswered.

– Jacob Vlijm
Oct 5 '14 at 15:07















@JacobVlijm no it does not work. are you in #ubuntu?

– basketball
Oct 5 '14 at 15:58





@JacobVlijm no it does not work. are you in #ubuntu?

– basketball
Oct 5 '14 at 15:58










2 Answers
2






active

oldest

votes


















1














Following link already has your answer:
Automatically sleep and wake-up at specific times



Also, you can check more about rtcwake using following:




  1. Press, Ctrl+Alt+T.


  2. Type in, $ man rtcwake







share|improve this answer


























  • that didnt work

    – basketball
    Oct 12 '14 at 5:18



















0














I dont know why but in order for rtcwake to work inside of cronjob, you must run sudo crontab -e and then pastesudo rtcwake -m mem -u -t $(date +%s -d "tomorrow 06:00").






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%2f531997%2fhow-to-use-the-rtcwake-command%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Following link already has your answer:
    Automatically sleep and wake-up at specific times



    Also, you can check more about rtcwake using following:




    1. Press, Ctrl+Alt+T.


    2. Type in, $ man rtcwake







    share|improve this answer


























    • that didnt work

      – basketball
      Oct 12 '14 at 5:18
















    1














    Following link already has your answer:
    Automatically sleep and wake-up at specific times



    Also, you can check more about rtcwake using following:




    1. Press, Ctrl+Alt+T.


    2. Type in, $ man rtcwake







    share|improve this answer


























    • that didnt work

      – basketball
      Oct 12 '14 at 5:18














    1












    1








    1







    Following link already has your answer:
    Automatically sleep and wake-up at specific times



    Also, you can check more about rtcwake using following:




    1. Press, Ctrl+Alt+T.


    2. Type in, $ man rtcwake







    share|improve this answer















    Following link already has your answer:
    Automatically sleep and wake-up at specific times



    Also, you can check more about rtcwake using following:




    1. Press, Ctrl+Alt+T.


    2. Type in, $ man rtcwake








    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 13 '17 at 12:23









    Community

    1




    1










    answered Oct 4 '14 at 4:47









    devGeekdevGeek

    4692416




    4692416













    • that didnt work

      – basketball
      Oct 12 '14 at 5:18



















    • that didnt work

      – basketball
      Oct 12 '14 at 5:18

















    that didnt work

    – basketball
    Oct 12 '14 at 5:18





    that didnt work

    – basketball
    Oct 12 '14 at 5:18













    0














    I dont know why but in order for rtcwake to work inside of cronjob, you must run sudo crontab -e and then pastesudo rtcwake -m mem -u -t $(date +%s -d "tomorrow 06:00").






    share|improve this answer




























      0














      I dont know why but in order for rtcwake to work inside of cronjob, you must run sudo crontab -e and then pastesudo rtcwake -m mem -u -t $(date +%s -d "tomorrow 06:00").






      share|improve this answer


























        0












        0








        0







        I dont know why but in order for rtcwake to work inside of cronjob, you must run sudo crontab -e and then pastesudo rtcwake -m mem -u -t $(date +%s -d "tomorrow 06:00").






        share|improve this answer













        I dont know why but in order for rtcwake to work inside of cronjob, you must run sudo crontab -e and then pastesudo rtcwake -m mem -u -t $(date +%s -d "tomorrow 06:00").







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 2 '14 at 18:23









        basketballbasketball

        81214




        81214






























            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%2f531997%2fhow-to-use-the-rtcwake-command%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

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局