You are not logged in.

#1 2008-03-18 13:51:42

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

<solved> [acpid] too much events are triggered when screen is closed

Hi @all,

I'm new to arch linux and i have got an annoying problem with acpi on my notebook (ACER Aspire 1694WLMi)

When I close my screen (or press the little button manually) acpid triggers far too much events:

acpi_listen output example

...
button/lid LID 00000080 00000030
button/lid LID 00000080 00000031
button/lid LID 00000080 00000032
button/lid LID 00000080 00000033
button/lid LID 00000080 00000034
button/lid LID 00000080 00000035
button/lid LID 00000080 00000036
button/lid LID 00000080 00000037
button/lid LID 00000080 00000038
button/lid LID 00000080 00000039
...

The strange thing is that acpid triggers more events when my screen is closed for a few minutes than just for one second. The output above shows just a half of a second.

acpid.log output example

...
Mar 18 00:57:15 aspire1694 acpid: received event "button/lid LID 00000080 00000030"
Mar 18 00:57:15 aspire1694 acpid: notifying client 2742[82:82]
Mar 18 00:57:15 aspire1694 acpid: executing action "/etc/acpi/handler.sh button/lid LID 00000080 00000030"
Mar 18 00:57:15 aspire1694 acpid: action exited with status 0
Mar 18 00:57:15 aspire1694 acpid: executing action "/etc/acpi/actions/lm_lid.sh button/lid LID 00000080 00000030"
Mar 18 00:57:15 aspire1694 acpid: action exited with status 0
Mar 18 00:57:15 aspire1694 acpid: completed event "button/lid LID 00000080 00000030"
Mar 18 00:57:15 aspire1694 acpid: received event "button/lid LID 00000080 00000031"
Mar 18 00:57:15 aspire1694 acpid: notifying client 2742[82:82]
Mar 18 00:57:15 aspire1694 acpid: executing action "/etc/acpi/handler.sh button/lid LID 00000080 00000031"
Mar 18 00:57:15 aspire1694 acpid: action exited with status 0
Mar 18 00:57:15 aspire1694 acpid: executing action "/etc/acpi/actions/lm_lid.sh button/lid LID 00000080 00000031"
Mar 18 00:57:15 aspire1694 acpid: action exited with status 0
Mar 18 00:57:15 aspire1694 acpid: completed event "button/lid LID 00000080 00000031"
Mar 18 00:57:15 aspire1694 acpid: received event "button/lid LID 00000080 00000032"
Mar 18 00:57:15 aspire1694 acpid: notifying client 2742[82:82]
Mar 18 00:57:15 aspire1694 acpid: executing action "/etc/acpi/handler.sh button/lid LID 00000080 00000032"
Mar 18 00:57:15 aspire1694 acpid: action exited with status 0
Mar 18 00:57:15 aspire1694 acpid: executing action "/etc/acpi/actions/lm_lid.sh button/lid LID 00000080 00000032"
Mar 18 00:57:16 aspire1694 acpid: action exited with status 0
Mar 18 00:57:16 aspire1694 acpid: completed event "button/lid LID 00000080 00000032"
Mar 18 00:57:16 aspire1694 acpid: received event "button/lid LID 00000080 00000033"
Mar 18 00:57:16 aspire1694 acpid: notifying client 2742[82:82]
Mar 18 00:57:16 aspire1694 acpid: executing action "/etc/acpi/handler.sh button/lid LID 00000080 00000033"
Mar 18 00:57:16 aspire1694 acpid: action exited with status 0
Mar 18 00:57:16 aspire1694 acpid: executing action "/etc/acpi/actions/lm_lid.sh button/lid LID 00000080 00000033"
Mar 18 00:57:16 aspire1694 acpid: action exited with status 0
Mar 18 00:57:16 aspire1694 acpid: completed event "button/lid LID 00000080 00000033"
Mar 18 00:57:16 aspire1694 acpid: received event "button/lid LID 00000080 00000034"
Mar 18 00:57:16 aspire1694 acpid: notifying client 2742[82:82]
Mar 18 00:57:16 aspire1694 acpid: executing action "/etc/acpi/handler.sh button/lid LID 00000080 00000034"
Mar 18 00:57:16 aspire1694 acpid: action exited with status 0
Mar 18 00:57:16 aspire1694 acpid: executing action "/etc/acpi/actions/lm_lid.sh button/lid LID 00000080 00000034"
Mar 18 00:57:16 aspire1694 acpid: action exited with status 0
Mar 18 00:57:16 aspire1694 acpid: completed event "button/lid LID 00000080 00000034"
Mar 18 00:57:16 aspire1694 acpid: received event "button/lid LID 00000080 00000035"
Mar 18 00:57:16 aspire1694 acpid: notifying client 2742[82:82]
Mar 18 00:57:16 aspire1694 acpid: executing action "/etc/acpi/handler.sh button/lid LID 00000080 00000035"
Mar 18 00:57:16 aspire1694 acpid: action exited with status 0
Mar 18 00:57:16 aspire1694 acpid: executing action "/etc/acpi/actions/lm_lid.sh button/lid LID 00000080 00000035"
Mar 18 00:57:16 aspire1694 acpid: action exited with status 0
Mar 18 00:57:16 aspire1694 acpid: completed event "button/lid LID 00000080 00000035"
Mar 18 00:57:16 aspire1694 acpid: received event "button/lid LID 00000080 00000036"
Mar 18 00:57:16 aspire1694 acpid: notifying client 2742[82:82]
Mar 18 00:57:16 aspire1694 acpid: executing action "/etc/acpi/handler.sh button/lid LID 00000080 00000036"
Mar 18 00:57:16 aspire1694 acpid: action exited with status 0
Mar 18 00:57:16 aspire1694 acpid: executing action "/etc/acpi/actions/lm_lid.sh button/lid LID 00000080 00000036"
Mar 18 00:57:16 aspire1694 acpid: action exited with status 0
Mar 18 00:57:16 aspire1694 acpid: completed event "button/lid LID 00000080 00000036"
Mar 18 00:57:16 aspire1694 acpid: received event "button/lid LID 00000080 00000037"
Mar 18 00:57:16 aspire1694 acpid: notifying client 2742[82:82]
Mar 18 00:57:16 aspire1694 acpid: executing action "/etc/acpi/handler.sh button/lid LID 00000080 00000037"
Mar 18 00:57:16 aspire1694 acpid: action exited with status 0
Mar 18 00:57:16 aspire1694 acpid: executing action "/etc/acpi/actions/lm_lid.sh button/lid LID 00000080 00000037"
Mar 18 00:57:16 aspire1694 acpid: action exited with status 0
...

