You are not logged in.

#1 2016-01-27 12:02:35

VVedran
Member
Registered: 2015-10-10
Posts: 19

Suspend when idle

Hello everyone. first time posting here, can't find solution for my problem anywhere so here it is, I am using arch with openbox as my WM, and until now I was using xfce4-power-manager and can't figure it out how NOT to suspend computer when watching youtube or movie etc. Caffeine is working great just for keeping monitor on and off but computer is going to suspend/sleep mode with caffeine on. I removed power xfce manager and tried configure logind.conf file by putting IdleAction on "suspend" and IdleActionSec on 1min just to try if it works but nothing happens. Bottom line is: I want computer to suspend when idle and not to when is working something (youtube, audacuious plays music etc). Is it possible?

Thank in advance!!

ps: I restarted systemctl-logind.service and whole computer manually also.?

Hope this tread is on right place.

Offline

#2 2016-01-27 12:12:50

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Suspend when idle

Have a look at the output of:

xset -q

The screensaver and DPMS are probably on, deactivate them with:

xset s off -dpms

EDIT: Sorry, you're talking about suspend aren't you?

Post the content of /etc/systemd/logind.conf

Last edited by Head_on_a_Stick (2016-01-27 12:16:35)


Jin, Jîyan, Azadî

Offline

#3 2016-01-27 12:31:46

VVedran
Member
Registered: 2015-10-10
Posts: 19

Re: Suspend when idle

yea, suspend mode or sleep, here you go:

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
IdleAction=suspend
IdleActionSec=1min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#UserTasksMax=4096

Last edited by VVedran (2016-01-27 12:36:28)

Offline

#4 2016-01-27 12:50:12

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Suspend when idle

Are there any inhibitors running?

systemd-inhibit

The logind.conf(5) man page says:

Note that this requires that user sessions correctly report the idle status to the system.

Not sure exactly how you would check this though...
hmm

Last edited by Head_on_a_Stick (2016-01-27 12:50:55)


Jin, Jîyan, Azadî

Offline

#5 2016-01-27 12:51:47

VVedran
Member
Registered: 2015-10-10
Posts: 19

Re: Suspend when idle

one inhibitor listed - network manager

Offline

Board footer

Powered by FluxBB