Created attachment 375502 [details, diff] Add check for CONFIG_INPUT_EVDEV kernel option If you want to use sys-power/acpid without CONFIG_INPUT_EVDEV kernel option, you will get the following output from "acpid --debug": # acpid --debug Deprecated /proc/acpi/event was not found. Trying netlink and the input layer... acpid: cannot open input layer inotify fd: 4 inotify wd: 1 netlink opened successfully acpid: starting up with netlink and the input layer parsing conf file /etc/acpi/events/default acpid: 1 rule loaded acpid: waiting for events: event logging is off Notice the "cannot open input layer" message. It doesn't sound fatal due to the "starting up with netlink and the input layer" message but if you send an ACPI shutdown signal for example (or if you press the power button) your system won't shutdown, because acpid won't detect the event. This seems to be a common problem, search for "acpid EVDEV". For example: https://forums.gentoo.org/viewtopic-t-840109-start-0.html When you apply my attached patch, a user emerging sys-power/acpid without CONFIG_INPUT_EVDEV kernel option set will get the following warning: * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/3.14.1-gentoo/build * Found sources for kernel version: * 3.14.1-gentoo * Checking for suitable kernel configuration options... * CONFIG_INPUT_EVDEV is not set. Without this option, acpid will be unable to detect ACPI button events. * Please check to make sure these options are set correctly. * Failure to do so may cause unexpected problems.
added to portage with minor modifications: - set empty pkg_setup() { :; } to avoid the linux-info.eclass's pkg_setup() so it doesn't check for kernel sources twice - shorten the message a bit, same information, just in one line thanks!