You are not logged in.

#1 2021-01-10 17:34:53

mkemorgn
Member
Registered: 2021-01-08
Posts: 14

[SOLVED] Prevent sleep on laptop

I have an issue where when my laptop goes to sleep after inactivity it's not possible to bring back.  I have to turn it off and turn it back on.  I figure the easiest solution is to disable sleep altogether.  I've tried a few things already with no success:

I went to the systemd and into the login.conf and IdleAction is set to ignore already and I changed the IdleActionSec to something extremely high, saved it and rebooted everything.  Still went to sleep after maybe 30 mins. 

I followed the instructions at this link: https://ostechnix.com/linux-tips-disabl … bernation/

Same results. 

I was wondering if anyone had any other solutions for how to prevent sleep.  I just want my computer to remain on indefinitely until I decide to turn it off. 

I am running dwm with no display manager if that matters at all.  Thanks.

Last edited by mkemorgn (2021-01-10 23:08:57)

Offline

#2 2021-01-10 18:43:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] Prevent sleep on laptop

How are you starting dwm? If via .xinitrc it needs to contain the necessary script executions so that logind properly knows about your graphical session https://wiki.archlinux.org/index.php/Xinit#xinitrc

What could also be is that you are actually running into DPMS rather than suspension which aren't the same thing: https://wiki.archlinux.org/index.php/Di … _Signaling

Offline

#3 2021-01-10 23:08:38

mkemorgn
Member
Registered: 2021-01-08
Posts: 14

Re: [SOLVED] Prevent sleep on laptop

Thanks.  I figured it out using this article on arch wiki:

https://wiki.archlinux.org/index.php/Di … bling_DPMS

xset s off -dpms

I'm pretty sure this is the command that solved the issue for me if anyone else has this same issue.

Offline

Board footer

Powered by FluxBB