You are not logged in.

#1 2015-03-01 18:14:34

ali_kerem
Member
Registered: 2015-02-21
Posts: 10

Laptop lid closing function doesnt work correctly

Hello,

I use openbox and acpid is installed.
When I close laptop screen, my laptop does not sleep nor hibernate, fans continue to work and if I put the laptop in to a laptop bag ( which I did because I thought it was working ),  the laptop becomes very hot in very short time.
If I want to open the laptop again, screen does not open. I dont know if the system is really working or not but it doesnt open no matter what. So I'm forced to do hard reset.

systemd-logind service logs like its working normally but it is not;

Mar 01 20:02:11 isg00051371 systemd-logind[356]: Lid closed.
Mar 01 20:02:11 isg00051371 systemd-logind[356]: Suspending...
Mar 01 20:02:11 isg00051371 logger[1286]: LID closed
-- Reboot --

What should I do to fix this problem ?

Offline

#2 2015-03-01 18:18:00

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

Re: Laptop lid closing function doesnt work correctly

What is the content of /etc/systemd/logind.conf?


Jin, Jîyan, Azadî

Offline

#3 2015-03-01 19:00:21

ali_kerem
Member
Registered: 2015-02-21
Posts: 10

Re: Laptop lid closing function doesnt work correctly

It's at default;

#  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.
#
# You can override the directives in this file by creating files in
# /etc/systemd/logind.conf.d/*.conf.
#
# 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
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes

Offline

#4 2015-03-01 19:12:14

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

Re: Laptop lid closing function doesnt work correctly

Are you using XFCE4-power-manager or any similar power management solution?

If so, what options have you set in those programs?


Jin, Jîyan, Azadî

Offline

#5 2015-03-01 19:17:15

ali_kerem
Member
Registered: 2015-02-21
Posts: 10

Re: Laptop lid closing function doesnt work correctly

I only installed acpid, nothing more.
I thought acpid works well enough but it seems I was wrong ?

Offline

#6 2015-03-01 19:23:34

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

Re: Laptop lid closing function doesnt work correctly

ArchWiki acpid page wrote:

Note: Desktop environments, such as GNOME, systemd login manager and some extra key handling daemons may implement own event handling schemes, independent of acpid. Running more than one system at the same time may lead to unexpected behaviour, such as suspending two times in a row after one sleep button press. You should be aware of this and only activate desirable handlers.

https://wiki.archlinux.org/index.php/Acpid

The logind.conf file should suspend your laptop when you close the lid (this is default behaviour) -- you could try disabling acpid and see if that allows systemd to perform this action.

I explicitly disable this behaviour on my laptop so I have absolutely no idea how to set it up...


Jin, Jîyan, Azadî

Offline

#7 2015-03-01 19:36:20

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Laptop lid closing function doesnt work correctly

If you're not using acpid for anything you might as well disable/remove it. Although I think by default it does no more than log events (like the last line before --Reboot-- in your case).

Does suspend work normally when you run `systemctl suspend`?

Offline

#8 2015-03-01 19:52:13

ali_kerem
Member
Registered: 2015-02-21
Posts: 10

Re: Laptop lid closing function doesnt work correctly

I disabled acpid, stopped it, then tried both methods ( closing the lid and systemctl suspend command ) but the result was the same.
I think the problem has two malfunctions;
1- the sleep does not make computer stop ( at least fans still work like crazy, its hot )
2- after sleep function activated, the computer cannot react to any key for waking up ( because it cannot even log anything )

Mar 01 23:42:29 isg00051371 polkitd[511]: Registered Authentication Agent for unix-process:695:8845 (system bus name :1.23 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/
Mar 01 23:42:29 isg00051371 polkitd[511]: Unregistered Authentication Agent for unix-process:695:8845 (system bus name :1.23, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF8) (disc
Mar 01 23:42:29 isg00051371 systemd-sleep[699]: Suspending system...
-- Subject: System sleep state suspend entered
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The system has now entered the suspend sleep state.
-- Reboot --

Offline

#9 2015-03-01 20:25:53

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

Re: Laptop lid closing function doesnt work correctly

Try this before running the `systemctl suspend` command:

# systemctl restart systemd-logind

https://wiki.archlinux.org/index.php/Power_management


Jin, Jîyan, Azadî

Offline

#10 2015-03-01 20:36:57

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Laptop lid closing function doesnt work correctly

You could also give pm-utils a try. It comes with hooks/scripts to work around certain hardware/driver quirks. It's not used/needed that much these days and perhaps also not updated much anymore, but if pm-suspend happens to work, you may be able to narrow it down to a specific quirk.

Offline

#11 2015-03-01 21:08:48

ali_kerem
Member
Registered: 2015-02-21
Posts: 10

Re: Laptop lid closing function doesnt work correctly

Both of them failed again.
systemctl restart systemd-login made X crashed, so I started X again and used them together "sudo systemctl restart systemd-login && systemctl suspend", but same thing happened

pm-utils made fast move and I thought it worked, but then fan started to make noise, and when I tried to open it, it failed again;

Mar 02 00:46:34 isg00051371 sudo[601]: kerem : TTY=pts/0 ; PWD=/home/kerem ; USER=root ; COMMAND=/usr/bin/pacman -S pm-utils
Mar 02 00:46:34 isg00051371 sudo[601]: pam_unix(sudo:session): session opened for user root by kerem(uid=0)
Mar 02 00:46:44 isg00051371 sudo[601]: pam_unix(sudo:session): session closed for user root
Mar 02 00:47:10 isg00051371 sudo[647]: kerem : TTY=pts/0 ; PWD=/home/kerem ; USER=root ; COMMAND=/usr/bin/pm-suspend
Mar 02 00:47:10 isg00051371 sudo[647]: pam_unix(sudo:session): session opened for user root by kerem(uid=0)
Mar 02 00:47:10 isg00051371 kernel: EXT4-fs (sda5): re-mounted. Opts: data=ordered,commit=0
Mar 02 00:47:10 isg00051371 systemd-udevd[215]: error opening USB device 'descriptors' file
Mar 02 00:47:10 isg00051371 kernel: usb 3-7: USB disconnect, device number 2
-- Reboot --

I find arch wiki very confusing, it's not helpful. Only helpful guide was beginner's guide, the rest is either confusing or incomplete.

I think I'll install either Xfce or Gnome, because this is making me feel I'm going nowhere.

Also, another thing is, I dont know if its about  disabling acpid but, now whenever I do something new, like opening a tab in firefox, clicking on search area in arch wiki, my machine acts like a new cd inserted, but instead it uses hdd, it stops for 1 second, drive starts moving, then it acts, and I'm talking about 8gb ram, i7 machine...

Offline

#12 2015-03-01 21:13:21

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

Re: Laptop lid closing function doesnt work correctly

ali_kerem wrote:

I find arch wiki very confusing, it's not helpful. Only helpful guide was beginner's guide, the rest is either confusing or incomplete.

That is not my experience of the ArchWiki but at any rate Arch moves so quickly that the reference documentation is always provided by the upstream sources.


Jin, Jîyan, Azadî

Offline

#13 2015-03-01 21:52:15

ali_kerem
Member
Registered: 2015-02-21
Posts: 10

Re: Laptop lid closing function doesnt work correctly

Thank you both for your helps

Offline

Board footer

Powered by FluxBB