Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508460 - sys-power/acpid - Add check for CONFIG_INPUT_EVDEV kernel option
Summary: sys-power/acpid - Add check for CONFIG_INPUT_EVDEV kernel option
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michal Hrusecky (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-04-22 23:50 UTC by Thomas Deutschmann (RETIRED)
Modified: 2014-07-21 19:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Add check for CONFIG_INPUT_EVDEV kernel option (acpid-add-check-for-EVDEV.patch,872 bytes, patch)
2014-04-22 23:50 UTC, Thomas Deutschmann (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2014-04-22 23:50:16 UTC
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.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-07-21 19:38:56 UTC
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!