Difference between revisions of "Package:ACPI Daemon"

From Funtoo
Jump to: navigation, search
Line 11: Line 11:
  
 
{{kernelop
 
{{kernelop
|Enabling acpid (if it is not already enabled)
+
|Power management and ACPI options --->  
|Power management and ACPI options ---> <br>        [*] ACPI (Advanced Configuration and Power Interface) Support   
+
|[*] ACPI (Advanced Configuration and Power Interface) Support   
 
}}
 
}}
  
Line 45: Line 45:
 
== Installing acpid ==
 
== Installing acpid ==
 
==== Emerging ====
 
==== Emerging ====
To install acpid, run this command:
+
After configuring the kernel power management options, we are ready to install acpid.To emerge acpid, do the following:
 
<console>
 
<console>
 
##r### ##b##emerge -av acpid
 
##r### ##b##emerge -av acpid
Line 51: Line 51:
  
 
==== Adding to rc ====
 
==== Adding to rc ====
After you have finished installing acpid, you may want to add it to the list of rc services to be started with your system at boot.
+
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.
 
<console>
 
<console>
 
##r### ##b##rc-update add acpid default
 
##r### ##b##rc-update add acpid default
 
</console>
 
</console>
Then, run the following to start rc:
+
Then, run the following to start acpid:
 
<console>
 
<console>
##r### ##b##rc
+
##r### ##b##/etc/init.d/acpid start
 
</console>
 
</console>
 
[[Category:System]]
 
[[Category:System]]

Revision as of 23:55, 11 November 2013

Contents

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

  • AC Adapter

Note 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.

  • Battery

Note 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.

  • Button
  • Video
  • Fan
  • Dock
  • Processor
  • Processor Aggregator
  • 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