在 MacBookPro10,1 上全新安装 Debian/stable 9.5 时,我试图从命令行显示 acpi 信息。
这是我看到的:
$ find /proc/acpi/
/proc/acpi/
/proc/acpi/button
/proc/acpi/button/lid
/proc/acpi/button/lid/LID0
/proc/acpi/button/lid/LID0/state
/proc/acpi/wakeup
但acpi
似乎还是看到了电池:
$ acpi -V
Battery 0: Discharging, 46%, 01:17:56 remaining
Battery 0: design capacity 8460 mAh, last full capacity 7415 mAh = 87%
Adapter 0: off-line
Cooling 0: Processor 0 of 17
Cooling 1: Processor 0 of 17
Cooling 2: Processor 0 of 17
Cooling 3: BAT0 no state information available
Cooling 4: Processor 0 of 17
Cooling 5: intel_powerclamp no state information available
Cooling 6: Processor 0 of 17
Cooling 7: Processor 0 of 17
Cooling 8: Processor 0 of 17
Cooling 9: x86_pkg_temp no state information available
Cooling 10: Processor 0 of 17
/proc/acpi
为了从界面获取正确的电池信息,我在安装过程中遗漏了什么?
acpi
查看在我的 Ubuntu 上执行的系统调用:所以它似乎是从
/sys/class/power_supply/*
.由于该功能是在 Debian 内核中提供的,
/sys/class/power_supply/*
并且是在没有 Debian 内核的情况下构建的CONFIG_ACPI_PROCFS_POWER
:你不会再看到任何东西
/proc/acpi/battery/*