Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560304 - =sys-apps/systemd-226: won't suspend on lid closing
Summary: =sys-apps/systemd-226: won't suspend on lid closing
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-12 21:41 UTC by Oleg Ageev
Modified: 2018-02-26 22:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_560304.txt,5.56 KB, text/plain)
2015-09-12 21:42 UTC, Oleg Ageev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Ageev 2015-09-12 21:41:17 UTC
after update to sys-apps/systemd-226 my laptop won't suspend on lid closing

Reproducible: Always

Steps to Reproduce:
1. emerge -1 =sys-apps/systemd-226
2. reboot
3. journalctl -f > suspend-on-lid-close-226.log
4. Close the lid
5. Open the lid
6. in suspend-on-lid-close-226.log
Sep 13 00:20:07 cnonim.cnonim.name systemd-logind[293]: Lid closed.
Sep 13 00:20:46 cnonim.cnonim.name systemd-logind[293]: Lid opened.
7. emerge -1 =sys-apps/systemd-225
8. reboot
9. journalctl -f > suspend-on-lid-close-225.log
10. Close the lid
Suspend
11. Open the lid
12 in suspend-on-lid-close-225.log
Sep 13 00:27:32 cnonim.cnonim.name systemd-logind[298]: Lid closed.
Sep 13 00:27:32 cnonim.cnonim.name systemd-logind[298]: Suspending...
Comment 1 Oleg Ageev 2015-09-12 21:42:37 UTC
Created attachment 411740 [details]
emerge --info
Comment 2 Oleg Ageev 2015-09-12 21:49:00 UTC
Manual suspend by 
systemclt suspend
work correctly on systemd-226
Comment 3 Mike Gilbert gentoo-dev 2015-09-26 02:16:11 UTC
Suspend works fine when I close my laptop lid; this seems to be something system-specific.
Comment 4 Oleg Ageev 2015-10-05 21:23:04 UTC
HandleLidSwitchDocked=suspend
in 
/etc/systemd/logind.conf
fix my problem, but i'm don't understand why in systemd-225 all worked without that
Comment 5 Mike Gilbert gentoo-dev 2015-10-05 21:42:13 UTC
(In reply to Oleg Ageev from comment #4)

Perhaps systemd-226 thinks your laptop is docked, whereas systemd-225 does not.
Comment 6 Graham Seaman 2015-12-18 10:39:44 UTC
Same problem has appeared for me since emerging systemd-218-r5. In my case 

HandleLidSwitchDocked=suspend

in logind.conf makes no difference.
Comment 7 Graham Seaman 2015-12-18 12:04:08 UTC
(In reply to Graham Seaman from comment #6)
> Same problem has appeared for me since emerging systemd-218-r5. In my case 
> 
> HandleLidSwitchDocked=suspend
> 
> in logind.conf makes no difference.

Now upgraded systemd to 2.26-r2. Suspend on lid close still hasn't come back, even with HandleLidSwitchDocked.
Comment 8 Pacho Ramos gentoo-dev 2017-04-20 12:36:23 UTC
Could you try with 233? Thanks