Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#31725 - [systemd] goes to suspend when lid is closed

Attached to Project: Arch Linux
Opened by Gaetan Bisson (vesath) - Saturday, 29 September 2012, 01:52 GMT
Last edited by Gaetan Bisson (vesath) - Saturday, 29 September 2012, 02:01 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Dave Reisner (falconindy)
Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

On a ThinkPad x220 with fully charged battery on A/C power, if I close the lid with systemd-192-1, the laptop goes into sleep mode. Note that systemd-suspend.service is not enabled or started. I expect this regression from systemd-189-4 (which did not do anything) is considered a feature by some. But, if so, how can I disable it?

The journal shows this:

Sep 29 09:42:08 aji systemd-logind[318]: Lid closed.
Sep 29 09:42:08 aji systemd-logind[318]: Suspending...
Sep 29 09:42:08 aji systemd[1]: Starting Sleep.
Sep 29 09:42:08 aji systemd[1]: Reached target Sleep.
Sep 29 09:42:08 aji systemd[1]: Starting Suspend...
Sep 29 09:42:08 aji systemd-sleep[494]: Suspending system...
Sep 29 09:42:08 aji kernel: PM: Syncing filesystems ... done.
Sep 29 09:42:08 aji kernel: PM: Preparing system for mem sleep
Sep 29 09:42:17 aji kernel: Freezing user space processes ... (elapsed 0.01 seconds) done.
Sep 29 09:42:17 aji kernel: Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Sep 29 09:42:17 aji kernel: PM: Entering mem sleep
This task depends upon

Closed by  Gaetan Bisson (vesath)
Saturday, 29 September 2012, 02:01 GMT
Reason for closing:  Won't fix
Comment by Dave Reisner (falconindy) - Saturday, 29 September 2012, 01:56 GMT
Yeah, this was an intentional change. You can control what all the ACPI buttons do in /etc/systemd/logind.conf -- set them (HandlePowerKey, HandleLidSwitch, etc) to "ignore" if you don't want this behavior.
Comment by Gaetan Bisson (vesath) - Saturday, 29 September 2012, 01:59 GMT
Apparently with systemd-192-1 "HandleLidSwitch= default to suspend" while it defaulted to "off" before. Brilliant. Could we get some kind of notice when such changes are introduced that break compatibility?
Comment by Gaetan Bisson (vesath) - Saturday, 29 September 2012, 02:01 GMT
I guess we can close this. Still, we should avoid surprises...

Loading...