Menu

Tree [1701f8] master /
 History

HTTPS access


File Date Author Commit
 kacpimon 2021-09-20 Ted Felix Ted Felix [5ec0bf] Move MSG_CMSG_CLOEXEC fixes closer to socket.h
 samples 2020-10-26 Jonathan Davies Jonathan Davies [aa9305] powerbtn.sh: openrc-shutdown Set shutdown time ...
 .gitignore 2013-08-15 Ted Felix Ted Felix [e1aee9] Update .gitignore for Eclipse
 COPYING 2011-12-02 Ted Felix Ted Felix [8dbd5f] Initial commit...
 Changelog 2022-09-16 Ted Felix Ted Felix [1701f8] Update version to 2.0.35
 Makefile.am 2016-01-12 Khem Raj Khem Raj [d6c810] Use config.h from builddir instead of srcdir
 README 2022-09-16 Ted Felix Ted Felix [b9fc26] Update README
 TESTPLAN 2021-08-29 Ted Felix Ted Felix [184b6e] Comments
 TODO 2012-03-19 Ted Felix Ted Felix [81cf08] Update TODO
 acpi_genetlink.h 2011-12-02 Ted Felix Ted Felix [8dbd5f] Initial commit...
 acpi_ids.c 2012-02-16 Ted Felix Ted Felix [1b0ece] autoconf support
 acpi_ids.h 2012-02-16 Ted Felix Ted Felix [1b0ece] autoconf support
 acpi_listen.8 2012-01-24 Ted Felix Ted Felix [9bff0e] man page changes suggested by Debian bug #656676.
 acpi_listen.c 2015-07-21 Brendan Heading Brendan Heading [61e572] Fix compiler warnings
 acpid-design.odg 2011-12-02 Ted Felix Ted Felix [8dbd5f] Initial commit...
 acpid.8 2018-12-14 Ted Felix Ted Felix [ddcb6e] Remove filename argument from --nosocket option
 acpid.c 2019-07-31 Ted Felix Ted Felix [a931fb] Fix race during startup
 acpid.h 2018-03-29 Ted Felix Ted Felix [8aaa8e] Decouple -d and -f options
 configure.ac 2022-09-16 Ted Felix Ted Felix [1701f8] Update version to 2.0.35
 connection_list.c 2013-08-15 Ted Felix Ted Felix [6fe0b4] Add dynamic resizing of connecion_list
 connection_list.h 2013-08-15 Ted Felix Ted Felix [e74bff] Add delete_all_connections() and call it
 event.c 2018-03-29 Ted Felix Ted Felix [00a80c] Rename acpid_debug -> debug_level
 event.h 2013-12-19 Ted Felix Ted Felix [f19266] Replace die and kill with drop.
 genetlink.h 2011-12-02 Ted Felix Ted Felix [8dbd5f] Initial commit...
 inotify_handler.c 2021-08-29 Ted Felix Ted Felix [184b6e] Comments
 inotify_handler.h 2011-12-02 Ted Felix Ted Felix [8dbd5f] Initial commit...
 input_layer.c 2022-08-14 Ted Felix Ted Felix [928f5c] Comments
 input_layer.h 2011-12-02 Ted Felix Ted Felix [8dbd5f] Initial commit...
 libc_compat.h 2015-07-22 Brendan Heading Brendan Heading [c7895b] support for non-glibc libcs
 libnetlink.c 2021-09-20 Ted Felix Ted Felix [5ec0bf] Move MSG_CMSG_CLOEXEC fixes closer to socket.h
 libnetlink.h 2021-09-20 Ted Felix Ted Felix [5ec0bf] Move MSG_CMSG_CLOEXEC fixes closer to socket.h
 log.c 2018-03-29 Ted Felix Ted Felix [00a80c] Rename acpid_debug -> debug_level
 log.h 2018-03-29 Ted Felix Ted Felix [00a80c] Rename acpid_debug -> debug_level
 netlink.c 2021-09-20 Ted Felix Ted Felix [5ec0bf] Move MSG_CMSG_CLOEXEC fixes closer to socket.h
 netlink.h 2011-12-02 Ted Felix Ted Felix [8dbd5f] Initial commit...
 proc.c 2015-07-22 Brendan Heading Brendan Heading [c7895b] support for non-glibc libcs
 proc.h 2012-02-16 Ted Felix Ted Felix [1b0ece] autoconf support
 sock.c 2016-01-20 Maxin B. John Maxin B. John [5fd673] Fix out of tree build
 sock.h 2012-02-16 Ted Felix Ted Felix [1b0ece] autoconf support
 ud_socket.c 2016-01-20 Maxin B. John Maxin B. John [5fd673] Fix out of tree build
 ud_socket.h 2012-03-20 Ted Felix Ted Felix [4d0dd4] Fix socket fchmod and fchown.

Read Me

acpid for netlink
=================

This branch of the acpid project includes support for netlink and the input 
layer.  The latest version can be found here:

  http://sourceforge.net/projects/acpid2/

Previous (1.x) versions of acpid relied on /proc/acpi/event which is a 
deprecated kernel interface for ACPI events.  Newer kernels use netlink and 
the input layer to send ACPI-related events.  This branch of acpid uses these
new interfaces.

BUILD NOTES

Before installing, the chances are pretty good that you are already running
acpid.  You'll want to kill it before installing the new version.  While
"sudo killall acpid" might work, it is likely that you'll need to work with
init (e.g. upstart, systemd, ...) on your particular setup to stop acpid 
completely.  For example, with systemd, the proper incantation is usually
something like:

  $ sudo systemctl stop acpid.service acpid.socket acpid.path

acpid version 2.0.15 introduced autoconf.  To build versions >= 2.0.15:

  $ ./configure --prefix=/usr
  $ make
  $ sudo make install

If you want to start from scratch, use autoreconf to regenerate the configure
script from configure.ac and Makefile.am.  This is not normally needed, so
be sure you understand autoreconf before using it.

  $ autoreconf --install --force

Older versions (<= 2.0.14) of acpid simply required "make" to build:

  $ make
  $ sudo make install

CONTACT

Any comments or patches for this branch should be sent to Ted Felix
<ted@tedfelix.com>.

You can also fork the git repo on sourceforge or github and submit changes that way:

  https://sourceforge.net/projects/acpid2/
  https://github.com/tedfelix/acpid2

--------------------------------------------------------------------
OLD README

***********************************************************
*                      README for acpid                   *
*                                                         *
*  Daemon for Advanced Configuration and Power Interface  *
*  Tim Hockin                                             *
*      <thockin@hockin.org>                               *
*                                                         *
***********************************************************

Feb 13, 2004

Overview
--------

  ACPID used to try to handle events internally.  Rather than try to climb
  an ever-growing mountain, ACPID now lets YOU define what events to handle.
  Any event that publishes itself to /proc/acpi/event can be handled.

  ACPID reads a set of configuration files which define event->action pairs.
  This is how you make it do stuff. See the man page for details.

Implementation status
---------------------

  This version should have complete support for generic handling of events.

Requirements
------------

  For 2.6 and newer 2.4 kernels, ACPI seems to be fully integrated.  That
  should be all you need.

  The ACPI kernel driver should be working on your system before trying
  ACPID.  Verify ACPI is loaded by verifying the existence of
  /proc/acpi/event.

Compiling ACPID
---------------

  type "make"