Thank's fo your script Valentin, it works for me, but only after a modification of power.sh :
Actually, the power.sh script is buggy : the script doesn't really call laptop-mode (/usr/sbin/laptop_mode) but it calls internal functions defined at the beginning of the script...and thus laptop-mode.conf are not applied...
I posted a solution (modified power.sh), which solve the same problem (laptop-mode not really enabled) after switching AC/battery power supply
Thank's fo your script Valentin, it works for me, but only after a modification of power.sh :
Actually, the power.sh script is buggy : the script doesn't really call laptop-mode (/usr/sbin/ laptop_ mode) but it calls internal functions defined at the beginning of the script...and thus laptop-mode.conf are not applied...
I posted a solution (modified power.sh), which solve the same problem (laptop-mode not really enabled) after switching AC/battery power supply
https:/ /bugs.launchpad .net/ubuntu/ +source/ acpi-support/ +bug/74394/ comments/ 8
I also recall valentin's solution for the suspend/resume on the same bug.
https:/ /bugs.launchpad .net/ubuntu/ +source/ acpi-support/ +bug/74394/ comments/ 9