「蓋子設備不符合 SW_LID」是什麼意思?意思是?

「蓋子設備不符合 SW_LID」是什麼意思?意思是?

這是什麼意思以及如何糾正它?

# cat /var/log/messages | grep -a 'lid'
Mar 22 00:36:00 debian kernel: [ 1039.517767] ACPI: button: The lid device is not compliant to SW_LID.

系統:

# uname -a
Linux debian 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux

答案1

該訊息來自Linux 核心中模組drivers/acpi/button.c的一部分 。 例如,在after 行下您可以找到它:ACPI_BUTTON
linux-source-4.19/drivers/acpi/button.c171

194 /* Complain the buggy firmware */
195 pr_warn_once("The lid device is not compliant to SW_LID.\n");

正如你所看到的,這則訊息是在以下時間列印的:有缺陷的韌體被檢測到。評論繼續說:

196 /*
197  * Send the unreliable complement switch event:
.    *
.    * On most platforms, the lid device is reliable. However
.    * there are exceptions:
.    * 1. Platforms returning initial lid state as "close" by
.    *    default after booting/resuming:
.    *     https://bugzilla.kernel.org/show_bug.cgi?id=89211
.    *     https://bugzilla.kernel.org/show_bug.cgi?id=106151
.    * 2. Platforms never reporting "open" events:
.    *     https://bugzilla.kernel.org/show_bug.cgi?id=106941
.    * On these buggy platforms, the usage model of the ACPI
.    * lid device actually is:
.    * 1. The initial returning value of _LID may not be
.    *    reliable.
.    * 2. The open event may not be reliable.
.    * 3. The close event is reliable.
.    *
.    * But SW_LID is typed as input switch event, the input
.    * layer checks if the event is redundant. Hence if the
.    * state is not switched, the userspace cannot see this
.    * platform triggered reliable event. By inserting a
.    * complement switch event, it then is guaranteed that the
.    * platform triggered reliable one can always be seen by
.    * the userspace.
222  */

如何修復它 - 這只是一條診斷訊息,如果一切正常,您可以忽略它。如果某些功能不起作用,您應該訪問上面發布的鏈接,並為您擁有的特定硬體搜索可能的解決方案,或者嘗試升級計算機的固件,不幸的是,這在Linux 上可能並不總是可行。

相關內容