{"id":7663,"date":"2020-05-23T18:43:32","date_gmt":"2020-05-23T10:43:32","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7663"},"modified":"2020-05-23T18:43:32","modified_gmt":"2020-05-23T10:43:32","slug":"acpid","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/acpid","title":{"rendered":"acpid\u547d\u4ee4 – \u7535\u6e90\u9ad8\u7ea7\u63a5\u53e3\u914d\u7f6e"},"content":{"rendered":"\n
acpid\u547d\u4ee4\u5411\u7528\u6237\u7a7a\u95f4\u7a0b\u5e8f\u901a\u77e5ACPI\u4e8b\u4ef6\uff0c acpid\u5e94\u8be5\u5728\u7cfb\u7edf\u5f15\u5bfc\u671f\u95f4\u542f\u52a8\uff0c\u5e76\u4e14\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5c06\u4f5c\u4e3a\u540e\u53f0\u8fdb\u7a0b\u8fd0\u884c\uff1b\u5b83\u5c06\u6253\u5f00\u4e00\u4e2a\u4e8b\u4ef6\u6587\u4ef6\uff08\u9ed8\u8ba4\u4e3a\/proc\/acpi\/event\uff09\uff0c\u5e76\u5c1d\u8bd5\u8bfb\u53d6\u4ee3\u8868ACPI\u4e8b\u4ef6\u7684\u6574\u884c\uff1b \u5982\u679c\u4e8b\u4ef6\u6587\u4ef6\u4e0d\u5b58\u5728\uff0c\u5219acpid\u5c06\u5c1d\u8bd5\u901a\u8fc7\u8f93\u5165\u5c42\u548cnetlink\u8fde\u63a5\u5230Linux\u5185\u6838\uff1b \u5f53\u4ece\u8fd9\u4e9b\u6765\u6e90\u4e4b\u4e00\u63a5\u6536\u5230ACPI\u4e8b\u4ef6\u65f6\uff0cacpid\u5c06\u68c0\u67e5\u89c4\u5219\u5217\u8868\uff0c\u5e76\u6267\u884c\u4e0e\u4e8b\u4ef6\u5339\u914d\u7684\u89c4\u5219\uff1b \u5982\u679c\u5b58\u5728\u9501\u5b9a\u6587\u4ef6\uff08\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4e3a\/var\/lock\/acpid\uff09\uff0c\u5219acpid\u5c06\u5ffd\u7565\u6240\u6709\u4f20\u5165\u7684ACPI\u4e8b\u4ef6\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>acpid [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u4f7f\u7528-l\u53c2\u6570\u4fee\u6539\u5199\u5165\u65e5\u5fd7\u6587\u4ef6\uff1a<\/p>\n\n\n\n \u4f7f\u7528-d\u53c2\u6570\u542f\u7528\u8c03\u8bd5\u6a21\u5f0f\uff1a<\/p>\n\n\n\n \u4f7f\u7528-g\u53c2\u6570\uff0c\u66f4\u6539\u6743\u9650\u7ec4\uff0c\u6388\u6743\u4e8eroot\u7ec4\uff1a<\/p>\n\n\n\n acpid\u547d\u4ee4\u5411\u7528\u6237\u7a7a\u95f4\u7a0b\u5e8f\u901a\u77e5ACPI\u4e8b\u4ef6\uff0c acpid\u5e94\u8be5\u5728\u7cfb\u7edf\u5f15\u5bfc\u671f\u95f4\u542f\u52a8\uff0c\u5e76\u4e14\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5c06\u4f5c\u4e3a\u540e\u53f0\u8fdb\u7a0b […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7663"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=7663"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7663\/revisions"}],"predecessor-version":[{"id":7673,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7663\/revisions\/7673"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-l \u6587\u4ef6\u540d<\/td> \u66f4\u6539acpid\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u9ed8\u8ba4\u503c\u4e3a\/var\/log\/acpid<\/td><\/tr> -e \u6587\u4ef6\u540d<\/td> \u6b64\u9009\u9879\u66f4\u6539acpid\u4ece\u4e2d\u8bfb\u53d6\u4e8b\u4ef6\u7684\u4e8b\u4ef6\u6587\u4ef6\uff0c\u9ed8\u8ba4\u503c\u4e3a\/proc\/acpi\/event<\/td><\/tr> -g<\/td> \u6b64\u9009\u9879\u66f4\u6539acpid<\/strong>\u5c06\u4e8b\u4ef6\u53d1\u5e03\u5230\u7684UNIX\u57df\u5957\u63a5\u5b57\u7684\u7ec4\u6240\u6709\u6743<\/td><\/tr> -m<\/td> \u6b64\u9009\u9879\u66f4\u6539acpid\u5c06\u4e8b\u4ef6\u53d1\u5e03\u5230\u7684UNIX\u57df\u5957\u63a5\u5b57\u7684\u6743\u9650\uff1b\u9ed8\u8ba4\u503c\u4e3a0666<\/td><\/tr> -c<\/td> \u6b64\u9009\u9879\u66f4\u6539acpid\u5728\u5176\u4e2d\u67e5\u627e\u89c4\u5219\u914d\u7f6e\u6587\u4ef6\u7684\u76ee\u5f55\uff1b\u9ed8\u8ba4\u4e3a\/etc\/acpi\/events<\/td><\/tr> -d<\/td> \u8c03\u8bd5\u6a21\u5f0f\uff0c\u9ed8\u8ba4\u4e0d\u4f1a\u5199\u5165\u65e5\u5fd7<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# acpid -l acpid.txt \/var\/log\/<\/pre>\n\n\n\n
[root@linuxcool ~]# acpid -d<\/pre>\n\n\n\n
[root@linuxcool ~]# acpid -g root<\/pre>\n","protected":false},"excerpt":{"rendered":"