summarylogtreecommitdiffstats
path: root/tlp-arch.patch
diff options
context:
space:
mode:
authorMaxime Gauduin2015-06-08 11:11:32 +0200
committerMaxime Gauduin2015-06-08 11:11:32 +0200
commitf3415a82772e00f72be5d2de3e1c078333a9c922 (patch)
treea3e301430fb6c652e67962c76d49a62f2071c8b0 /tlp-arch.patch
downloadaur-f3415a82772e00f72be5d2de3e1c078333a9c922.tar.gz
Initial import
Diffstat (limited to 'tlp-arch.patch')
-rw-r--r--tlp-arch.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/tlp-arch.patch b/tlp-arch.patch
new file mode 100644
index 000000000000..fbf3c6b31a3d
--- /dev/null
+++ b/tlp-arch.patch
@@ -0,0 +1,41 @@
+diff -rupN tlp.orig/tlp.rules tlp/tlp.rules
+--- tlp.orig/tlp.rules 2015-01-10 02:43:33.341388989 +0100
++++ tlp/tlp.rules 2015-01-10 02:45:33.361390081 +0100
+@@ -4,7 +4,7 @@
+ # This software is licensed under the GPL v2 or later.
+
+ # handle change of power source ac/bat
+-ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", RUN+="/usr/sbin/tlp auto"
++ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", RUN+="/usr/bin/tlp auto"
+
+ # handle added usb devices (exclude subdevices via DRIVER=="USB")
+-ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", ENV{DEVTYPE}=="usb_device", RUN+="/lib/udev/tlp-usb-udev %p"
++ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", ENV{DEVTYPE}=="usb_device", RUN+="/usr/lib/udev/tlp-usb-udev %p"
+diff -rupN tlp.orig/tlp.service tlp/tlp.service
+--- tlp.orig/tlp.service 2015-01-10 02:43:33.341388989 +0100
++++ tlp/tlp.service 2015-01-10 02:43:48.678055785 +0100
+@@ -11,8 +11,8 @@ Before=shutdown.target
+ [Service]
+ Type=simple
+ RemainAfterExit=yes
+-ExecStart=/usr/sbin/tlp init start
+-ExecStop=/usr/sbin/tlp init stop
++ExecStart=/usr/bin/tlp init start
++ExecStop=/usr/bin/tlp init stop
+
+ [Install]
+ WantedBy=multi-user.target
+diff -rupN tlp.orig/tlp-sleep.service tlp/tlp-sleep.service
+--- tlp.orig/tlp-sleep.service 2015-01-10 02:43:33.341388989 +0100
++++ tlp/tlp-sleep.service 2015-01-10 02:43:48.678055785 +0100
+@@ -11,8 +11,8 @@ StopWhenUnneeded=yes
+ [Service]
+ Type=oneshot
+ RemainAfterExit=yes
+-ExecStart=/usr/sbin/tlp suspend
+-ExecStop=/usr/sbin/tlp resume
++ExecStart=/usr/bin/tlp suspend
++ExecStop=/usr/bin/tlp resume
+
+ [Install]
+ WantedBy=sleep.target