ACPI modules

From ArchWiki

Jump to: navigation, search
i18n
English
中文(简体)

Contents

ACPI modules

Summary

Since kernel 2.6.20.7 acpi modules are all modularized, to avoid acpi issues that were reported on some machines.

This is a small list and summary of kernel acpi modules, that enables special acpi functions or add information to /proc, that can be parsed by acpid for events or other monitoring applications.

Which modules are available?

  • ac (power connector status) => autoloaded during boot initscripts-0.8-7!
  • asus-laptop (useful on asus/medion laptops)
  • battery (battery status) => autoloaded during boot initscripts-0.8-7!
  • bay (bay status)
  • button (catch button events, like LID or POWER BUTTON) => autoloaded during boot initscripts-0.8-7!
  • container (container status)
  • dock (docking station status)
  • fan (fan status) => autoloaded during boot initscripts-0.8-7
  • i2c_ec (EC SMBUs driver)
  • ibm_acpi (useful on ibm laptops) (thinkpad_acpi since 2.6.22)
  • processor (processor status) => built into kernel 2.6.20.7-2!
  • sbs (smart battery status)
  • thermal (status of thermal sensors) => built into kernel 2.6.20.7-2!
  • toshiba_acpi (useful for toshiba laptops)
  • video (status of video devices)

complete list of your running kernel:

ls -l /lib/modules/$(uname -r)/kernel/drivers/acpi

How to select the correct ones

You have to try yourself which module works for your machine:

modprobe <yourmodule>

then check if the module is supported on your hardware by using

dmesg

or

/proc/acpi/<dir>

Add the working ones to your MODULES=() array in rc.conf

On laptops, basically these ones should work:

  • ac
  • battery
  • button
  • fan

On desktops/servers, this one should work:

  • button

Updates since 2.6.24

proc is being deprecated, so you will find the information again in sysfs, e.g for battery:

/sys/class/power_supply/BAT0/

Troubleshooting

DSDT fix

If problems with power management persist despite having loaded the proper modules, a linux-unfriendly DSDT might be the cause. See the wiki article on DSDT.

Personal tools