AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 939764
Accepted
Elder Geek
Elder Geek
Asked: 2017-07-26 13:56:57 +0800 CST2017-07-26 13:56:57 +0800 CST 2017-07-26 13:56:57 +0800 CST

如何健全地检查我的 ACPI 表?

  • 772

我认为笔记本电脑中可能存在与 ACPI 相关的固件错误。如何检查我的 ACPI 表是否正常?

acpi
  • 1 1 个回答
  • 1845 Views

1 个回答

  • Voted
  1. Best Answer
    Elder Geek
    2017-07-26T13:56:57+08:002017-07-26T13:56:57+08:00

    幸运的是,有可用的工具。

    fwts

    这是固件测试套件,旨在询问和查看 BIOS + ACPI 固件错误。在最新的开发版本中提供了几个测试。

    安装:

    快速检查Ubuntu 软件包表明我们必须首先启用 Universe 存储库(如果尚未启用)。

    然后我们通过软件中心或使用命令安装:

    sudo apt-get install fwts

    fwts 可以运行几个有用的测试。

    也许最常用的一项是测试背光、亮度和电池的交互式测试。这是使用以下命令启动的:

    sudo fwts --interactive

    结果如下。

    Running 6 tests, results appended to results.log
    ==== Please press the laptop power button. ====
    ==== Setting backlight to a low level ====
    ==== Is the Backlight now set to a dim level? [Y/N]: 
    ==== Setting backlight to highest level ====
    ==== Is the Backlight now set to a bright level? [Y/N]: 
    ==== Backlight will now slowly transition from dim to bright ====
    ==== Did the backlight go from dim to bright? [Y/N]: 
    ==== Press the brightness UP hotkey for acpi_video0 ====
    ==== Press the brightness DOWN hotkey for acpi_video0 ====
    ==== Make sure laptop is connected to the mains power. ====
    Press <Enter> to continue
    ==== Please unplug the laptop power. ====
    ==== Please re-connect the laptop power. ====
    

    可以在文件 results.log 中启动 fwts 的目录中找到测试结果

    Acer Aspire D270-1865 的结果如下:

    Results generated by fwts: Version V16.03.00 (2016-03-14 09:10:20).
    
    Some of this work - Copyright (c) 1999 - 2016, Intel Corp. All rights reserved.
    Some of this work - Copyright (c) 2010 - 2016, Canonical.
    
    This test run on 25/07/17 at 18:44:34 on host Linux me-AOD270 4.4.0-78-generic
    #99-Ubuntu SMP Thu Apr 27 15:29:09 UTC 2017 x86_64.
    
    Command: "fwts --interactive".
    Running tests: hotkey power_button lid brightness battery ac_adapter.
    
    hotkey: Hotkey scan code tests.
    --------------------------------------------------------------------------------
    Cannot determine keymap for this machine.
    Aborted test, initialisation failed.
    ================================================================================
    0 passed, 0 failed, 0 warning, 1 aborted, 0 skipped, 0 info only.
    ================================================================================
    
    power_button: Interactive power_button button test.
    --------------------------------------------------------------------------------
    Test 1 of 1: Test press of power button and ACPI event.
    PASSED: Test 1, Detected PBTN power button event.
    
    ================================================================================
    1 passed, 0 failed, 0 warning, 0 aborted, 0 skipped, 0 info only.
    ================================================================================
    
    lid: Interactive lid button test.
    --------------------------------------------------------------------------------
    Test 1 of 3: Test LID buttons report open correctly.
    PASSED: Test 1, Detected open LID state.
    
    Test 2 of 3: Test LID buttons on a single open/close.
    Got 2 SCI interrupt(s).
    Got 2 interrupt(s) on GPE gpe11.
    Got 2 interrupt(s) on GPE gpe_all.
    PASSED: Test 2, Detected ACPI LID events while waiting for LID to closed.
    PASSED: Test 2, Detected lid closed state.
    Got 6 SCI interrupt(s).
    Got 1 interrupt(s) on GPE gpe01.
    Got 1 interrupt(s) on GPE gpe02.
    Got 5 interrupt(s) on GPE gpe11.
    Got 7 interrupt(s) on GPE gpe_all.
    PASSED: Test 2, Detected ACPI LID events while waiting for LID to open.
    PASSED: Test 2, Detected lid open state.
    
    Test 3 of 3: Test LID buttons on multiple open/close events.
    Some machines may have EC or ACPI faults that cause detection of multiple open
    /close events to fail.
    Got 2 SCI interrupt(s).
    Got 2 interrupt(s) on GPE gpe11.
    Got 2 interrupt(s) on GPE gpe_all.
    PASSED: Test 3, Detected ACPI LID events while waiting for LID to closed.
    PASSED: Test 3, Detected lid closed state.
    Got 2 SCI interrupt(s).
    Got 2 interrupt(s) on GPE gpe11.
    Got 2 interrupt(s) on GPE gpe_all.
    PASSED: Test 3, Detected ACPI LID events while waiting for LID to open.
    PASSED: Test 3, Detected lid open state.
    Got 2 SCI interrupt(s).
    Got 2 interrupt(s) on GPE gpe11.
    Got 2 interrupt(s) on GPE gpe_all.
    PASSED: Test 3, Detected ACPI LID events while waiting for LID to closed.
    PASSED: Test 3, Detected lid closed state.
    Got 7 SCI interrupt(s).
    Got 1 interrupt(s) on GPE gpe01.
    Got 6 interrupt(s) on GPE gpe11.
    Got 7 interrupt(s) on GPE gpe_all.
    PASSED: Test 3, Detected ACPI LID events while waiting for LID to open.
    PASSED: Test 3, Detected lid open state.
    Got 2 SCI interrupt(s).
    Got 2 interrupt(s) on GPE gpe11.
    Got 2 interrupt(s) on GPE gpe_all.
    PASSED: Test 3, Detected ACPI LID events while waiting for LID to closed.
    PASSED: Test 3, Detected lid closed state.
    Got 2 SCI interrupt(s).
    Got 2 interrupt(s) on GPE gpe11.
    Got 2 interrupt(s) on GPE gpe_all.
    PASSED: Test 3, Detected ACPI LID events while waiting for LID to open.
    PASSED: Test 3, Detected lid open state.
    
    ================================================================================
    17 passed, 0 failed, 0 warning, 0 aborted, 0 skipped, 0 info only.
    ================================================================================
    
    brightness: Interactive LCD brightness test.
    --------------------------------------------------------------------------------
    Test 1 of 3: Observe all brightness changes.
    PASSED: Test 1, Backlight psb-bl set to dim level.
    PASSED: Test 1, Backlight psb-bl set to bright level.
    PASSED: Test 1, Backlight acpi_video0 set to dim level.
    PASSED: Test 1, Backlight acpi_video0 set to bright level.
    
    Test 2 of 3: Observe min, max brightness changes.
    PASSED: Test 2, Backlight psb-bl was observed going from dim to bright.
    PASSED: Test 2, Backlight acpi_video0 was observed going from dim to bright.
    
    Test 3 of 3: Test brightness hotkeys.
    FAILED [HIGH] BrightnessNoIncrease: Test 3, Did not see brightness increased for
    psb-bl.
    FAILED [HIGH] BrightnessNoDecrease: Test 3, Did not see brightness decrease for
    psb-bl.
    FAILED [HIGH] BrightnessNoIncrease: Test 3, Did not see brightness increased for
    acpi_video0.
    FAILED [HIGH] BrightnessNoDecrease: Test 3, Did not see brightness decrease for
    acpi_video0.
    
    ================================================================================
    6 passed, 4 failed, 0 warning, 0 aborted, 0 skipped, 0 info only.
    ================================================================================
    
    battery: Battery tests.
    --------------------------------------------------------------------------------
    Test 1 of 1: Battery test.
    This test reports which (if any) batteries there are in the system. In addition,
    for charging or discharging batteries, the test validates that the reported
    'current capacity' properly increments/decrements in line with the charge
    /discharge state. This test also stresses the battery state reporting codepath
    in the ACPI BIOS, and any warnings given by the ACPI interpreter will be
    reported.
    Found 1 batteries.
    Test battery 'BAT1'.
    Got 12 SCI interrupt(s).
    Got 12 interrupt(s) on GPE gpe11.
    Got 12 interrupt(s) on GPE gpe_all.
    PASSED: Test 1, Detected ACPI battery events.
    FAILED [HIGH] BatteryNoEvents: Test 1, Could not detect ACPI events for battery
    BAT1.
    PASSED: Test 1, Battery BAT1 charge is decrementing as expected.
    Got 6 SCI interrupt(s).
    Got 6 interrupt(s) on GPE gpe11.
    Got 6 interrupt(s) on GPE gpe_all.
    PASSED: Test 1, Detected ACPI battery events.
    FAILED [HIGH] BatteryNoEvents: Test 1, Could not detect ACPI events for battery
    BAT1.
    PASSED: Test 1, Battery BAT1 charge is incrementing as expected.
    Please ignore this error with a new battery
    FAILED [LOW] BatteryZeroCycleCount: Test 1, System firmware may not support
    cycle count interface or it reports it incorrectly for battery BAT1.
    Test battery 'BAT1' downward trip point.
    Got 4 SCI interrupt(s).
    Got 4 interrupt(s) on GPE gpe11.
    Got 4 interrupt(s) on GPE gpe_all.
    PASSED: Test 1, Detected ACPI battery events.
    FAILED [HIGH] BatteryNoEvents: Test 1, Could not detect ACPI events for battery
    BAT1.
    Test battery 'BAT1' upwards trip point.
    FAILED [HIGH] NoSCIInterrupts: Test 1, Did not detect any SCI interrupts.
    FAILED [HIGH] NoGPEInterrupts: Test 1, Did not detect any GPE interrupts.
    FAILED [HIGH] BatteryNoEvents: Test 1, Did not detect any ACPI battery events.
    
    ================================================================================
    5 passed, 7 failed, 0 warning, 0 aborted, 0 skipped, 0 info only.
    ================================================================================
    
    ac_adapter: Interactive ac_adapter power test.
    --------------------------------------------------------------------------------
    Test 1 of 3: Test ACPI ac_adapter state.
    PASSED: Test 1, Detected a state in the ac_adapter state info.
    
    Test 2 of 3: Test ac_adapter initial on-line state.
    PASSED: Test 2, Detected ac_adapter on-line state.
    
    Test 3 of 3: Test ac_adapter state changes.
    PASSED: Test 3, Detected ac_adapter off-line state.
    PASSED: Test 3, Detected ac_adapter on-line state.
    
    ================================================================================
    4 passed, 0 failed, 0 warning, 0 aborted, 0 skipped, 0 info only.
    ================================================================================
    
    
    33 passed, 11 failed, 0 warning, 1 aborted, 0 skipped, 0 info only.
    
    Test Failure Summary
    ================================================================================
    
    Critical failures: NONE
    
    High failures: 8
     brightness: Did not see brightness increased for psb-bl.
     brightness: Did not see brightness decrease for psb-bl.
     brightness: Did not see brightness increased for acpi_video0.
     brightness: Did not see brightness decrease for acpi_video0.
     battery: Could not detect ACPI events for battery BAT1.
     battery: Did not detect any SCI interrupts.
     battery: Did not detect any GPE interrupts.
     battery: Did not detect any ACPI battery events.
    
    Medium failures: NONE
    
    Low failures: 1
     battery: System firmware may not support cycle count interface or it reports it incorrectly for battery BAT1.
    
    Other failures: NONE
    
    Test           |Pass |Fail |Abort|Warn |Skip |Info |
    ---------------+-----+-----+-----+-----+-----+-----+
    ac_adapter     |    4|     |     |     |     |     |
    battery        |    5|    7|     |     |     |     |
    brightness     |    6|    4|     |     |     |     |
    hotkey         |     |     |    1|     |     |     |
    lid            |   17|     |     |     |     |     |
    power_button   |    1|     |     |     |     |     |
    ---------------+-----+-----+-----+-----+-----+-----+
    Total:         |   33|   11|    1|    0|    0|    0|
    ---------------+-----+-----+-----+-----+-----+-----+
    

    另一种方法acpiexec来自acpica-tools 包。该软件包还要求我们 启用 Universe 存储库,以便通过软件中心或使用以下命令安装它:

    sudo apt-get install acpica-tools

    有关此替代方案的更多信息,请参阅以下来源:

    资料来源:

    https://wiki.ubuntu.com/Kernel/Reference/ACPITricksAndTips

    https://acpica.org/documentation/

    https://www.systutorials.com/docs/linux/man/1-acpiexec/

    • 3

相关问题

  • 从硬盘驱动器自动使用“noacpi”启动?

  • 在 KDE/Gnome 之外设置suspend-on-lid-close/Fn+F4?

  • 在戴尔 Inspiron 灵越 1525 上休眠

  • 如何停止 acpid 重启 /etc/acpi/lid.sh 不必要的重启?[关闭]

  • 按下电源按钮时如何关闭计算机?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve