This isn't a patch. It is the complete source code for my version of acpid including Netlink and Input Layer support. Since several files have been added and substantial changes have been made to some existing files, the complete source seemed more appropriate than a patch/diff. It is based on 1.0.8, so doing a diff with 1.0.8 will reveal the changes that were made.
Any testing anyone can do with this would be much appreciated. Post problems and patches on SourceForge or email them to me directly. Thanks.
Some notes on this release...
The format of the event strings is slightly different from /proc/acpi/event. I took liberties with the lid switch where we have additional info with the input layer. It would be pretty easy to make this 100% compatible with the old style if needed. This should be compatible enough that it won't break any existing conf files.
Switched from poll() to select(). Can easily switch back if there's a good reason for poll() that I'm not aware of. select() is older and should be more compatible. poll() is easier to use and can be faster, though probably not in acpid's case.
I cleaned up the #include's. This might cause trouble in other OS's.
Input Layer and Netlink tie us to Linux. It might be a good idea to conditionally compile these out for non-Linux OS's. If anyone uses acpid in a non-Linux OS, I would appreciate hearing from them.
Ted.
acpid 1.0.8ted1 complete source
acpid 1.0.10-netlink2 complete source
acpid 1.0.10-netlink3 complete source
acpid 1.0.10-netlink4 complete source
netlink5 complete source
netlink6 complete source
acpid 2.0.0 complete source
acpid 2.0.1 complete source
acpid 2.0.2 complete source
acpid 2.0.3 complete source
acpid 2.0.4 complete source
acpid 2.0.7 complete source
acpid 2.0.9 complete source