You are not logged in.

#1 2016-08-31 19:03:24

Disco Dave
Member
Registered: 2014-12-31
Posts: 91

XFCE, Laptop Sleeps when lid closed, but I have set to do nothing

Hello,
   Recently I noticed that when my laptop lid is closed my computer goes to sleep, which is a problem for me because for some reason sleep doesn't work and will cause my computer to freeze. In the xfce-power-manager I have it set to "switch off display" but every time I close my laptop lid, the computer goes to sleep anyway. I have TLP installed, but I dont think it's tlp because when I uninstalled the problem still existed. Does anyone have any ideas of how to help?

Please and hank you,
     Disco

Offline

#2 2016-08-31 22:09:32

psorek
Member
Registered: 2012-08-26
Posts: 13

Re: XFCE, Laptop Sleeps when lid closed, but I have set to do nothing

Guess what. Same issue, KDE. "nothing" set on lid close action in KCM power management module.

Offline

#3 2016-09-01 01:00:05

jeppybro
Member
From: Austin
Registered: 2016-08-29
Posts: 3

Re: XFCE, Laptop Sleeps when lid closed, but I have set to do nothing

XFCE;  happening here too with no sleep configured. Doesn't really bother me as it works fine when I reopen it and login, but still would like to know why.

Offline

#4 2016-09-01 01:09:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,524
Website

Re: XFCE, Laptop Sleeps when lid closed, but I have set to do nothing

What is in the HandleLidSwitch settings of logind.conf?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2016-09-01 02:14:58

jeppybro
Member
From: Austin
Registered: 2016-08-29
Posts: 3

Re: XFCE, Laptop Sleeps when lid closed, but I have set to do nothing

#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore

Commented out.

Last edited by jeppybro (2016-09-01 02:16:21)

Offline

#6 2016-09-01 11:34:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,524
Website

Re: XFCE, Laptop Sleeps when lid closed, but I have set to do nothing

That's why it is suspending.  That is the default unless you change it.

In most config files, commented out lines show the default value.  You must uncomment the line and change the setting if you want different behavior.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2016-09-01 21:03:27

tuxayo
Member
Registered: 2013-02-26
Posts: 27

Re: XFCE, Laptop Sleeps when lid closed, but I have set to do nothing

I also have this issue with XFCE since updating:

cantarell-fonts (1:0.0.24-1 -> 1:0.0.25-1)
gstreamer (1.8.2-1 -> 1.8.3-1)
gst-plugins-base-libs (1.8.2-1 -> 1.8.3-1)
gst-libav (1.8.2-2 -> 1.8.3-1)
wildmidi (0.3.9-1 -> 0.4.0-1)
gst-plugins-bad (1.8.2-4 -> 1.8.3-1)
gst-plugins-base (1.8.2-1 -> 1.8.3-1)
gst-plugins-good (1.8.2-2 -> 1.8.3-1)
gst-plugins-ugly (1.8.2-1 -> 1.8.3-1)
gstreamer-vaapi (1.8.2-1 -> 1.8.3-1)
gstreamer0.10-bad (0.10.23-17 -> 0.10.23-18)
gstreamer0.10-bad-plugins (0.10.23-17 -> 0.10.23-18)
lib32-lcms2 (2.7-1 -> 2.8-1)
libwacom (0.21-1 -> 0.22-1)
linux (4.7-1 -> 4.7.1-1)
linux-headers (4.7-1 -> 4.7.1-1)
poppler (0.46.0-2 -> 0.47.0-1)
poppler-glib (0.46.0-2 -> 0.47.0-1)
poppler-qt4 (0.46.0-2 -> 0.47.0-1)
poppler-qt5 (0.46.0-2 -> 0.47.0-1)
python2-cryptography (1.4-1 -> 1.4-2)
xfsprogs (4.5.0-1 -> 4.7.0-1)

I'm not sure 100% that this was the problematic upgrade since the only relevant package would be the kernel. And switching to the LTS kernel didn't fix the issue.

Trilby wrote:

That's why it is suspending.  That is the default unless you change it.
In most config files, commented out lines show the default value.  You must uncomment the line and change the setting if you want different behavior.

Does anyone know why the XFCE and KDE power managers can't override this setting anymore?

Offline

#8 2016-09-13 20:41:55

tuxayo
Member
Registered: 2013-02-26
Posts: 27

Re: XFCE, Laptop Sleeps when lid closed, but I have set to do nothing

I changed /etc/systemd/logind.conf and still the same issue.

Here are relevant files if it can help with the issue.

~/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml
[...]
<property name="lid-action-on-battery" type="uint" value="0"/>
<property name="logind-handle-lid-switch" type="bool" value="false"/>
<property name="lid-action-on-ac" type="uint" value="0"/>

/etc/systemd/logind.conf
[...]
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore # default: suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%

Offline

#9 2016-09-25 14:14:58

tuxayo
Member
Registered: 2013-02-26
Posts: 27

Re: XFCE, Laptop Sleeps when lid closed, but I have set to do nothing

I've finally found the cause of my issue.

I wrote `HandleLidSwitch=ignore # default: suspend` which is invalid and lead to
systemd-logind[8925]: [/etc/systemd/logind.conf:24] Failed to parse handle action setting, ignoring: ignore # default: suspend

when loading the conf.

So moving the comment on the next line solved the issue. Thanks sharing your issues and advice! smile

Offline

Board footer

Powered by FluxBB