{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/acpi/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/acpi/", "feed_url": "https://matoken.org/blog/tag/acpi/feed/json/", "language": "ja", "title": "acpi – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "https://matoken.org/blog/?p=5203", "url": "https://matoken.org/blog/2026/02/03/do-not-auto-shutdown-with-power-button/", "title": "\u96fb\u6e90\u30dc\u30bf\u30f3\u3067\u81ea\u52d5\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3092\u6291\u5236", "content_html": "
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
\n\u3053\u308c\u3092\u6291\u5236\u3057\u307e\u3057\u305f\uff0e
\n
\u30ed\u30b0\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\uff0e
\n2026-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\"\n
/etc/systemd/logind.conf \u306e\u96fb\u6e90\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u3068\u304d\u306e HandlePowerKey \u306e\u30b3\u30e1\u30f3\u30c8\u3092\u89e3\u9664\u3057\u3066 poweroff \u3092 ignore \u306b\u66f8\u304d\u63db\u3048\u3066\u96fb\u6e90\u30dc\u30bf\u30f3\u3067\u4f55\u3082\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\uff0e
$ 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\n
\u30c7\u30fc\u30e2\u30f3\u3092\u518d\u8d77\u52d5\u3057\u3066\u8a2d\u5b9a\u3092\u53cd\u6620\u3057\u307e\u3059\uff0e
\n$ sudo systemctl restart systemd-logind\n
\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
\n$ 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\"\n
acpid\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u3059\u3079\u3066\u30ed\u30b0\u306b\u51fa\u529b\u3067\u304d\u308b\u3088\u3046\u8a2d\u5b9a\u3057\u307e\u3057\u305f\uff0e
\n\u3057\u304b\u3057\u3061\u3087\u3063\u3068\u5197\u9577\u3067\u3059\uff0eAC\u30a2\u30c0\u30d7\u30bf\u306e\u72b6\u6cc1\u3060\u3051\u3092\u30ed\u30ae\u30f3\u30b0\u3059\u308b\u3088\u3046\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n\n
\u307e\u305aAC\u30a2\u30c0\u30d7\u30bf\u306e\u629c\u304d\u5dee\u3057\u6642\u306e\u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e
\nJul 11 23:05:51 yoga-260 acpid: completed netlink event \"ac_adapter ACPI0003:00 00000080 00000000\"\nJul 11 23:05:55 yoga-260 acpid: received netlink event \"ac_adapter ACPI0003:00 00000080 00000001\"\nman\u306eEXAMPLE \u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e
\n\n\n\n\nEXAMPLE
\n
\nThis example will shut down your system if you press the power button.\n\n\n\nCreate a file named /etc/acpi/events/power that contains the following:\n\n\n\n\nevent=button/power\naction=/etc/acpi/power.sh \"%e\"\n\n\n\n\nThen create a file named /etc/acpi/power.sh that contains the following:\n\n\n\n\n/sbin/shutdown -h now \"Power button pressed\"\n\n\n\n\nNow, when acpid is running, a press of the power button will cause the rule in /etc/acpi/events/power to trigger the script in\n/etc/acpi/power.sh. The script will then shut down the system.\n
\u3053\u306eEXAMPLE\u3092\u771f\u4f3c\u3057\u3066\u3053\u3093\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\uff0eacpid\u304b\u3089 ac_adapter \u306e\u30a4\u30d9\u30f3\u30c8\u5b9f\u884c\u6642\u306baction \u306b\u6307\u5b9a\u3055\u308c\u305fscript \u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\uff0e
event=ac_adapter\naction=/etc/acpi/ac_event_logging.sh %e\n\u305d\u3057\u3066\u547c\u3073\u51fa\u3055\u308c\u308bscript \u3068\u3057\u3066\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\uff0e
\n#!/bin/sh\ncase \"$4\" in\n 00000000)\n echo 'AC offline'\n logger -t acpid AC offline\n ;;\n 00000001)\n echo 'AC online'\n logger -t acpid AC online\n ;;\nesac\n\u3053\u306escript\u306b\u306f\u5b9f\u884c\u6a29\u3082\u4ed8\u4e0e\u3057\u307e\u3059\uff0e
\n$ sudo chmod +x /etc/acpi/ac_event_logging.sh\n\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b acpid \u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\uff0e
\n$ sudo service acpid restart\n\u3053\u306e\u72b6\u614b\u3067AC\u30a2\u30c0\u30d7\u30bf\u3092\u629c\u304d\u5dee\u3057\u3059\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u306e\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\uff0e
\n$ sudo tail -f /var/log/syslog | grep acpid:Jul 11 23:51:10 yoga-260 acpid: received netlink event \"battery PNP0C0A:00 00000080 00000001\"\nJul 11 23:51:10 yoga-260 acpid: 0 total rules matched\nJul 11 23:51:10 yoga-260 acpid: completed netlink event \"battery PNP0C0A:00 00000080 00000001\"\nJul 11 23:51:10 yoga-260 acpid: received netlink event \"ac_adapter ACPI0003:00 00000080 00000000\" (1)\nJul 11 23:51:10 yoga-260 acpid: rule from /etc/acpi/events/ac_event_logging matched (2)\nJul 11 23:51:10 yoga-260 acpid: executing action \"/etc/acpi/ac_event_logging.sh ac_adapter ACPI0003:00 00000080 00000000\" (3)\nJul 11 23:51:10 yoga-260 acpid: AC offline (4)\nJul 11 23:51:10 yoga-260 acpid: action exited with status 0 (5)\nJul 11 23:51:10 yoga-260 acpid: 1 total rule matched\nJul 11 23:51:10 yoga-260 acpid: completed netlink event \"ac_adapter ACPI0003:00 00000080 00000000\"\nJul 11 23:51:11 yoga-260 acpid: received netlink event \"ibm/hotkey LEN0068:00 00000080 00006030\"\nJul 11 23:51:11 yoga-260 acpid: 0 total rules matched\nJul 11 23:51:11 yoga-260 acpid: completed netlink event \"ibm/hotkey LEN0068:00 00000080 00006030\"\nJul 11 23:51:11 yoga-260 acpid: received netlink event \"thermal_zone LNXTHERM:00 00000081 00000000\"\nJul 11 23:51:11 yoga-260 acpid: 0 total rules matched\nJul 11 23:51:11 yoga-260 acpid: completed netlink event \"thermal_zone LNXTHERM:00 00000081 00000000\"\nJul 11 23:51:12 yoga-260 acpid: received netlink event \"battery PNP0C0A:00 00000080 00000001\"\nJul 11 23:51:12 yoga-260 acpid: 0 total rules matched\nJul 11 23:51:12 yoga-260 acpid: completed netlink event \"battery PNP0C0A:00 00000080 00000001\"\nJul 11 23:51:13 yoga-260 acpid: received netlink event \"ac_adapter ACPI0003:00 00000080 00000001\"\nJul 11 23:51:13 yoga-260 acpid: rule from /etc/acpi/events/ac_event_logging matched\nJul 11 23:51:13 yoga-260 acpid: executing action \"/etc/acpi/ac_event_logging.sh ac_adapter ACPI0003:00 00000080 00000001\"\nJul 11 23:51:13 yoga-260 acpid: AC online\nJul 11 23:51:13 yoga-260 acpid: action exited with status 0\nJul 11 23:51:13 yoga-260 acpid: 1 total rule matched\nJul 11 23:51:13 yoga-260 acpid: completed netlink event \"ac_adapter ACPI0003:00 00000080 00000001\"\nJul 11 23:51:13 yoga-260 acpid: received netlink event \"ibm/hotkey LEN0068:00 00000080 00006030\"\nJul 11 23:51:13 yoga-260 acpid: 0 total rules matched\nJul 11 23:51:13 yoga-260 acpid: completed netlink event \"ibm/hotkey LEN0068:00 00000080 00006030\"\nJul 11 23:51:13 yoga-260 acpid: received netlink event \"thermal_zone LNXTHERM:00 00000081 00000000\"\nJul 11 23:51:13 yoga-260 acpid: 0 total rules matched\nJul 11 23:51:13 yoga-260 acpid: completed netlink event \"thermal_zone LNXTHERM:00 00000081 00000000\"\n\u3046\u307e\u304f\u884c\u3063\u305f\u3088\u3046\u3067\u3059 :)
\n\u3068\u3044\u3046\u3053\u3068\u3067\u4ed6\u306e\u30a4\u30d9\u30f3\u30c8\u30ed\u30b0\u3092\u8981\u3089\u306a\u3044\u306e\u3067\uff0c /etc/default/acpid \u3092\u7de8\u96c6\u3057\u3066\u5f15\u6570\u3092\u6d88\u3057\u307e\u3059\uff0e
--- a/default/acpid\n+++ b/default/acpid\n@@ -1,7 +1,7 @@\n # Options to pass to acpid\n #\n # OPTIONS are appended to the acpid command-line\n-OPTIONS=\"-l\"\n+#OPTIONS=\"-l\"\n\n # Linux kernel modules to load before starting acpid\n #\n
\u53cd\u6620\u3059\u308b\u305f\u3081\u306b acpid \u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\uff0e
\n$ sudo service acpid restart\n$ ps aux | grep [/]sbin/acpid\nroot 3990040 0.0 0.0 2352 780 ? Ss 23:59 0:00 /usr/sbin/acpid\n\u518d\u5ea6\u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u306a\u304c\u3089AC\u30a2\u30c0\u30d7\u30bf\u306e\u629c\u304d\u5dee\u3057\u3092\u3057\u3066\u30ed\u30b0\u304c\u5fc5\u8981\u306a\u3082\u306e\u3060\u3051\u51fa\u529b\u3055\u308c\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\uff0e
\nsudo tail -f /var/log/syslog | grep acpid:Jul 12 00:00:04 yoga-260 acpid: AC offline\nJul 12 00:00:07 yoga-260 acpid: AC online\n
\u826f\u3055\u305d\u3046\u3067\u3059 :)
\n\u30b5\u30b9\u30da\u30f3\u30c9\u30ec\u30b8\u30e5\u30fc\u30e0\u3082\u8a2d\u5b9a\u3057\u3066\u307f\u3088\u3046\u304b\u306a?
$ dpkg-query -W acpid rsyslog systemd bsdutils\nacpid 1:2.0.32-1\nbsdutils 1:2.36.1-7\nrsyslog 8.2102.0-2\nsystemd 247.3-5\n$ lsb_release -dr\nDescription: Debian GNU/Linux 11 (bullseye)\nRelease: 11\n$ arch\nx86_64\n$ sudo lshw | grep -E '^\\ \\ \\ \\ product:|^\\ \\ \\ \\ version:'\n product: 20FEA02WJP (LENOVO_MT_20FE_BU_Think_FM_ThinkPad Yoga 260)\n version: ThinkPad Yoga 260\nThinkPad\u306e\u96fb\u6e90\u30d7\u30e9\u30b0\u306eOn/Off\u3067\u4ee5\u524d\u306f\u30a4\u30d9\u30f3\u30c8\u304clog\u306b\u6b8b\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\uff0c\u96fb\u6e90\u7ba1\u7406\u30c7\u30fc\u30e2\u30f3\u304c\u52d5\u3044\u3066\u3044\u3066\u96fb\u6e90\u306e\u72b6\u614b\u304c\u53d6\u5f97\u3067\u304d\u308b\u72b6\u614b\u3067\u3082\u3044\u3064\u306e\u9803\u304b\u3089\u304b\u8a18\u9332\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3057\u305f\uff0e\u505c\u96fb\u3057\u305f\u6642\u9593\u304c\u308f\u304b\u3063\u3066\u4fbf\u5229\u3060\u3063\u305f\u306e\u3067\u30ed\u30b0\u671f\u8a18\u9332\u3067\u304d\u306a\u3044\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n\n
acpitool \u3067\u96fb\u6e90\u30a2\u30c0\u30d7\u30bf\u306e\u72b6\u614b\u3092\u53d6\u5f97$ acpitool | grep AC\n AC adapter : online\n$ acpitool | grep AC\n AC adapter : off-line\nThinkPad\u306eFAN\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3092\u8abf\u3079\u3066\u601d\u3044\u51fa\u3057\u305f\u306e\u3067acpid\u306eman\u3084\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u3068\uff0c -l, --logevents \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3068\u3059\u3079\u3066\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u30ed\u30b0\u306b\u51fa\u529b\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u3067\u3059\uff0e
$ /sbin/acpid -h 2>&1 | grep '\\-l,'\n -l, --logevents Log all event activity.\n$ man acpid | grep -i logevents -A1\n -l, --logevents\n This option tells acpid to log information about all events and actions.\n/etc/default/acpid \u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3066\uff0cacpid \u306e\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u306b -l \u3092\u8ffd\u52a0\u3057\u307e\u3059\uff0e
diff --git a/default/acpid b/default/acpid\nindex c651a78..a6a7add 100644\n--- a/default/acpid\n+++ b/default/acpid\n@@ -1,7 +1,7 @@\n # Options to pass to acpid\n #\n # OPTIONS are appended to the acpid command-line\n-#OPTIONS=\"\"\n+OPTIONS=\"-l\"\n\n # Linux kernel modules to load before starting acpid\n #\nacpid \u3092\u518d\u8d77\u52d5\u3057\u3066\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3064\u3044\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e
\n$ sudo service acpid restart\n$ sudo service acpid status\n\u25cf acpid.service - ACPI event daemon\n Loaded: loaded (/lib/systemd/system/acpid.service; disabled; vendor preset: enabled)\n Active: active (running) since Sun 2021-07-11 05:57:54 JST; 44s ago\nTriggeredBy: \u25cf acpid.socket\n \u25cf acpid.path\n Docs: man:acpid(8)\n Main PID: 2830732 (acpid)\n Tasks: 1 (limit: 9336)\n Memory: 288.0K\n CPU: 6ms\n CGroup: /system.slice/acpid.service\n \u2514\u25002830732 /usr/sbin/acpid -l\n\nJul 11 05:57:54 yoga-260 systemd[1]: Started ACPI event daemon.\nJul 11 05:57:54 yoga-260 acpid[2830732]: starting up with netlink and the input layer\nJul 11 05:57:54 yoga-260 acpid[2830732]: 1 rule loaded\nJul 11 05:57:54 yoga-260 acpid[2830732]: waiting for events: event logging is on\n$ ps aux | grep [/]sbin/acpid\nroot 2830732 0.0 0.0 2352 684 ? Ss 05:57 0:00 /usr/sbin/acpid -l\nacpid \u306b -l \u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u3064\u3044\u3066\u3044\u308b\u72b6\u614b\u3067syslog\u3092tail\u3057\u306a\u304c\u3089\u96fb\u6e90\u3092\u629c\u304d\u5dee\u3057\u3057\u3066\u307f\u308b\u3068\u5c11\u3057\u53ef\u8aad\u6027\u304c\u60aa\u3044\u3067\u3059\u304c\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u308b\u306e\u304c\u308f\u304b\u308a\u307e\u3057\u305f\uff0e
$ sudo tail -f /var/log/syslog | grep acpid:\nJul 11 05:59:22 yoga-260 acpid: received netlink event \"battery PNP0C0A:00 00000080 00000001\"\nJul 11 05:59:22 yoga-260 acpid: 0 total rules matched\nJul 11 05:59:22 yoga-260 acpid: completed netlink event \"battery PNP0C0A:00 00000080 00000001\"\nJul 11 05:59:23 yoga-260 acpid: received netlink event \"ac_adapter ACPI0003:00 00000080 00000000\"\nJul 11 05:59:23 yoga-260 acpid: 0 total rules matched\nJul 11 05:59:23 yoga-260 acpid: completed netlink event \"ac_adapter ACPI0003:00 00000080 00000000\"\nJul 11 05:59:23 yoga-260 acpid: received netlink event \"ibm/hotkey LEN0068:00 00000080 00006030\"\nJul 11 05:59:23 yoga-260 acpid: 0 total rules matched\nJul 11 05:59:23 yoga-260 acpid: completed netlink event \"ibm/hotkey LEN0068:00 00000080 00006030\"\nJul 11 05:59:23 yoga-260 acpid: received netlink event \"thermal_zone LNXTHERM:00 00000081 00000000\"\nJul 11 05:59:23 yoga-260 acpid: 0 total rules matched\nJul 11 05:59:23 yoga-260 acpid: completed netlink event \"thermal_zone LNXTHERM:00 00000081 00000000\"\nJul 11 05:59:26 yoga-260 acpid: received netlink event \"battery PNP0C0A:00 00000080 00000001\"\nJul 11 05:59:26 yoga-260 acpid: 0 total rules matched\nJul 11 05:59:26 yoga-260 acpid: completed netlink event \"battery PNP0C0A:00 00000080 00000001\"\nJul 11 05:59:26 yoga-260 acpid: received netlink event \"ac_adapter ACPI0003:00 00000080 00000001\"\nJul 11 05:59:26 yoga-260 acpid: 0 total rules matched\nJul 11 05:59:26 yoga-260 acpid: completed netlink event \"ac_adapter ACPI0003:00 00000080 00000001\"\nJul 11 05:59:26 yoga-260 acpid: received netlink event \"ibm/hotkey LEN0068:00 00000080 00006030\"\nJul 11 05:59:26 yoga-260 acpid: 0 total rules matched\nJul 11 05:59:26 yoga-260 acpid: completed netlink event \"ibm/hotkey LEN0068:00 00000080 00006030\"\nJul 11 05:59:26 yoga-260 acpid: received netlink event \"thermal_zone LNXTHERM:00 00000081 00000000\"\nJul 11 05:59:26 yoga-260 acpid: 0 total rules matched\nJul 11 05:59:26 yoga-260 acpid: completed netlink event \"thermal_zone LNXTHERM:00 00000081 00000000\"\n\u3059\u3079\u3066\u306e\u30a4\u30d9\u30f3\u30c8\u304c\u51fa\u529b\u3055\u308c\u308b\u306e\u3067\uff0c\u30dc\u30ea\u30e5\u30fc\u30e0\u3084\uff0c\u8f1d\u5ea6\u306e\u8abf\u6574\u3067\u3082\u3053\u306e\u3088\u3046\u306b\u66f8\u304d\u51fa\u3055\u308c\u307e\u3059\uff0e
\nJul 11 06:01:12 t430s acpid: received input layer event \"button/volumeup VOLUP 00000080 00000000 K\"\nJul 11 06:01:12 t430s acpid: rule from 1840013[0:0] matched\nJul 11 06:01:12 t430s acpid: notifying client 1840013[0:0]\nJul 11 06:01:12 t430s acpid: 1 total rule matched\nJul 11 06:01:12 t430s acpid: completed input layer event \"button/volumeup VOLUP 00000080 00000000 K\"\nJul 11 06:01:13 t430s acpid: received input layer event \"button/volumedown VOLDN 00000080 00000000 K\"\nJul 11 06:01:13 t430s acpid: rule from 1840013[0:0] matched\nJul 11 06:01:13 t430s acpid: notifying client 1840013[0:0]\nJul 11 06:01:13 t430s acpid: 1 total rule matched\nJul 11 06:01:13 t430s acpid: completed input layer event \"button/volumedown VOLDN 00000080 00000000 K\"\nJul 11 06:01:16 t430s acpid: received input layer event \"video/brightnessdown BRTDN 00000087 00000000 K\"\nJul 11 06:01:16 t430s acpid: rule from 1840013[0:0] matched\nJul 11 06:01:16 t430s acpid: notifying client 1840013[0:0]\nJul 11 06:01:16 t430s acpid: 1 total rule matched\nJul 11 06:01:16 t430s acpid: completed input layer event \"video/brightnessdown BRTDN 00000087 00000000 K\"\nJul 11 06:01:16 t430s acpid: received input layer event \"video/brightnessup BRTUP 00000086 00000000 K\"\nJul 11 06:01:16 t430s acpid: rule from 1840013[0:0] matched\nJul 11 06:01:16 t430s acpid: notifying client 1840013[0:0]\nJul 11 06:01:16 t430s acpid: 1 total rule matched\nJul 11 06:01:16 t430s acpid: completed input layer event \"video/brightnessup BRTUP 00000086 00000000 K\"\n\u4ee5\u524d\u3088\u308a\u30ed\u30b0\u304c\u5197\u9577\u3067\u53ef\u8aad\u6027\u304c\u60aa\u3044\u3067\u3059\u304c\u3068\u308a\u3042\u3048\u305a\u52d5\u4f5c\u3057\u307e\u3057\u305f\uff0e\u3053\u308c\u3067\u505c\u96fb\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306b\u505c\u96fb\u767a\u751f\u6642\u9593\u3084\uff0c\u77ed\u3044\u505c\u96fb\u3067\u3042\u308c\u3070\u505c\u96fb\u9593\u9694\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff0e
\n$ dpkg-query -W acpid rsyslog systemd\nacpid 1:2.0.32-1\nrsyslog 8.2102.0-2\nsystemd 247.3-5\n$ lsb_release -dr\nDescription: Debian GNU/Linux 11 (bullseye)\nRelease: 11\n$ arch\nx86_64\n$ sudo lshw | grep -E '^\\ \\ \\ \\ product:|^\\ \\ \\ \\ version:'\n product: 23533KJ (LENOVO_MT_2353)\n version: ThinkPad T430s\n$ dpkg-query -W acpid rsyslog systemd\nacpid 1:2.0.32-1\nrsyslog 8.2102.0-2\nsystemd 247.3-5\n$ lsb_release -dr\nDescription: Debian GNU/Linux 11 (bullseye)\nRelease: 11\n$ arch\nx86_64\n$ sudo lshw | grep -E '^\\ \\ \\ \\ product:|^\\ \\ \\ \\ version:'\n product: 20FEA02WJP (LENOVO_MT_20FE_BU_Think_FM_ThinkPad Yoga 260)\n version: ThinkPad Yoga 260\n\u5927\u304d\u306a\u30d0\u30c3\u30c6\u30ea\u30fc\u3092\u88cf\u5c71\u3067\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\uff0e\u663c\u904e\u304e\u304b\u3089\u5915\u65b9\u307e\u3067\u4f7f\u3063\u3066\u76ee\u76db\u308a\u534a\u5206\u304f\u3089\u3044\uff0e\u5bb6\u306b\u5e30\u3063\u3066\u304b\u3089\u3082\u4f7f\u3044\u7d9a\u3051\u307e\u3057\u305f\u304c\u306a\u304b\u306a\u304b\u30d0\u30c3\u30c6\u30ea\u5207\u308c\u306b\u306a\u308a\u307e\u305b\u3093\uff0e
\n\u5bdd\u308b\u524d\u306b\u96fb\u6c60\u304c\u6765\u3066\u308b\u611f\u3058\u304c\u3057\u307e\u305b\u3093\uff0e\u307e\u305f\u6e2c\u308a\u76f4\u3059\u306e\u306f\u9762\u5012\u306a\u306e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306ascript\u3092\u66f8\u3044\u3066\u5bdd\u307e\u3057\u305f\uff0e
\n$ while [[ `acpi -a | grep on-line` ]]; do sleep 10;done; echo \"AC Off-line! (`date +%T`)\" | pee cat \"xmessage -file - \"& pushbullet ; systemctl suspend\nAC Off-line! (02:09:56)\nacpi\u30b3\u30de\u30f3\u30c9\u3067\u96fb\u6e90\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\uff0e
\n$ acpi -a\nAdapter 0: on-line\n$ acpi -a\nAdapter 0: off-line\nacpi\u30b3\u30de\u30f3\u30c9\u304c\u306a\u3044\u5834\u5408sys\u3092\u898b\u308b\u3068\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0eacpid\u304c\u306a\u3044\u5834\u5408\u306f\u7121\u7406\u304b\u306a?
\n$ while [[ `cat /sys/class/power_supply/AC/online` == 1 ]]; do sleep 10;done; echo \"AC Off-line! (`date +%T`)\" | pee cat \"xmessage -file - \"& pushbullet ; systemctl suspend\n10\u79d2\u6bce\u306b\u96fb\u6e90\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u3066AC\u96fb\u6e90\u304cOff\u306b\u306a\u3063\u305f\u3089\u30b3\u30f3\u30bd\u30fc\u30eb\u3068X\u3068PushBullet\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3057\u3066\u30b5\u30b9\u30da\u30f3\u30c9\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\uff0e
\n\u3066\u3053\u3068\u3067PC\u306e\u52d5\u4f5c\u72b6\u6cc1\u306b\u3082\u3088\u308b\u3067\u3057\u3087\u3046\u304c\u4eca\u56de\u306f\u7d0412\u6642\u9593\u52d5\u4f5c\u3057\u307e\u3057\u305f\uff0e
\n\u4eca\u56de\u30d0\u30c3\u30c6\u30ea\u30fc(3.7V DC)\u304b\u3089AC 100V\u306b\u5909\u63db\uff0c\u66f4\u306bDC(20V)\u5909\u63db\u3057\u3066\u3044\u308b\u306e\u3067\u5909\u63db\u52b9\u7387\u304c\u60aa\u305d\u3046\u3067\u3059\uff0eDC12V\u51fa\u529b\u3082\u51fa\u6765\u308b\u3088\u3046\u306a\u306e\u3067\u305d\u3053\u304b\u3089DC-DC\u5909\u63db\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u52b9\u7387\u3088\u304f\u306a\u3063\u3066\u3055\u3089\u306b\u6642\u9593\u304c\u4f38\u3073\u305d\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\uff0e
\n$ sudo lshw -c system -sanitize | head\ncomputer\n description: Notebook\n product: 23533KJ (LENOVO_MT_2353)\n vendor: LENOVO\n version: ThinkPad T430s\n serial: [REMOVED]\n width: 64 bits\n capabilities: smbios-2.7 dmi-2.7 smp vsyscall32\n configuration: administrator_password=disabled chassis=notebook family=ThinkPad T430s power-on_password=disabled sku=LENOVO_MT_2353 uuid=[REM\nOVED]\n *-pnp00:00\n$ dpkg-query -W acpi x11-utils\nacpi 1.7-1.1\nx11-utils 7.7+5\n$ lsb_release -dr\nDescription: Debian GNU/Linux bullseye/sid\nRelease: unstable\n$ uname -m\nx86_64\n