kacpimon is a monitor program that connects to three sources of ACPI events:
3. the input layer (/dev/input/event*)
kacpimon then reports on what it sees while it is connected.
Use kacpimon to make sure your kernel is sending acpi-related events via the three sources mentioned above.
Since both acpid(8) and kacpimon connect to the same sources, be sure to stop acpid(8) before running kacpimon. If you are using upstart(7), use initctl(8) to stop acpid(8). If you are using systemd(1), use systemctl(1) to stop acpid(8). If you aren't using either of those, you can try killall(1) to stop acpid(8).
Be sure to run kacpimon as root or else it won't be able to open /proc/acpi/event or the input layer:
If you want to pipe the output of kacpimon to a file, be sure to use the "Esc" key to exit rather than Ctrl-C. Using Ctrl-C will cause output to be lost.
kernel ACPI event file
input layer event files
Ted Felix <www.tedfelix.com>
- Make kacpimon something that actually gets installed?
kacpimon - Kernel ACPI Event Monitor
Copyright (C) 2009-2013 Ted Felix (www.tedfelix.com)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Or visit www.gnu.org.