{"id":1877,"date":"2018-05-26T11:15:50","date_gmt":"2018-05-26T09:15:50","guid":{"rendered":"http:\/\/blog.cipworx.org\/laserman\/?p=1877"},"modified":"2018-05-26T11:15:50","modified_gmt":"2018-05-26T09:15:50","slug":"thinkpad-suspend-button-with-lubuntu-18-04","status":"publish","type":"post","link":"https:\/\/blog.cipworx.org\/laserman\/2018\/05\/26\/thinkpad-suspend-button-with-lubuntu-18-04\/","title":{"rendered":"Thinkpad suspend button with lubuntu 18.04"},"content":{"rendered":"<p>I use Fn-F4 to put my Thinkpad T500 to sleep. So far that worked out of the box with all Linux Versions that I tried. But not this time with lubuntu 18.04. I fixed it like this:<\/p>\n<p>2 new files :<\/p>\n<p><strong>\/etc\/acpi\/events\/lenovo-sleep<\/strong><br \/>\n<code><br \/>\nevent=button\/sleep SBTN 00000080 00000000 K<br \/>\naction=\/etc\/acpi\/lenovo-sleep.sh<br \/>\n<\/code><\/p>\n<p><strong>\/etc\/acpi\/lenovo-sleep.sh<\/strong><br \/>\n<code><br \/>\n#!\/bin\/sh<br \/>\npm-suspend<br \/>\n<\/code><\/p>\n<p>&#8230; and 3 commands:<br \/>\n<code><br \/>\nsudo chmod 755 lenovo-sleep.sh<br \/>\nsudo \/etc\/init.d\/acpid restart<br \/>\nsudo apt install pm-utils<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use Fn-F4 to put my Thinkpad T500 to sleep. So far that worked out of the box with all Linux Versions that I tried. But not this time with lubuntu 18.04. I fixed it like this: 2 new files : \/etc\/acpi\/events\/lenovo-sleep event=button\/sleep SBTN 00000080 00000000 K action=\/etc\/acpi\/lenovo-sleep.sh \/etc\/acpi\/lenovo-sleep.sh #!\/bin\/sh pm-suspend &#8230; and 3 commands: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,4,9],"tags":[],"class_list":["post-1877","post","type-post","status-publish","format-standard","hentry","category-hardware","category-linux","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/1877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/comments?post=1877"}],"version-history":[{"count":2,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/1877\/revisions"}],"predecessor-version":[{"id":1879,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/1877\/revisions\/1879"}],"wp:attachment":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/media?parent=1877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/categories?post=1877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/tags?post=1877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}