<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/acpid/patches/" rel="alternate"/><link href="https://sourceforge.net/p/acpid/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/acpid/patches/</id><updated>2008-12-12T03:04:16Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>Netlink and Input Layer Support</title><link href="https://sourceforge.net/p/acpid/patches/11/" rel="alternate"/><published>2008-12-12T03:04:16Z</published><updated>2008-12-12T03:04:16Z</updated><author><name>Ted Felix</name><uri>https://sourceforge.net/u/tedfelix/</uri></author><id>https://sourceforge.netb07e0aca7b3a8e5ad5c0bf7bf7cabce17cc72390</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Any testing anyone can do with this would be much appreciated.  Post problems and patches on SourceForge or email them to me directly.  Thanks.&lt;/p&gt;
&lt;p&gt;Some notes on this release...&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;I cleaned up the #include's.  This might cause trouble in other OS's.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Ted.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add a -q option to supress unnecessary log messages</title><link href="https://sourceforge.net/p/acpid/patches/10/" rel="alternate"/><published>2008-03-14T23:54:24Z</published><updated>2008-03-14T23:54:24Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net1c71ee7c8bf15d800a4ada0ad5994491f78a2662</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;On my system, when the system is not plugged in it generates a battery event every 30 seconds. Googling, shows that I am not alone in this (some ubuntoo bug reports have been filed)&lt;/p&gt;
&lt;p&gt;So using my system unplugged for a two hours generates about 1200 useless log lines about acpid notifying clients about events.&lt;/p&gt;
&lt;p&gt;The attached patch adds a -q option which suppresses all LOG_INFO messages when -q is used.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>make acpid use syslog with parameters</title><link href="https://sourceforge.net/p/acpid/patches/9/" rel="alternate"/><published>2007-05-10T23:06:45Z</published><updated>2007-05-10T23:06:45Z</updated><author><name>abma</name><uri>https://sourceforge.net/u/maconey/</uri></author><id>https://sourceforge.net05d288394f889bd427fd2259e65b16a612635975</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This patch makes acpid use syslog instead of&lt;br /&gt;
using its own logfile writing.&lt;/p&gt;
&lt;p&gt;There is a new parameter to enable syslog ( -L or --syslog)&lt;/p&gt;
&lt;p&gt;Why isn't &lt;br /&gt;
&lt;a href="http://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=1579610&amp;amp;group_id=33140&amp;amp;atid=407343"&gt;http://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=1579610&amp;amp;group_id=33140&amp;amp;atid=407343&lt;/a&gt;&lt;br /&gt;
already included?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>make acpid use syslog</title><link href="https://sourceforge.net/p/acpid/patches/8/" rel="alternate"/><published>2006-10-18T12:01:22Z</published><updated>2006-10-18T12:01:22Z</updated><author><name>Stefan Seyfried</name><uri>https://sourceforge.net/u/seife/</uri></author><id>https://sourceforge.net2ed5d01e7b65aa21c35969e364a77ccccd63767b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This small patch makes acpid use syslog instead of &lt;br /&gt;
using its own logfile writing.&lt;/p&gt;
&lt;p&gt;With syslog-ng, these rules will give you an &lt;br /&gt;
almost-original /var/log/acpid:&lt;/p&gt;
&lt;p&gt;filter f_acpid      { match('^\[acpid\]:'); };&lt;br /&gt;
destination acpid { file("/var/log/acpid"); };&lt;br /&gt;
log { source(src); filter(f_acpid); &lt;br /&gt;
destination(acpid); flags(final); };&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ignore event configuration files ending on '~'</title><link href="https://sourceforge.net/p/acpid/patches/7/" rel="alternate"/><published>2006-10-18T11:58:09Z</published><updated>2006-10-18T11:58:09Z</updated><author><name>Stefan Seyfried</name><uri>https://sourceforge.net/u/seife/</uri></author><id>https://sourceforge.net43ec60d259a7e6b9bc18ddf4537ef4a807bb8d2f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This should fix the bug reported in&lt;br /&gt;
&lt;a href="https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=1530974&amp;amp;group_id=33140&amp;amp;atid=407341"&gt;https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=1530974&amp;amp;group_id=33140&amp;amp;atid=407341&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>fix gcc4.1 compile error, signedness problem in ud_socket.c</title><link href="https://sourceforge.net/p/acpid/patches/6/" rel="alternate"/><published>2006-10-18T11:50:50Z</published><updated>2006-10-18T11:50:50Z</updated><author><name>Stefan Seyfried</name><uri>https://sourceforge.net/u/seife/</uri></author><id>https://sourceforge.netaabd020984c5a9f64d740c6bc4884c8b4cab20b1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This patch fixes the signedness problem reported in &lt;br /&gt;
&lt;a href="https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=1553162&amp;amp;group_id=33140&amp;amp;atid=407341"&gt;https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=1553162&amp;amp;group_id=33140&amp;amp;atid=407341&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is in the SUSE package for a long time&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>don't close clients</title><link href="https://sourceforge.net/p/acpid/patches/5/" rel="alternate"/><published>2005-11-14T16:12:37Z</published><updated>2005-11-14T16:12:37Z</updated><author><name>Frederic Lepied</name><uri>https://sourceforge.net/u/flepied/</uri></author><id>https://sourceforge.netc28d31e4053a20789c6f34b73dc064fd4bcc7cf2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Avoid closing client connections as this is not needed.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>patch which allow to compile with gcc4</title><link href="https://sourceforge.net/p/acpid/patches/4/" rel="alternate"/><published>2005-08-01T11:04:52Z</published><updated>2005-08-01T11:04:52Z</updated><author><name>Neoclust</name><uri>https://sourceforge.net/u/neoclust/</uri></author><id>https://sourceforge.nete41c504673f1e552cb05780a4f71ee38761df2d5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;--- acpid-1.0.4/ud_socket.c.warning   2003-11-17 &lt;br /&gt;
16:24:58.000000000 -0500 &lt;br /&gt;
+++ acpid-1.0.4/ud_socket.c    2005-03-16 &lt;br /&gt;
17:51:40.000000000 -0500 &lt;br /&gt;
@@ -58,7 +58,7 @@ &lt;br /&gt;
while (1) { &lt;br /&gt;
int newsock = 0; &lt;br /&gt;
struct sockaddr_un cliaddr; &lt;br /&gt;
-      int len = sizeof(struct sockaddr_un); &lt;br /&gt;
+      socklen_t len = sizeof(struct sockaddr_un); &lt;/p&gt;
&lt;p&gt;newsock = accept(listenfd, (struct sockaddr &lt;br /&gt;
*)&amp;amp;cliaddr, &amp;amp;len); &lt;br /&gt;
if (newsock &amp;lt; 0) { &lt;br /&gt;
--- acpid-1.0.4/acpid.c.warning    2004-10-17 &lt;br /&gt;
18:33:51.000000000 -0400 &lt;br /&gt;
+++ acpid-1.0.4/acpid.c 2005-03-16 17:52:23.000000000 &lt;br /&gt;
-0500 &lt;br /&gt;
@@ -61,7 +61,7 @@ &lt;br /&gt;
main(int argc, char **argv) &lt;br /&gt;
{ &lt;br /&gt;
int event_fd; &lt;br /&gt;
-  int sock_fd; &lt;br /&gt;
+  int sock_fd = -1; &lt;/p&gt;
&lt;p&gt;/* learn who we really are */ &lt;br /&gt;
progname = (const char *)strrchr(argv[0], '/'); &lt;br /&gt;
@@ -386,9 +386,7 @@ &lt;br /&gt;
umask(0); &lt;/p&gt;
&lt;p&gt;/* get outta the way */ &lt;br /&gt;
-  chdir("/"); &lt;br /&gt;
- &lt;br /&gt;
-  return 0; &lt;br /&gt;
+  return chdir("/"); &lt;br /&gt;
} &lt;/p&gt;
&lt;p&gt;static int &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Lack of mkdir -p BINDIR in Makefile</title><link href="https://sourceforge.net/p/acpid/patches/3/" rel="alternate"/><published>2004-02-25T13:06:13Z</published><updated>2004-02-25T13:06:13Z</updated><author><name>k3c</name><uri>https://sourceforge.net/u/k3c/</uri></author><id>https://sourceforge.net0c91e2241ad103203813ed9ccc5f66398f76e9e8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When we install acpi_listen into BINDIR, we have to&lt;br /&gt;
mkdir -p BINDIR first.&lt;br /&gt;
This causes problem, for example, when building RPM&lt;br /&gt;
package.&lt;/p&gt;
&lt;p&gt;Please see attached small patch. It's that simple.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Multiple rules in one config file</title><link href="https://sourceforge.net/p/acpid/patches/2/" rel="alternate"/><published>2002-11-09T23:12:16Z</published><updated>2002-11-09T23:12:16Z</updated><author><name>Ian Morgan</name><uri>https://sourceforge.net/u/iemorgan/</uri></author><id>https://sourceforge.net05b3df4d46a5b2b7e946f335707c724cdb2dd19f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This patch was previously sent directly to Tim Hockin&lt;br /&gt;
&amp;amp;lt;thockin@sun.com&amp;amp;gt;.&lt;/p&gt;
&lt;p&gt;The old config file parser only allowed ONE rule to be&lt;br /&gt;
defined in each file. This was not documented, and even&lt;br /&gt;
the debugging didn't help figure out what was going on.&lt;br /&gt;
Only reading the code confirmed the behaviour appeared&lt;br /&gt;
to be by design. Tim confirmed that it was only because&lt;br /&gt;
the parser was written very quickly.&lt;/p&gt;
&lt;p&gt;This patch allow each config file to define multiple&lt;br /&gt;
rules. It works like a charm, and does smart things&lt;br /&gt;
when a config file is borked (missing or out-of-order&lt;br /&gt;
directives). The debugging (&amp;amp;gt;=3) reports each rule as&lt;br /&gt;
it is enlisted, the number of rules in each file, and a&lt;br /&gt;
total after all files are processed.&lt;/p&gt;
&lt;p&gt;This brings the config file parsing into line with what&lt;br /&gt;
I (and probably most people) would have expected.   &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;If you like this, please apply to your tree, or else&lt;br /&gt;
give me some feedback and I'll try to tweak it.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>