Bug#635219: acpid: excessive power script invocation
On Sat, Nov 26, 2011 at 06:26:23PM +0100, Samuel Thibault wrote: I think the script that gets called is /etc/acpi/power.sh from the acpi-support package. This script calls pm-powersave which might result in the action you see. It looks so. The big question then is, which program should notice that we are already in low power mode and should it do that. Indeed. After thinking about this some I believe pm-powersave should be the one. It's impossible for power.sh to know whether or not the user executed pm-powersave himself at some point, making the whole status keeping, if done in power.sh, mood. That's why I re-assigned the bug to pm-utils. Michael -- Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org Jabber: michael.meskes at googlemail dot com VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#635219: acpid: excessive power script invocation
Michael Meskes, le Thu 17 Nov 2011 12:10:28 +0100, a écrit : /var/log/pm-powersave.log that it starts anacron (as pasted below), and that's what triggers a write, at least, not only the anacron script itself. I think the script that gets called is /etc/acpi/power.sh from the acpi-support package. This script calls pm-powersave which might result in the action you see. It looks so. The big question then is, which program should notice that we are already in low power mode and should it do that. Indeed. Running hook /usr/lib/pm-utils/power.d/anacron false: /usr/lib/pm-utils/power.d/anacron false: success. Do you still see those messages? Yes. Samuel -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#635219: acpid: excessive power script invocation
On Tue, Jul 26, 2011 at 04:41:25PM +0200, Samuel Thibault wrote: Well, I'm not sure which script you are talking about. One thing is that one the scripts (acpid-provided I guess) does dump log into Acpid does not provide any script. /var/log/pm-powersave.log that it starts anacron (as pasted below), and that's what triggers a write, at least, not only the anacron script itself. I think the script that gets called is /etc/acpi/power.sh from the acpi-support package. This script calls pm-powersave which might result in the action you see. The big question then is, which program should notice that we are already in low power mode and should it do that. Running hook /usr/lib/pm-utils/power.d/anacron false: /usr/lib/pm-utils/power.d/anacron false: success. Do you still see those messages? Michael -- Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org Jabber: michael.meskes at googlemail dot com VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#635219: acpid: excessive power script invocation
On 7/23/2011 6:34 PM, Samuel Thibault wrote: Shouldn't acpid somehow avoid calling the same script for the same event over and over? acpid's only purpose is to call scripts in response to acpi events. It is up to the script to avoid doing unnecessary things that result in writing to the console. I think in this case, the script should detect that it is being called rapidly and decide what is best. E.g. if it hasn't been called in the last 5 seconds, perhaps try what it needs to do again. Or something similar. Ted. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#635219: acpid: excessive power script invocation
Ted Felix, le Tue 26 Jul 2011 10:24:30 -0400, a écrit : On 7/23/2011 6:34 PM, Samuel Thibault wrote: Shouldn't acpid somehow avoid calling the same script for the same event over and over? acpid's only purpose is to call scripts in response to acpi events. It is up to the script to avoid doing unnecessary things that result in writing to the console. Well, I'm not sure which script you are talking about. One thing is that one the scripts (acpid-provided I guess) does dump log into /var/log/pm-powersave.log that it starts anacron (as pasted below), and that's what triggers a write, at least, not only the anacron script itself. Running hook /usr/lib/pm-utils/power.d/anacron false: /usr/lib/pm-utils/power.d/anacron false: success. Samuel -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#635219: acpid: excessive power script invocation
Package: acpid Version: 1:2.0.10-1 Severity: normal Hello, When the battery of my laptop is almost empty, acpi_event keeps showing battery PNP0C0A:00 0080 0001 (about twice per second). The issue is that the power script gets invoked each time, resulting to a message on the console about stopping anacron (twice per second, thusly), and a write to /var/log/pm-powersave.log, thus on the disk, which does not help saving battery :) Shouldn't acpid somehow avoid calling the same script for the same event over and over? Samuel -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages acpid depends on: ii libc6 2.13-7 Embedded GNU C Library: Shared lib ii lsb-base 3.2-27 Linux Standard Base 3.2 init scrip ii module-init-tools 3.16-1 tools for managing Linux kernel mo Versions of packages acpid recommends: ii acpi-support-base 0.138-9scripts for handling base ACPI eve acpid suggests no packages. -- debconf information: * acpid/noacpi: * acpid/modules: ac processor battery button fan thermal -- Samuel Thibault samuel.thiba...@fnac.net --- christ gives channel operator status to Dieu -+- #ens-mim and hell -+- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org