Difference between revisions of "Package:ACPI Daemon"

m (Kernel configuration: Began making text in {{kernelop}} bold)
m (Explanations of different ACPI options in the kernel: Finished making the text bold)
Line 20: Line 20:
 
* '''AC Adapter'''
 
* '''AC Adapter'''
 
{{kernelop
 
{{kernelop
|Power management and ACPI options ---><br>  ACPI (Advanced Configuration and Power Interface) Support --->
+
|'''Power management and ACPI options ---><br>  ACPI (Advanced Configuration and Power Interface) Support --->'''
|< > AC Adapter
+
|'''< > AC Adapter'''
 
}}
 
}}
 
{{Note}} If you have a system that can switch between being plugged into AC and using a battery (i.e. a laptop), you should compile this option into your kernel.
 
{{Note}} If you have a system that can switch between being plugged into AC and using a battery (i.e. a laptop), you should compile this option into your kernel.
Line 27: Line 27:
 
*  '''Battery'''
 
*  '''Battery'''
 
{{kernelop
 
{{kernelop
|Power management and ACPI options ---><br>  ACPI (Advanced Configuration and Power Interface) Support --->
+
|'''Power management and ACPI options ---><br>  ACPI (Advanced Configuration and Power Interface) Support --->'''
|< > Battery
+
|'''< > Battery'''
 
}}
 
}}
 
{{Note}} As its name would suggest, this option adds or removes support for the battery. More specifically, through /proc/acpi/battery. If you have a laptop or other mobile system, you should probably compile this into your kernel.
 
{{Note}} As its name would suggest, this option adds or removes support for the battery. More specifically, through /proc/acpi/battery. If you have a laptop or other mobile system, you should probably compile this into your kernel.
Line 34: Line 34:
 
* '''Button'''
 
* '''Button'''
 
{{kernelop
 
{{kernelop
|Power management and ACPI options ---><br>  ACPI (Advanced Configuration and Power Interface) Support --->
+
|'''Power management and ACPI options ---><br>  ACPI (Advanced Configuration and Power Interface) Support --->'''
|< > Button
+
|'''< > Button'''
 
}}
 
}}
 
{{Note}} This driver handles power, sleep, and other buttons. This driver is recommended because it is necessary for software controlled power-off.
 
{{Note}} This driver handles power, sleep, and other buttons. This driver is recommended because it is necessary for software controlled power-off.
Line 41: Line 41:
 
* '''Video'''
 
* '''Video'''
 
{{kernelop
 
{{kernelop
|Power management and ACPI options ---><br>  ACPI (Advanced Configuration and Power Interface) Support --->
+
|'''Power management and ACPI options ---><br>  ACPI (Advanced Configuration and Power Interface) Support --->'''
|< > Video
+
|'''< > Video'''
 
}}  
 
}}  
 
{{Note}} Implements ACPI extensions for integrated graphics devices. Also adds support for setting up a video output.  
 
{{Note}} Implements ACPI extensions for integrated graphics devices. Also adds support for setting up a video output.  
Line 48: Line 48:
 
* '''Fan'''
 
* '''Fan'''
 
{{kernelop
 
{{kernelop
|Power management and ACPI options ---><br>  ACPI (Advanced Configuration and Power Interface) Support --->
+
|'''Power management and ACPI options ---><br>  ACPI (Advanced Configuration and Power Interface) Support --->'''
|< > Fan
+
|'''< > Fan'''
 
}}
 
}}
 
{{Note}} Allows user-controlled applications to control fan speeds and access status of fans.  
 
{{Note}} Allows user-controlled applications to control fan speeds and access status of fans.  
Line 55: Line 55:
 
* '''Dock'''
 
* '''Dock'''
 
{{kernelop
 
{{kernelop
|Power management and ACPI options ---><br>  ACPI (Advanced Configuration and Power Interface) Support --->
+
|'''Power management and ACPI options ---><br>  ACPI (Advanced Configuration and Power Interface) Support --->'''
|[ ] Dock
+
|'''[ ] Dock'''
 
}}
 
}}
 
{{Note}} Builds support in the kernel for docking stations like the Dell Module Bay and the IBM Ultrabay.  
 
{{Note}} Builds support in the kernel for docking stations like the Dell Module Bay and the IBM Ultrabay.  

Revision as of 20:19, December 10, 2013

Introduction

What is acpi?

"In computing, the Advanced Configuration and Power Interface (ACPI) specification provides an open standard for device configuration and power management by the operating system." (Wikipedia)

What is acpid?

"ACPID is a completely flexible, totally extensible daemon for delivering ACPI events. It listens on a file (/proc/acpi/event) and when an event occurs, executes programs to handle the event. The programs it executes are configured through a set of configuration files, which can be dropped into place by packages or by the admin." [(http://acpid.sourceforge.net/ acpid Sourceforge)]

Preparing to install

Kernel configuration

Before we are ready to emerge acpid, it is a good idea to modify a few things in the kernel. If you have not modified your kernel before, you may want to check out the following page on configuring a kernel manually (page to be added..).



Explanations of different ACPI options in the kernel

Below are the locations and short descriptions of the function of different ACPI options in the kernel. In the majority of cases, you do not have to alter any of these to have a functional ACPI system.

  • AC Adapter

Note

{{{1}}}

If you have a system that can switch between being plugged into AC and using a battery (i.e. a laptop), you should compile this option into your kernel.
  • Battery

Note

{{{1}}}

As its name would suggest, this option adds or removes support for the battery. More specifically, through /proc/acpi/battery. If you have a laptop or other mobile system, you should probably compile this into your kernel.
  • Button

Note

{{{1}}}

This driver handles power, sleep, and other buttons. This driver is recommended because it is necessary for software controlled power-off.
  • Video
 

Note

{{{1}}}

Implements ACPI extensions for integrated graphics devices. Also adds support for setting up a video output.
  • Fan

Note

{{{1}}}

Allows user-controlled applications to control fan speeds and access status of fans.
  • Dock

Note

{{{1}}}

Builds support in the kernel for docking stations like the Dell Module Bay and the IBM Ultrabay.
  • Processor

Note

{{{1}}}

  • Processor Aggregator

Note

{{{1}}}

  • Thermal Zone

Installing acpid

Emerging

After configuring the kernel power management options, we are ready to install acpid.To emerge acpid, do the following:

# emerge -av acpid

Adding to rc

After you have finished emerging acpid, you may want to add it to the list of rc services to be started with your system at boot.

# rc-update add acpid default

Then, run the following to start acpid:

# /etc/init.d/acpid start