When screen turns off the laptop goes hibernate / sleep

Issues related to applications and software problems and general support
Post Reply
orudie
Posts: 22
Joined: 2013/01/29 03:20:14

When screen turns off the laptop goes hibernate / sleep

Post by orudie » 2023/05/22 00:11:37

On my Dell laptop for some reason when my screen gets automatically turned off by the OS, it goes hibernate or sleep, and I can never recover it from that state by pressing any buttons.

I want to disable hibernate and sleep entirely!

I ran the command below which created a bunch of symlinks, but it didn't help. Right after the screen gets automatically turned off, my laptop enters hybernate or sleep.

systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
○ sleep.target
Loaded: masked (Reason: Unit sleep.target is masked.)
Active: inactive (dead)

○ suspend.target
Loaded: masked (Reason: Unit suspend.target is masked.)
Active: inactive (dead)

○ hibernate.target
Loaded: masked (Reason: Unit hibernate.target is masked.)
Active: inactive (dead)

○ hybrid-sleep.target
Loaded: masked (Reason: Unit hybrid-sleep.target is masked.)
Active: inactive (dead)


Ideas, suggestions?
Regards

BShT
Posts: 585
Joined: 2019/10/09 12:31:40

Re: When screen turns off the laptop goes hibernate / sleep

Post by BShT » 2023/05/22 11:46:58

try to set this at gnome config

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: When screen turns off the laptop goes hibernate / sleep

Post by TrevorH » 2023/05/22 16:35:58

You might also check in /var/log/messages to see if you can find out why the suspend/resume does not work.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply