Not able to hibernate or suspend centos system Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionI'm not able connect internet from vmware player with centosCentOS 6.5 will not sleep after period of inactivityHow to run systemd user service to trigger on sleep (aka. suspend, hibernate)?Not Able to run telnet service on CentOS machineNot able to mount centos serverkeep CentOS 7 from sleepingNot able to SSH from CentOS to CentOSCentOS hibernate state expires?Can't suspend Debian machine: wakes up immediately after sleep (“PM: Device usb1 failed to suspend async”)Suspend delayed after lid close

Is a manifold-with-boundary with given interior and non-empty boundary essentially unique?

I am not a queen, who am I?

What is a Meta algorithm?

Why is black pepper both grey and black?

When to stop saving and start investing?

Right-skewed distribution with mean equals to mode?

"Seemed to had" is it correct?

Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?

Is there a documented rationale why the House Ways and Means chairman can demand tax info?

What is the longest distance a 13th-level monk can jump while attacking on the same turn?

Using et al. for a last / senior author rather than for a first author

Does accepting a pardon have any bearing on trying that person for the same crime in a sovereign jurisdiction?

Letter Boxed validator

Determinant is linear as a function of each of the rows of the matrix.

How does a Death Domain cleric's Touch of Death feature work with Touch-range spells delivered by familiars?

The logistics of corpse disposal

Sorting numerically

What would be the ideal power source for a cybernetic eye?

Did Kevin spill real chili?

How to find all the available tools in macOS terminal?

Proof involving the spectral radius and the Jordan canonical form

Why is "Captain Marvel" translated as male in Portugal?

If 'B is more likely given A', then 'A is more likely given B'

Why are there no cargo aircraft with "flying wing" design?



Not able to hibernate or suspend centos system



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionI'm not able connect internet from vmware player with centosCentOS 6.5 will not sleep after period of inactivityHow to run systemd user service to trigger on sleep (aka. suspend, hibernate)?Not Able to run telnet service on CentOS machineNot able to mount centos serverkeep CentOS 7 from sleepingNot able to SSH from CentOS to CentOSCentOS hibernate state expires?Can't suspend Debian machine: wakes up immediately after sleep (“PM: Device usb1 failed to suspend async”)Suspend delayed after lid close



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am running Centos 7 and all I want to do is make my computer go to sleep immediately. There is a setting I have set to make my computer go to sleep but only after a certain amount of inactivity but when I leave work, I want to be able to make it go to sleep immediately right after instead of turning my computer off.



I looked and found this link
https://www.cyberciti.biz/faq/linux-command-to-suspend-hibernate-laptop-netbook-pc/
and I tried both commands



sudo systemctl suspend


and



sudo systemctl hibernate 


and get the message



A dependency job for suspend.target failed. See 'journalctl -xe' for details.


I just want to be able to make my computer go to sleep so that I can pick up from where I left off the day before instead of turning off my computer everytime I leave from work.










