PDA

View Full Version : [ubuntu] scripts in power.d not executing


felixnine
August 28th, 2009, 08:23 PM
running 9.04 on a panp. it seems that my custom power event scripts (ac power) are not executing when i plug and unplug my laptop. i've put them in both


/etc/pm/power.d
/usr/lib/pm-utils/power.d


but nothing happens. i know nothing happens because i have them echo something to a file when they are exeuted.

also of note, the command on_ac_power always returns 255, which means "power state could not be determined." related?

(i know it's working somehow; my display dims when i unplug it)

thomasaaron
August 31st, 2009, 10:47 AM
There is a bug in power management for the Pangolin. Suspend/Hibernate should still work fine. The fix is actually available, but it requires compiling the kernel with certain options.

This should be fixed in Karmic.

felixnine
August 31st, 2009, 10:56 AM
neat. suspend and hibernate do work fine. what do i need to do to compile into the kernel?

also: the sleep.d scripts are working, i believe, but the power.d scripts are not.

thomasaaron
August 31st, 2009, 12:47 PM
I'm not really that familiar with compiling kernels. However, there are already some threads dealing with this issue.

http://ubuntuforums.org/showthread.php?t=1213976&highlight=pangolin+power+management\