You are not logged in.

#1 2008-03-10 14:16:44

elahav
Member
From: Ottawa, ON
Registered: 2005-04-18
Posts: 90

Frequent ACPI battery/AC events

I get a battery and an AC event every minute on my laptop, even when constantly running on AC power. Other than unnecessarily filling the log file, this results in the ati-powermode script being called excessively, causing the screen to flicker.

Here is a sample of the log file:

Mar 10 09:11:35 tull acpid: received event "battery BAT1 00000080 00000001"
Mar 10 09:11:35 tull acpid: notifying client 6537[82:82]
Mar 10 09:11:35 tull acpid: notifying client 6590[0:0]
Mar 10 09:11:35 tull acpid: completed event "battery BAT1 00000080 00000001"
Mar 10 09:11:35 tull acpid: received event "battery BAT1 00000000 00000001"
Mar 10 09:11:35 tull acpid: notifying client 6537[82:82]
Mar 10 09:11:35 tull acpid: notifying client 6590[0:0]
Mar 10 09:11:35 tull acpid: completed event "battery BAT1 00000000 00000001"
Mar 10 09:11:35 tull acpid: received event "ac_adapter ACAD 00000000 00000001"
Mar 10 09:11:35 tull acpid: notifying client 6537[82:82]
Mar 10 09:11:35 tull acpid: notifying client 6590[0:0]
Mar 10 09:11:35 tull acpid: executing action "/etc/acpi/ati-powermode.sh"
Mar 10 09:11:35 tull acpid: action exited with status 1
Mar 10 09:11:35 tull acpid: completed event "ac_adapter ACAD 00000000 00000001"

I am running the latest kernel, ACPID, KPowersave with PM-Utils.

Elad

Offline

#2 2008-03-23 00:50:50

chris89
Member
From: Austria
Registered: 2008-03-18
Posts: 48

Re: Frequent ACPI battery/AC events

Hi,

had a similar problem; it was caused by an acpid event script: http://bbs.archlinux.org/viewtopic.php?id=45632

but i have no idea why that command (laptop_mode auto) was responsible for that.

Last edited by chris89 (2008-03-23 00:54:44)

Offline

#3 2008-04-20 20:13:35

Wikimig
Developer
From: France
Registered: 2004-12-10
Posts: 77
Website

Re: Frequent ACPI battery/AC events

Hello !!

Elahav : I had the same issue with thousands of these :

Apr 13 13:36:33 WKMLpt acpid: received event "ac_adapter ADP1 00000000 00000001"
Apr 13 13:36:33 WKMLpt acpid: notifying client 4715[82:82]
Apr 13 13:36:33 WKMLpt acpid: notifying client 4797[0:0]
Apr 13 13:36:33 WKMLpt acpid: executing action "/etc/acpi/handler.sh ac_adapter ADP1 00000000 00000001"
Apr 13 13:36:33 WKMLpt acpid: action exited with status 0
Apr 13 13:36:33 WKMLpt acpid: completed event "ac_adapter ADP1 00000000 00000001"
Apr 13 13:36:33 WKMLpt acpid: received event "ac_adapter ADP1 00000000 00000000"
Apr 13 13:36:33 WKMLpt acpid: notifying client 4715[82:82]
Apr 13 13:36:33 WKMLpt acpid: notifying client 4797[0:0]
Apr 13 13:36:33 WKMLpt acpid: executing action "/etc/acpi/handler.sh ac_adapter ADP1 00000000 00000000"
Apr 13 13:36:33 WKMLpt acpid: action exited with status 0
Apr 13 13:36:33 WKMLpt acpid: completed event "ac_adapter ADP1 00000000 00000000"

As the flickering also happen under the grub menu I assume this is a hardware issue (my laptop must be getting old). The only "solution" I found is to recompile the kernel without the ACPI support (.config) :

# CONFIG_ACPI is not set
# CONFIG_APM is not set

Now I have to deal with computer not halting properly and with one line like this one every 10 minutes big_smile :

Apr 20 21:53:35 WKMLpt syslog-ng[3757]: Log statistics; processed='center(queued)=1036', processed='center(received)=386', processed='destination(acpid)=29', processed='destination(console)=0', processed='destination(debug)=0', processed='destination(mail)=0', processed='destination(user)=4', processed='destination(uucp)=0', processed='destination(messages)=309', processed='destination(ppp)=0', processed='destination(news)=0', processed='destination(iptables)=0', processed='destination(everything)=349', processed='destination(lpr)=0', processed='destination(cron)=0', processed='destination(syslog)=1', processed='destination(authlog)=8', processed='destination(errors)=3', processed='destination(kernel)=333', processed='destination(daemon)=0', processed='destination(console_all)=0', processed='source(src)=386'

But I think I read something about configuring syslog-ng that could help.

Hope it helps (even if by the time you must have bought another computer tongue). If someone has a suggestion...

Bye.

Edit: No log any more with this line commented in the /etc/syslog-ng.conf cool :

#log { source(src); filter(f_acpid); destination(acpid); flags(final); };

Wikimig.

Last edited by Wikimig (2008-04-27 13:25:42)

Offline

Board footer

Powered by FluxBB