Please reply if this is still an issue on a supported release.

** Changed in: laptop-mode-tools
       Status: New => Invalid

** Changed in: pm-utils (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/459967

Title:
  scripts called on ac power or battery power fail (power.d)

Status in acpid:
  New
Status in Laptop Mode Tools:
  Invalid
Status in “pm-utils” package in Ubuntu:
  Invalid

Bug description:
  Binary package hint: pm-utils

  I want a script to be executed when my laptop is connected to AC and another 
one when it runs on battery.
  For the beginning it should just do

  On AC:
  echo max_performance | tee 
/sys/class/scsi_host/host0/link_power_management_policy

  On battery:
  echo min_power | tee /sys/class/scsi_host/host0/link_power_management_policy

  I decided to create two scripts in /etc/laptop-mode/batt-stop/ and 
/etc/laptop-mode/batt-start
  but they where sometimes executed and sometimes not. I thought this is 
strange, maybe laptop-mode-tools is buggy and I investigated an alternative 
approach.

  There are two files in /etc/acpi/events/ :
  ac and battery
  both call /etc/acpi/power.sh
  which in return calls pm-powersave

  man powersave tells me there are two directories
  /usr/lib/pm-utils/power.d/ and
  /etc/pm/power.d/

  the later has priority but was empty on my installation,
  so I went to /usr/lib/pm-utils/power.d/

  I created my own file here, called my-powersave

  /usr/lib/pm-utils/power.d/ lsl
  total 28K
  drwxr-xr-x 2 root root 4,0K 2009-10-24 20:34 .
  drwxr-xr-x 6 root root 4,0K 2009-10-21 05:34 ..
  -rwxr-xr-x 1 root root 1,4K 2009-10-06 23:41 95hdparm-apm
  -rwxr-xr-x 1 root root  646 2009-09-17 21:33 anacron
  -rwxr-xr-x 1 root root  293 2009-10-07 01:02 laptop-mode
  -rwxr-xr-x 1 root root  248 2009-10-24 20:36 my-powersave
  -rwxr-xr-x 1 root root  693 2009-10-06 23:41 sched-powersave

  This worked, BUT again the sata link sometimes stayed at max_performance in 
battery power.
  It worked most of the time if you have not done anything when removing the 
power and it hardly ever worked when you disconnect and reconnect in short 5 
second intervals.

  I think there is an underlying bug in pm-utils or acpi.
  I would happily provide needed logfiles or debug output if you tell me which.

To manage notifications about this bug go to:
https://bugs.launchpad.net/acpid/+bug/459967/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to