#11 Netlink and Input Layer Support

open
nobody
None
5
2008-12-12
2008-12-12
Ted Felix
No

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.

Discussion

  • Ted Felix

    Ted Felix - 2008-12-12

    acpid 1.0.8ted1 complete source

     
  • Ted Felix

    Ted Felix - 2009-12-15

    acpid 2.0.0 complete source

     
  • Ted Felix

    Ted Felix - 2010-01-15

    acpid 2.0.1 complete source

     
  • Ted Felix

    Ted Felix - 2010-02-15

    acpid 2.0.2 complete source

     
  • Ted Felix

    Ted Felix - 2010-03-16

    acpid 2.0.3 complete source

     
  • Ted Felix

    Ted Felix - 2010-04-16

    acpid 2.0.4 complete source

     
  • Ted Felix

    Ted Felix - 2010-11-15

    acpid 2.0.7 complete source

     
  • Ted Felix

    Ted Felix - 2011-04-15

    acpid 2.0.9 complete source

     

Log in to post a comment.