File laptop-mode-1.53-fix-pm-utils-sleep-script.diff of Package laptop-mode-tools
Index: b/etc/pm/sleep.d/01laptop-mode
================================================================================
--- laptop-mode-tools_1.53/usr/lib/pm-utils/sleep.d/01laptop-mode
+++ laptop-mode-tools_1.53/usr/lib/pm-utils/sleep.d/01laptop-mode
@@ -13,7 +13,8 @@
# Make laptop mode tools forcibly re-apply the hardware settings
# that laptop mode tools applies.
if [ -e /usr/sbin/laptop_mode ] ; then
- /usr/sbin/laptop_mode auto force
+ # the "cat" is because laptop_mode seems to truncate the output file :(
+ /usr/sbin/laptop_mode auto force | cat
fi
;;
*) exit $NA