Hello Sander,
Hi Rafael / Len,
Unfortunately haven't heard anything back .. and with 3.19-rc6 it seems
miraculously fixed, i receive only one event on a powerbutton press.
However with 3.19.0 (final) .. it was back again .. 1 press .. 2 events.
So i bisected ... but i came out on the netlink commit below. Now seems acpid to
be using input layer and netlink if the deprecated /proc/apci/events is not compiled in (which
isn't at present) according to [1].
But how the fsck this relates to one another... the only thing i can imagine is
that i have to take that text literal: It uses both input layer and netlink
simultaneously and will receive an event via both of those ways which slightly
differ in naming but have the same origin ?
acpid used is debian wheezy: acpid 1:2.0.16-1+deb7u1 amd64 Advanced Configuration and Power Interface event daemon
--
Sander
[1]
http://manpages.ubuntu.com/manpages/precise/man8/acpid.8.html
8b7c36d810c61ab16997f4387fc16291410700f8 is the first bad commit
commit 8b7c36d810c61ab16997f4387fc16291410700f8
Author: Pablo Neira <
pa...@netfilter.org>
Date: Thu Jan 29 10:51:53 2015 +0100
netlink: fix wrong subscription bitmask to group mapping in
The subscription bitmask passed via struct sockaddr_nl is converted to
the group number when calling the netlink_bind() and netlink_unbind()
callbacks.
The conversion is however incorrect since bitmask (1 << 0) needs to be
mapped to group number 1. Note that you cannot specify the group number 0
(usually known as _NONE) from setsockopt() using NETLINK_ADD_MEMBERSHIP
since this is rejected through -EINVAL.
This problem became noticeable since 97840cb ("netfilter: nfnetlink:
fix insufficient validation in nfnetlink_bind") when binding to bitmask
(1 << 0) in ctnetlink.
Reported-by: Andre Tomt <
an...@tomt.net>
Reported-by: Ivan Delalande <
col...@arista.com>
Signed-off-by: Pablo Neira Ayuso <
pa...@netfilter.org>
Signed-off-by: David S. Miller <
da...@davemloft.net>
:040000 040000 1a624f23ebb1006bcd734f850c2350bdce751356 e24acc011aea2048599514ed278582a27265fab6 M net