Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295854 - sys-power/acpid-2.0.3 does not need /proc/acpi/event
Summary: sys-power/acpid-2.0.3 does not need /proc/acpi/event
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-05 13:28 UTC by Thomas Bettler
Modified: 2010-04-04 16:39 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bettler 2009-12-05 13:28:12 UTC
/etc/init.d/acpid requires /proc/acpi/event to exist. However alternatively acpid depends on input layer and netlink:
      "If the events file does not exist, acpid will attempt to connect
       to the Linux kernel via the input layer and netlink." - man acpid

Therefore we might adapt checkconfig() to reflect this change.
Unfortunately I don't know what kernel version and parameters to check exactly, so I apreciate very much any helping hints.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-03-31 20:53:19 UTC
Same deal for 2.0.3. It seems to want /dev/input/event* for Power Button e.g.

$ cat /proc/bus/input/devices
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
U: Uniq=
H: Handlers=kbd event0 
B: EV=3
B: KEY=10000000000000 0

and second similar one. does kernel's rfkill have something to do with this?
Comment 2 Ted Felix 2010-04-02 15:00:50 UTC
Debian was doing something like this as well.  I don't think there is an easy way to determine whether you will get ACPI-related messages via netlink and the input layer.  (I guess you could query the input layer files to see if there's anything ACPI-related there, but then there's still netlink to check.  I think the only reliable thing that might work would be to check for the proper CONFIG_* entries in the kernel .config.  That doesn't sound easy or reliable to me.)  It's probably best to always load acpid and let it see if it can find what it needs.  Since it will always be able to hook up to netlink, it will probably always run.  You'll have to leave it up to the user to remove it or turn it off if they don't want it.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-04-04 16:39:20 UTC
thanks for explanation

+*acpid-2.0.3-r1 (04 Apr 2010)
+
+  04 Apr 2010; Samuli Suominen <ssuominen@gentoo.org>
+  +acpid-2.0.3-r1.ebuild, +files/acpid-2.0.3-init.d:
+  Don't check for /proc/acpi anymore wrt #295854.