when i'm on battery with my laptop using tuxonice-sources and acpid-1.0.6-r1 syslog reports an acpi-battery-event every 2 seconds. then it executes the /etc/acpi/actions/lm_battery.sh but this is done about 30 times a minute... Reproducible: Always Steps to Reproduce: 1.tuxonice-2.6.24 and acpid-1.0.6-r1 should be installed (amd64 here) 2.start /etc/init.d/acpid 3.look how acpid spams your syslog full of event-reception every 2 seconds Actual Results: syslog is full of acpid-messages and acpi-action-scripts are executed every 2 seconds Expected Results: no battery event every 2 seconds should be reported
I have this on a HP laptop. I figured it was because my laptop was charging?
well the problem here also is on a hp laptop, but as mentioned, its when i'm running on battery and doesn't happen when i'm on ac_power, so no problem when charging
Created attachment 146178 [details, diff] Patch to supress log messages with a -q option
Created attachment 146179 [details] Ebuild to use the above patch
Hi Guys, I don't think this is an acpid bug. Some laptops have their bios wired this way, and generate an acpi battery event every so often. (Mine generates one every 30 seconds). The part that *is* a bug is that acpid provides no mechanism to suppress the informational messages. (With a 5 line log message every 30 seconds, my log file gets cluttered with some 1200 useless lines when I work unplugged. Worse still, this logging causes the hard disk to wake up on each battery event, which is *certainly* undesirable) So I attach a patch that adds a -q option. In this case acpid will not log informational messages. GI PS: Patch also submitted upstream.
Created attachment 146258 [details, diff] Patch against acpid-1.0.6 to bring it to CVS 2007-11-25
Created attachment 146260 [details] Ebuild to use the above patch Note: The above ebuild expects the patch to be bzipped. I posted the unzipped version for easy online viewing.
Comment on attachment 146258 [details, diff] Patch against acpid-1.0.6 to bring it to CVS 2007-11-25 Looks like this issue was fixed in the CVS repository of acpid. (The fix is a little nicer than my patch). I attach the patch (directly from upstream), and an ebuild to use it.
I found out that on my system the flood of ACPI battery events is generated because of a DSDT bug! See http://gentoo-wiki.com/HOWTO_Fix_Common_ACPI_Problems When I fixed my DSDT, ACPI events get generated only when the battery level changes by a percent (increase or decrease), which is pretty nice (and does not wreak havoc on my log files). Regardless, it is nice that the new acpid provides an option to suppress these log messages, GI
acpid-2.0.3 is in tree now, and I see something similar to this applied there. so closing as fixed by 2.0.3, please open new bug if you still have issues with it.