{"id":71,"date":"2006-08-20T06:12:00","date_gmt":"2006-08-20T11:12:00","guid":{"rendered":"http:\/\/www.familytidings.com\/blog\/?p=71"},"modified":"2006-08-20T06:12:00","modified_gmt":"2006-08-20T11:12:00","slug":"suspend-on-lid-close","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=71","title":{"rendered":"Suspend on Lid Close"},"content":{"rendered":"<p>The ACPI daemon controls what happens when you close the laptop lid or press the sleep button (Fn-F4).  Its configuration files are in <code>\/etc\/acpi\/events<\/code>.  To make the laptop suspend to RAM, put a file in there (name isn&#8217;t important as long as it doesn&#8217;t start with a period) called <code>lid.conf<\/code>:<\/p>\n<p><code>event=button\/lid<br \/>action=\/usr\/sbin\/pm-suspend<\/code><\/p>\n<p>More information is in the acpid man page.<\/p>\n<p>For you emacs users, make sure you remove any backup files, because acpid will parse those too.  I had lid.conf and lid.conf~.  When I sent SIGHUP to acpid to cause it to reparse its configuration, it read both.  The result was that closing the lid caused the laptop to sleep.  Then when I opened the lid, the second event file was run and it went back to sleep again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The ACPI daemon controls what happens when you close the laptop lid or press the sleep button (Fn-F4). Its configuration files are in \/etc\/acpi\/events. To make the laptop suspend to RAM, put a file in there (name isn&#8217;t important as long as it doesn&#8217;t start with a period) called lid.conf: event=button\/lidaction=\/usr\/sbin\/pm-suspend More information is in [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/71","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":0,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}