Hello, When the battery of my laptop is almost empty, acpi_event keeps showing battery PNP0C0A:00 00000080 00000001 (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
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.
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.
Ted Felix, le Tue 26 Jul 2011 10:24:30 -0400, a écrit : 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
Acpid does not provide any script. 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. Do you still see those messages? Michael
Michael Meskes, le Thu 17 Nov 2011 12:10:28 +0100, a écrit : It looks so. Indeed. Yes. Samuel
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
Dear submitter, as the package pm-utils has just been removed from the Debian archive unstable we hereby close the associated bug reports. We are sorry that we couldn't deal with your issue properly. For details on the removal, please see https://bugs.debian.org/1058701 The version of this package that was in Debian prior to this removal can still be found using https://snapshot.debian.org/. Please note that the changes have been done on the master archive and will not propagate to any mirrors until the next dinstall run at the earliest. This message was generated automatically; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org. Debian distribution maintenance software pp. Thorsten Alteholz (the ftpmaster behind the curtain)