You are not logged in.
Hello !
Recently, my laptop didn't go to sleep when I closed the lid, and only locks the screen. It used ot work flawlessly though.
Eventually, systemctl suspend failed. Here are my journalctl logs:
Feb 27 15:43:42 laptop kernel: PM: Preparing system for freeze sleep
Feb 27 15:43:47 laptop systemd[1]: systemd-suspend.service: main process exited, code=exited, status=1/FAILURE
Feb 27 15:43:47 laptop systemd[1]: Failed to start Suspend.
-- Subject: Unit systemd-suspend.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-suspend.service has failed.
--
-- The result is failed.
Feb 27 15:43:47 laptop systemd[1]: Dependency failed for Suspend.
-- Subject: Unit suspend.target has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit suspend.target has failed.
--
-- The result is dependency.
Feb 27 15:43:47 laptop systemd[1]: Job suspend.target/start failed with result 'dependency'.
Feb 27 15:43:47 laptop systemd[1]: Unit systemd-suspend.service entered failed state.
Feb 27 15:43:47 laptop systemd[1]: systemd-suspend.service failed.
However, I haven't changed my /usr/lib/systemd/system/suspend.target whatsoever. But here is its content:
[Unit]
Description=Suspend
Documentation=man:systemd.special(7)
DefaultDependencies=no
BindsTo=systemd-suspend.service
After=systemd-suspend.service
And here is the content of /usr/lib/systemd/system/systemd-suspend.service:
[Unit]
Description=Suspend
Documentation=man:systemd-suspend.service(8)
DefaultDependencies=no
Requires=sleep.target
After=sleep.target
[Service]
Type=oneshot
ExecStart=/usr/lib/systemd/systemd-sleep suspend
It really seems to be coming from sleep.target:
# systemctl list-dependencies systemd-suspend.service
systemd-suspend.service
● ├─system.slice
● └─sleep.target (this one is red)
/usr/lib/systemd/system/sleep.target:
[Unit]
Description=Sleep
Documentation=man:systemd.special(7)
DefaultDependencies=no
RefuseManualStart=yes
StopWhenUnneeded=yes
What am I missing here?
Anyone got any idea of what's going on with sleep.target?
Offline
Could try systemctl status systemd-suspend.service
Offline
Here is the output of `systemctl status systemd-suspend.service`:
● systemd-suspend.service - Suspend
Loaded: loaded (/usr/lib/systemd/system/systemd-suspend.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2015-02-27 16:46:13 CET; 5h 9min ago
Docs: man:systemd-suspend.service(8)
Main PID: 6528 (code=exited, status=1/FAILURE)
Feb 27 16:46:03 laptop systemd-sleep[6528]: Suspending system...
Feb 27 16:46:13 laptop systemd[1]: systemd-suspend.service: main process exited, code=exited, status=1/FAILURE
Feb 27 16:46:13 laptop systemd[1]: Failed to start Suspend.
Feb 27 16:46:13 laptop systemd[1]: Unit systemd-suspend.service entered failed state.
Feb 27 16:46:13 laptop systemd[1]: systemd-suspend.service failed.
Offline
I can confirm that the file contents that you posted are the same as mine, and thinking about it, when I close my laptop lid it doesn't suspend either; I have to press the sleep button that has a picture of a moon on it (in my case Fn+Esc). I suppose you could try pressing a sleep button if you have one to give you more information. I've just noticed that in /etc/systemd/logind.conf I have HandleLidSwitch=ignore .
Offline
I haven't changed the default values of logind.conf, so HandleLidSwitch is set to "suspend" by default.
Also, I haven't got any sleep key unfortunately.
Anyways, `systemctl suspend` should work nevertheless, which is not the case.
Offline