share|improve this question






























    0















    I am running Centos 7 and all I want to do is make my computer go to sleep immediately. There is a setting I have set to make my computer go to sleep but only after a certain amount of inactivity but when I leave work, I want to be able to make it go to sleep immediately right after instead of turning my computer off.



    I looked and found this link
    https://www.cyberciti.biz/faq/linux-command-to-suspend-hibernate-laptop-netbook-pc/
    and I tried both commands



    sudo systemctl suspend


    and



    sudo systemctl hibernate 


    and get the message



    A dependency job for suspend.target failed. See 'journalctl -xe' for details.


    I just want to be able to make my computer go to sleep so that I can pick up from where I left off the day before instead of turning off my computer everytime I leave from work.










    share|improve this question


























      0












      0








      0








      I am running Centos 7 and all I want to do is make my computer go to sleep immediately. There is a setting I have set to make my computer go to sleep but only after a certain amount of inactivity but when I leave work, I want to be able to make it go to sleep immediately right after instead of turning my computer off.



      I looked and found this link
      https://www.cyberciti.biz/faq/linux-command-to-suspend-hibernate-laptop-netbook-pc/
      and I tried both commands



      sudo systemctl suspend


      and



      sudo systemctl hibernate 


      and get the message



      A dependency job for suspend.target failed. See 'journalctl -xe' for details.


      I just want to be able to make my computer go to sleep so that I can pick up from where I left off the day before instead of turning off my computer everytime I leave from work.










      share|improve this question
















      I am running Centos 7 and all I want to do is make my computer go to sleep immediately. There is a setting I have set to make my computer go to sleep but only after a certain amount of inactivity but when I leave work, I want to be able to make it go to sleep immediately right after instead of turning my computer off.



      I looked and found this link
      https://www.cyberciti.biz/faq/linux-command-to-suspend-hibernate-laptop-netbook-pc/
      and I tried both commands



      sudo systemctl suspend


      and



      sudo systemctl hibernate 


      and get the message



      A dependency job for suspend.target failed. See 'journalctl -xe' for details.


      I just want to be able to make my computer go to sleep so that I can pick up from where I left off the day before instead of turning off my computer everytime I leave from work.







      centos sleep






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 12 at 15:03









      Rui F Ribeiro

      42.1k1483142




      42.1k1483142










      asked Apr 11 at 20:49









      AMVPlusPlusAMVPlusPlus

      275




      275




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Do you have either the pm-suspend or pm-hibernate programs installed? These tools work independently of systemd, and thus would not be affected by systemd's problem. You can get both of these tools from the package pm-utils, although IDK if that package is available on CentOS (it's not in Fedora), so you might have to build it from source. You can get it from this git repo: git://anongit.freedesktop.org/git/pm-utils



          You could also try install the uswusp package, although that might not be available in CenOS's repos, either. If you install this, you can use s2disk to hibernate, and s2ram to suspend to ram. You can get this program from Sourceforge.



          A third option is to tell the system to suspend directly, without calling a specific program. This can be done by overwriting the /sys/power/state file with with "disk" to hibernate, or with "mem" to suspend. Do note that this file can only be modified by root. You could overwrite it by doing something like sudo sh -c 'printf mem > /sys/power/state', or echo disk | sudo dd status=none of=/sys/power/state.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f511993%2fnot-able-to-hibernate-or-suspend-centos-system%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














            Do you have either the pm-suspend or pm-hibernate programs installed? These tools work independently of systemd, and thus would not be affected by systemd's problem. You can get both of these tools from the package pm-utils, although IDK if that package is available on CentOS (it's not in Fedora), so you might have to build it from source. You can get it from this git repo: git://anongit.freedesktop.org/git/pm-utils



            You could also try install the uswusp package, although that might not be available in CenOS's repos, either. If you install this, you can use s2disk to hibernate, and s2ram to suspend to ram. You can get this program from Sourceforge.



            A third option is to tell the system to suspend directly, without calling a specific program. This can be done by overwriting the /sys/power/state file with with "disk" to hibernate, or with "mem" to suspend. Do note that this file can only be modified by root. You could overwrite it by doing something like sudo sh -c 'printf mem > /sys/power/state', or echo disk | sudo dd status=none of=/sys/power/state.






            share|improve this answer



























              0














              Do you have either the pm-suspend or pm-hibernate programs installed? These tools work independently of systemd, and thus would not be affected by systemd's problem. You can get both of these tools from the package pm-utils, although IDK if that package is available on CentOS (it's not in Fedora), so you might have to build it from source. You can get it from this git repo: git://anongit.freedesktop.org/git/pm-utils



              You could also try install the uswusp package, although that might not be available in CenOS's repos, either. If you install this, you can use s2disk to hibernate, and s2ram to suspend to ram. You can get this program from Sourceforge.



              A third option is to tell the system to suspend directly, without calling a specific program. This can be done by overwriting the /sys/power/state file with with "disk" to hibernate, or with "mem" to suspend. Do note that this file can only be modified by root. You could overwrite it by doing something like sudo sh -c 'printf mem > /sys/power/state', or echo disk | sudo dd status=none of=/sys/power/state.






              share|improve this answer

























                0












                0








                0







                Do you have either the pm-suspend or pm-hibernate programs installed? These tools work independently of systemd, and thus would not be affected by systemd's problem. You can get both of these tools from the package pm-utils, although IDK if that package is available on CentOS (it's not in Fedora), so you might have to build it from source. You can get it from this git repo: git://anongit.freedesktop.org/git/pm-utils



                You could also try install the uswusp package, although that might not be available in CenOS's repos, either. If you install this, you can use s2disk to hibernate, and s2ram to suspend to ram. You can get this program from Sourceforge.



                A third option is to tell the system to suspend directly, without calling a specific program. This can be done by overwriting the /sys/power/state file with with "disk" to hibernate, or with "mem" to suspend. Do note that this file can only be modified by root. You could overwrite it by doing something like sudo sh -c 'printf mem > /sys/power/state', or echo disk | sudo dd status=none of=/sys/power/state.






                share|improve this answer













                Do you have either the pm-suspend or pm-hibernate programs installed? These tools work independently of systemd, and thus would not be affected by systemd's problem. You can get both of these tools from the package pm-utils, although IDK if that package is available on CentOS (it's not in Fedora), so you might have to build it from source. You can get it from this git repo: git://anongit.freedesktop.org/git/pm-utils



                You could also try install the uswusp package, although that might not be available in CenOS's repos, either. If you install this, you can use s2disk to hibernate, and s2ram to suspend to ram. You can get this program from Sourceforge.



                A third option is to tell the system to suspend directly, without calling a specific program. This can be done by overwriting the /sys/power/state file with with "disk" to hibernate, or with "mem" to suspend. Do note that this file can only be modified by root. You could overwrite it by doing something like sudo sh -c 'printf mem > /sys/power/state', or echo disk | sudo dd status=none of=/sys/power/state.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 11 at 22:54









                TSJNachos117TSJNachos117

                1816




                1816



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f511993%2fnot-able-to-hibernate-or-suspend-centos-system%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

                    getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                    Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                    NetworkManager fails with “Could not find source connection”Trouble connecting to VPN using network-manager, while command line worksHow can I be notified about state changes to a VPN adapterBacktrack 5 R3 - Refuses to connect to VPNFeed all traffic through OpenVPN for a specific network namespace onlyRun daemon on startup in Debian once openvpn connection establishedpfsense tcp connection between openvpn and lan is brokenInternet connection problem with web browsers onlyWhy does NetworkManager explicitly support tun/tap devices?Browser issues with VPNTwo IP addresses assigned to the same network card - OpenVPN issues?Cannot connect to WiFi with nmcli, although secrets are provided