Hi,

I forgot to attach patch for solution 1 which is more appropriate for
Debian package activity.

Here we go.

Osamu
diff -Nru pm-utils-1.4.1.orig/debian/patches/30-laptop-mode-sysctl.patch pm-utils-1.4.1/debian/patches/30-laptop-mode-sysctl.patch
--- pm-utils-1.4.1.orig/debian/patches/30-laptop-mode-sysctl.patch	1970-01-01 09:00:00.000000000 +0900
+++ pm-utils-1.4.1/debian/patches/30-laptop-mode-sysctl.patch	2012-02-10 20:58:31.803360396 +0900
@@ -0,0 +1,17 @@
+Author: Osamu Aoki <[email protected]>
+Description: Respect sysctl.conf by laptop-mode
+ Since laptop-mode can be executed after or before sysctl.conf depending on 
+ the system on AC or Battery, it is not good idea to overwite /proc/sys/vm/* 
+ with the fixed default kernel values.
+
+--- a/pm/power.d/laptop-mode
++++ b/pm/power.d/laptop-mode
+@@ -65,8 +65,6 @@
+     # disable laptop mode, set vm parameters back to sane defaults
+     if state_exists laptop_mode_default; then
+ 	write_values $(restorestate laptop_mode_default)
+-    else
+-	write_values 0 10 5 500
+     fi	
+     echo "Laptop mode disabled."
+ }
diff -Nru pm-utils-1.4.1.orig/debian/patches/90-nm-proper-wakeup.patch pm-utils-1.4.1/debian/patches/90-nm-proper-wakeup.patch
--- pm-utils-1.4.1.orig/debian/patches/90-nm-proper-wakeup.patch	2012-01-16 23:56:00.000000000 +0900
+++ pm-utils-1.4.1/debian/patches/90-nm-proper-wakeup.patch	2012-02-10 20:56:31.306762884 +0900
@@ -2,10 +2,8 @@
  pm/sleep.d/55NetworkManager |    8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
 
-Index: pm-utils/pm/sleep.d/55NetworkManager
-===================================================================
---- pm-utils.orig/pm/sleep.d/55NetworkManager	2010-06-18 15:19:18.000000000 +0200
-+++ pm-utils/pm/sleep.d/55NetworkManager	2010-06-18 16:16:09.056074013 +0200
+--- a/pm/sleep.d/55NetworkManager
++++ b/pm/sleep.d/55NetworkManager
 @@ -12,7 +12,7 @@
  {
  	# Tell NetworkManager to shut down networking
diff -Nru pm-utils-1.4.1.orig/debian/patches/series pm-utils-1.4.1/debian/patches/series
--- pm-utils-1.4.1.orig/debian/patches/series	2012-01-16 23:56:00.000000000 +0900
+++ pm-utils-1.4.1/debian/patches/series	2012-02-10 20:51:40.429320437 +0900
@@ -9,5 +9,6 @@
 14-disable-sata-alpm.patch
 25-pmu.patch
 26-inhibit-on-right-status.patch
+30-laptop-mode-sysctl.patch
 80-service.patch
 90-nm-proper-wakeup.patch

Reply via email to