{"id":5203,"date":"2026-02-03T19:16:37","date_gmt":"2026-02-03T10:16:37","guid":{"rendered":"https:\/\/matoken.org\/blog\/?p=5203"},"modified":"2026-02-03T19:16:40","modified_gmt":"2026-02-03T10:16:40","slug":"do-not-auto-shutdown-with-power-button","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2026\/02\/03\/do-not-auto-shutdown-with-power-button\/","title":{"rendered":"\u96fb\u6e90\u30dc\u30bf\u30f3\u3067\u81ea\u52d5\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3092\u6291\u5236"},"content":{"rendered":"<div id=\"preamble\">\n<div class=\"sectionbody\">\n<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"48\" height=\"48\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"m16.56 5.44l-1.45 1.45A5.97 5.97 0 0 1 18 12a6 6 0 0 1-6 6a6 6 0 0 1-6-6c0-2.17 1.16-4.06 2.88-5.12L7.44 5.44A7.96 7.96 0 0 0 4 12a8 8 0 0 0 8 8a8 8 0 0 0 8-8c0-2.72-1.36-5.12-3.44-6.56M13 3h-2v10h2\"\/><\/svg><!-- https:\/\/icon-sets.iconify.design\/ mdi:power --><\/p>\n<div class=\"paragraph\">\n<p>laptop \u3092\u5c11\u3057\u79fb\u52d5\u3057\u305f\u3089\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u51e6\u7406\u304c\u8d70\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e\u30ed\u30b0\u3092\u898b\u308b\u3068\u96fb\u6e90\u30dc\u30bf\u30f3\u304c\u62bc\u3055\u308c\u3066\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u51e6\u7406\u304c\u8d70\u3063\u305f\u3088\u3046\u3067\u3059\uff0e<br \/>\n\u3053\u308c\u3092\u6291\u5236\u3057\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<p><!--more--><\/p>\n<div class=\"paragraph\">\n<p>\u30ed\u30b0\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u30ea\u30b9\u30c8 1. syslog \u3088\u308a<\/div>\n<div class=\"content\">\n<pre>2026-02-02T06:38:41.358362+09:00 tp-l13 acpid: received input layer event \"button\/power PBTN 00000080 00000000\"\n2026-02-02T06:38:41.359609+09:00 tp-l13 acpid: rule from \/etc\/acpi\/events\/powerbtn-acpi-support matched\n2026-02-02T06:38:41.362438+09:00 tp-l13 acpid: executing action \"\/etc\/acpi\/powerbtn-acpi-support.sh\"<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p><code>\/etc\/systemd\/logind.conf<\/code> \u306e\u96fb\u6e90\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u3068\u304d\u306e <code>HandlePowerKey<\/code> \u306e\u30b3\u30e1\u30f3\u30c8\u3092\u89e3\u9664\u3057\u3066 <code>poweroff<\/code> \u3092 <code>ignore<\/code> \u306b\u66f8\u304d\u63db\u3048\u3066\u96fb\u6e90\u30dc\u30bf\u30f3\u3067\u4f55\u3082\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ sudo git -C \/etc diff HEAD~~ \/etc\/systemd\/logind.conf\ndiff --git a\/systemd\/logind.conf b\/systemd\/logind.conf\nindex 02ec007..d7e2dbe 100644\n--- a\/systemd\/logind.conf\n+++ b\/systemd\/logind.conf\n@@ -25,7 +25,7 @@\n #InhibitDelayMaxSec=5\n #UserStopDelaySec=10\n #SleepOperation=suspend-then-hibernate suspend\n-#HandlePowerKey=poweroff\n+HandlePowerKey=igore\n #HandlePowerKeyLongPress=ignore\n #HandleRebootKey=reboot\n #HandleRebootKeyLongPress=poweroff<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30c7\u30fc\u30e2\u30f3\u3092\u518d\u8d77\u52d5\u3057\u3066\u8a2d\u5b9a\u3092\u53cd\u6620\u3057\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ sudo systemctl restart systemd-logind<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u96fb\u6e90\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u51e6\u7406\u304c\u8d70\u3089\u306a\u3044\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u30ea\u30b9\u30c8 2. \u74b0\u5883<\/div>\n<div class=\"content\">\n<pre>$ dpkg-query -W systemd acpi\nacpi    1.8-1\nsystemd 259-1\n$ lsb_release -dr\nDescription:    Debian GNU\/Linux forky\/sid\nRelease:        n\/a\n$ arch\nx86_64\n$ sudo lshw -sanitize -json | jq '.\"vendor\", .\"version\"'\n\"LENOVO\"\n\"ThinkPad L13\"<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>laptop \u3092\u5c11\u3057\u79fb\u52d5\u3057\u305f\u3089\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u51e6\u7406\u304c\u8d70\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e\u30ed\u30b0\u3092\u898b\u308b\u3068\u96fb\u6e90\u30dc\u30bf\u30f3\u304c\u62bc\u3055\u308c\u3066\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u51e6\u7406\u304c\u8d70\u3063\u305f\u3088\u3046\u3067\u3059\uff0e \u3053\u308c\u3092\u6291\u5236\u3057\u307e\u3057\u305f\uff0e<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":""},"categories":[7,6,199],"tags":[617,1263,194],"class_list":["post-5203","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-sid","tag-acpi","tag-button","tag-power"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/5203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=5203"}],"version-history":[{"count":1,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/5203\/revisions"}],"predecessor-version":[{"id":5204,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/5203\/revisions\/5204"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=5203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=5203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=5203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}