Apart from this annoying thing acpi works just fine. I have tried a bios update for my notebook, but that changed nothing. The next thing i would try is to patch the DSDT file, but i cannot find acpidump in the arch repos to dump the DSDT file.

Has anyone a solution to this problem or a better idea?

Complete acpi_listen output for 5 seconds: http://80.190.53.236/~christoph/acpi_listen.output.5sec
acpid log: http://80.190.53.236/~christoph/acpid.log

Thanks in advance
Chris

Last edited by chris89 (2008-03-22 15:57:36)

Offline

#2 2008-03-18 17:03:25

nDray
Member
From: Portugal
Registered: 2007-01-21
Posts: 143
Website

Re: <solved> [acpid] too much events are triggered when screen is closed

button/lid LID 00000080 00000030
button/lid LID 00000080 00000031
button/lid LID 00000080 00000032
button/lid LID 00000080 00000033
button/lid LID 00000080 00000034
button/lid LID 00000080 00000035
button/lid LID 00000080 00000036
button/lid LID 00000080 00000037
button/lid LID 00000080 00000038
button/lid LID 00000080 00000039

I believe this means that acpid detected the LID being closed 9 times. I think your problem is not related with the software, I thinks it's hardware or BIOS, as the same event keep triggering over and over....

Offline

#3 2008-03-18 17:37:46

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

Re: <solved> [acpid] too much events are triggered when screen is closed

Hi nDray,

I guess so too, but i have this problem only under archlinux. I have tested this acpi event under an ubuntu live system, and there the event is triggered correctly just 2 times, one for closing and one for opening again.

The strange and funny thing is that this event is not just triggered 9 times, it is triggered over a hundred times depeding on how long my screen is closed. (see the log files).

I'm trying to patch a DSDT file for my notebook right now, i hope that this will solve the problem.

If not, could it be a missconfigured acpid?

Christoph

EDIT:

I have patched my DSDT file, but how can i load it / include it?

Last edited by chris89 (2008-03-18 19:02:04)

Offline

#4 2008-03-18 20:01:47

zyghom
Member
From: Poland/currently Africa
Registered: 2006-05-11
Posts: 432
Website

Re: <solved> [acpid] too much events are triggered when screen is closed

chris89 wrote:

I have patched my DSDT file, but how can i load it / include it?

http://forums.gentoo.org/viewtopic.php?t=122145


Zygfryd Homonto

Offline

#5 2008-03-18 21:34:32

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

Re: <solved> [acpid] too much events are triggered when screen is closed

Ok, made a new initrd with dsdt hook .. but nothing changed... still 100 events are triggered T_T

Could this problem be caused by the kernel 2.6.24? Because with a kubuntu live cd (7.10 - 2.6.22) there are just 3 events triggered when i close the screen.

So far i updated my BIOS, patched the DSDT but not even a litte change.

Christoph

Offline

#6 2008-03-18 21:39:35

nDray
Member
From: Portugal
Registered: 2007-01-21
Posts: 143
Website

Re: <solved> [acpid] too much events are triggered when screen is closed

Offline

#7 2008-03-18 22:36:30

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

Re: <solved> [acpid] too much events are triggered when screen is closed

Thanks, I will look through this article. But I think I know what the problem causes... The defined events in /etc/acpi/events and the action-scripts in /etc/acpi/actions

There are five files in /etc/acpi/events:
- anything (from the acpid package)
- 4x lm_* (from the laptop-mode-tools package)

I moved the "anything" file from event to my home dir, restarted acpid .. again, hundred events...
Now only files with the prefix "lm_" are in events, so I moved them to my home dir and the "anything" file back to events, restarted acpid .. only three triggered events....

The event files with the prefix "lm_" are files from the laptop-mode-tools package ... so the problem must be in the event files / event scripts of the laptop-mode-tools .. there must be some kind of reaction/feedback (sorry, i don't know the english word xD) with the event-scripts of laptop-mode-tools

I'm not sure which script causes this problem, but it must be one of those 4 lm_ scripts..
So, should I report this bug to the laptop-mode-tools or ..?

EDIT:
Ok, this is caused by the lm_lid event .. so it's the script for this event:
There is only one command

/usr/sbin/laptop_mode auto

So this command must trigger one more LID event.

Last edited by chris89 (2008-03-18 23:04:41)

Offline

#8 2008-03-22 15:57:04

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

Re: <solved> [acpid] too much events are triggered when screen is closed

OK, will mark this thread as solved. Thanks for your help.

Offline

Board footer

Powered by FluxBB