1 |
ssuominen 14/06/04 20:46:47 |
2 |
|
3 |
Modified: 1.4.1-disable-sata-alpm.patch |
4 |
1.4.1-logging-append.patch |
5 |
Added: 1.4.1-uswsusp-hibernate-mode.patch |
6 |
1.4.1-suspend-hybrid.patch |
7 |
1.4.1-xfs_buffer_arguments.patch |
8 |
1.4.1-fix-alpm-typo.patch |
9 |
1.4.1-ignore-led-failure.patch |
10 |
1.4.1-run-hook-logging.patch |
11 |
Log: |
12 |
Selectively synchronize only bug fixes with Debian patchset version 1.4.1-14. |
13 |
|
14 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D) |
15 |
|
16 |
Revision Changes Path |
17 |
1.2 sys-power/pm-utils/files/1.4.1-disable-sata-alpm.patch |
18 |
|
19 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-disable-sata-alpm.patch?rev=1.2&view=markup |
20 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-disable-sata-alpm.patch?rev=1.2&content-type=text/plain |
21 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-disable-sata-alpm.patch?r1=1.1&r2=1.2 |
22 |
|
23 |
Index: 1.4.1-disable-sata-alpm.patch |
24 |
=================================================================== |
25 |
RCS file: /var/cvsroot/gentoo-x86/sys-power/pm-utils/files/1.4.1-disable-sata-alpm.patch,v |
26 |
retrieving revision 1.1 |
27 |
retrieving revision 1.2 |
28 |
diff -u -r1.1 -r1.2 |
29 |
--- 1.4.1-disable-sata-alpm.patch 21 Apr 2011 15:03:19 -0000 1.1 |
30 |
+++ 1.4.1-disable-sata-alpm.patch 4 Jun 2014 20:46:46 -0000 1.2 |
31 |
@@ -2,10 +2,8 @@ |
32 |
Author: Martin Pitt <martin.pitt@××××××.com> |
33 |
Bug-Ubuntu: https://launchpad.net/bugs/539467 |
34 |
|
35 |
-Index: pm-utils/pm/power.d/sata_alpm |
36 |
-=================================================================== |
37 |
---- pm-utils.orig/pm/power.d/sata_alpm 2011-02-01 15:53:09.164867778 +0100 |
38 |
-+++ pm-utils/pm/power.d/sata_alpm 2011-02-01 15:53:28.954867786 +0100 |
39 |
+--- pm/power.d/sata_alpm |
40 |
++++ pm/power.d/sata_alpm |
41 |
@@ -2,7 +2,7 @@ |
42 |
|
43 |
. "${PM_FUNCTIONS}" |
44 |
|
45 |
|
46 |
|
47 |
1.2 sys-power/pm-utils/files/1.4.1-logging-append.patch |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-logging-append.patch?rev=1.2&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-logging-append.patch?rev=1.2&content-type=text/plain |
51 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-logging-append.patch?r1=1.1&r2=1.2 |
52 |
|
53 |
Index: 1.4.1-logging-append.patch |
54 |
=================================================================== |
55 |
RCS file: /var/cvsroot/gentoo-x86/sys-power/pm-utils/files/1.4.1-logging-append.patch,v |
56 |
retrieving revision 1.1 |
57 |
retrieving revision 1.2 |
58 |
diff -u -r1.1 -r1.2 |
59 |
--- 1.4.1-logging-append.patch 21 Apr 2011 15:03:19 -0000 1.1 |
60 |
+++ 1.4.1-logging-append.patch 4 Jun 2014 20:46:46 -0000 1.2 |
61 |
@@ -4,10 +4,8 @@ |
62 |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=25255 |
63 |
Bug-Ubuntu: https://launchpad.net/bugs/410352 |
64 |
|
65 |
-Index: pm-utils/pm/pm-functions.in |
66 |
-=================================================================== |
67 |
---- pm-utils.orig/pm/pm-functions.in 2010-07-05 18:41:21.118322244 +0200 |
68 |
-+++ pm-utils/pm/pm-functions.in 2010-07-05 18:41:24.126325221 +0200 |
69 |
+--- pm/pm-functions.in |
70 |
++++ pm/pm-functions.in |
71 |
@@ -271,7 +271,7 @@ |
72 |
return 1 |
73 |
fi |
74 |
|
75 |
|
76 |
|
77 |
1.1 sys-power/pm-utils/files/1.4.1-uswsusp-hibernate-mode.patch |
78 |
|
79 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-uswsusp-hibernate-mode.patch?rev=1.1&view=markup |
80 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-uswsusp-hibernate-mode.patch?rev=1.1&content-type=text/plain |
81 |
|
82 |
Index: 1.4.1-uswsusp-hibernate-mode.patch |
83 |
=================================================================== |
84 |
Description: Check HIBERNATE_MODE in uswsusp module |
85 |
Author: Vadim Solomin <vadic052@×××××.com> |
86 |
Bug-Debian: http://bugs.debian.org/589553 |
87 |
|
88 |
--- pm/module.d/uswsusp |
89 |
+++ pm/module.d/uswsusp |
90 |
@@ -87,7 +87,11 @@ |
91 |
HIBERNATE_MODULE="uswsusp" |
92 |
do_hibernate() |
93 |
{ |
94 |
- s2disk |
95 |
+ if [ -n "$HIBERNATE_MODE" ]; then |
96 |
+ s2disk -P "shutdown method=$HIBERNATE_MODE" |
97 |
+ else |
98 |
+ s2disk |
99 |
+ fi |
100 |
} |
101 |
fi |
102 |
|
103 |
|
104 |
|
105 |
|
106 |
1.1 sys-power/pm-utils/files/1.4.1-suspend-hybrid.patch |
107 |
|
108 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-suspend-hybrid.patch?rev=1.1&view=markup |
109 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-suspend-hybrid.patch?rev=1.1&content-type=text/plain |
110 |
|
111 |
Index: 1.4.1-suspend-hybrid.patch |
112 |
=================================================================== |
113 |
Description: Add support for in-kernel suspend to both |
114 |
Author: Bojan Smojver <bojan@×××××××××.com> |
115 |
Author: Jaroslav Škarvada <jskarvad@××××××.com> |
116 |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=52572 |
117 |
Bug-Ubuntu: https://launchpad.net/bugs/1172692 |
118 |
|
119 |
--- pm/pm-functions.in |
120 |
+++ pm/pm-functions.in |
121 |
@@ -336,8 +336,28 @@ |
122 |
{ |
123 |
[ -n "${HIBERNATE_MODE}" ] && \ |
124 |
grep -qw "${HIBERNATE_MODE}" /sys/power/disk && \ |
125 |
+ HIBERNATE_MODE_SAVE=$(cat /sys/power/disk) && \ |
126 |
+ HIBERNATE_MODE_SAVE="${HIBERNATE_MODE_SAVE##*[}" && \ |
127 |
+ HIBERNATE_MODE_SAVE="${HIBERNATE_MODE_SAVE%%]*}" && \ |
128 |
echo -n "${HIBERNATE_MODE}" > /sys/power/disk |
129 |
echo -n "disk" > /sys/power/state |
130 |
+ RET=$? |
131 |
+ echo -n "$HIBERNATE_MODE_SAVE" > /sys/power/disk |
132 |
+ return "$RET" |
133 |
+ } |
134 |
+fi |
135 |
+ |
136 |
+# for kernels that support suspend to both (i.e. hybrid suspend) |
137 |
+# since kernel 3.6 |
138 |
+if [ -z "$SUSPEND_HYBRID_MODULE" ] && \ |
139 |
+ [ -f /sys/power/disk ] && \ |
140 |
+ grep -q disk /sys/power/state && \ |
141 |
+ grep -q suspend /sys/power/disk; then |
142 |
+ SUSPEND_HYBRID_MODULE="kernel" |
143 |
+ do_suspend_hybrid() |
144 |
+ { |
145 |
+ HIBERNATE_MODE="suspend" |
146 |
+ do_hibernate |
147 |
} |
148 |
fi |
149 |
|
150 |
|
151 |
|
152 |
1.1 sys-power/pm-utils/files/1.4.1-xfs_buffer_arguments.patch |
153 |
|
154 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-xfs_buffer_arguments.patch?rev=1.1&view=markup |
155 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-xfs_buffer_arguments.patch?rev=1.1&content-type=text/plain |
156 |
|
157 |
Index: 1.4.1-xfs_buffer_arguments.patch |
158 |
=================================================================== |
159 |
From fdc626dadfd985e823f4e828f2a542c945aea219 Mon Sep 17 00:00:00 2001 |
160 |
From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@××.com> |
161 |
Date: Tue, 10 Jan 2012 11:21:02 +0100 |
162 |
Subject: [PATCH 2/2] pm/power.d/xfs_buffer: Fix wrong argument ordering |
163 |
|
164 |
Write the values in the correct order. |
165 |
|
166 |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=44620 |
167 |
Bug-Ubuntu: https://launchpad.net/bugs/645974 |
168 |
|
169 |
Signed-off-by: Martin Pitt <martin.pitt@××××××.com> |
170 |
--- |
171 |
pm/power.d/xfs_buffer | 2 +- |
172 |
1 files changed, 1 insertions(+), 1 deletions(-) |
173 |
|
174 |
diff --git a/pm/power.d/xfs_buffer b/pm/power.d/xfs_buffer |
175 |
index d21e845..9f06f6e 100644 |
176 |
--- a/pm/power.d/xfs_buffer |
177 |
+++ b/pm/power.d/xfs_buffer |
178 |
@@ -59,7 +59,7 @@ xfs_ac() { |
179 |
xfs_battery() { |
180 |
state_exists xfs_buffer_default || \ |
181 |
read_values |savestate xfs_buffer_default |
182 |
- write_values "$XFS_AGE_BUFFER" "$XFS_BUFD" "$XFS_SYNCD" |
183 |
+ write_values "$XFS_AGE_BUFFER" "$XFS_SYNCD" "$XFS_BUFD" |
184 |
} |
185 |
|
186 |
case $1 in |
187 |
-- |
188 |
1.7.7.3 |
189 |
|
190 |
|
191 |
|
192 |
|
193 |
1.1 sys-power/pm-utils/files/1.4.1-fix-alpm-typo.patch |
194 |
|
195 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-fix-alpm-typo.patch?rev=1.1&view=markup |
196 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-fix-alpm-typo.patch?rev=1.1&content-type=text/plain |
197 |
|
198 |
Index: 1.4.1-fix-alpm-typo.patch |
199 |
=================================================================== |
200 |
From 93d46b88f415c1931b017856e3162c192bfba07c Mon Sep 17 00:00:00 2001 |
201 |
From: Martin Pitt <martin.pitt@××××××.com> |
202 |
Date: Wed, 11 Jan 2012 15:39:53 +0100 |
203 |
Subject: [PATCH 3/3] Fix typo in sata_alpm |
204 |
MIME-Version: 1.0 |
205 |
Content-Type: text/plain; charset=UTF-8 |
206 |
Content-Transfer-Encoding: 8bit |
207 |
|
208 |
ALPM → APLM |
209 |
|
210 |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=44676 |
211 |
Bug-Ubuntu: https://launchpad.net/bugs/900930 |
212 |
--- |
213 |
pm/power.d/sata_alpm | 4 ++-- |
214 |
1 files changed, 2 insertions(+), 2 deletions(-) |
215 |
|
216 |
diff --git a/pm/power.d/sata_alpm b/pm/power.d/sata_alpm |
217 |
index 5ede307..400e1e7 100644 |
218 |
--- a/pm/power.d/sata_alpm |
219 |
+++ b/pm/power.d/sata_alpm |
220 |
@@ -28,7 +28,7 @@ set_sata_alpm() { |
221 |
[ "${kv%-*}" \< "2.6.33" ] && exit $NA # avoid fs corruption |
222 |
for f in /sys/class/scsi_host/host*; do |
223 |
[ -w "$f/link_power_management_policy" ] || continue |
224 |
- printf "Setting SATA APLM on %s to %s..." "${f##*/}" "$1" |
225 |
+ printf "Setting SATA ALPM on %s to %s..." "${f##*/}" "$1" |
226 |
echo "$1" > "$f/link_power_management_policy" && echo Done. || \ |
227 |
echo Failed. |
228 |
done |
229 |
|
230 |
|
231 |
|
232 |
1.1 sys-power/pm-utils/files/1.4.1-ignore-led-failure.patch |
233 |
|
234 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-ignore-led-failure.patch?rev=1.1&view=markup |
235 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-ignore-led-failure.patch?rev=1.1&content-type=text/plain |
236 |
|
237 |
Index: 1.4.1-ignore-led-failure.patch |
238 |
=================================================================== |
239 |
Description: LED operation should not block S3/S4 |
240 |
Author: Adam Lee <adam8157@×××××.com> |
241 |
|
242 |
Some Lenovo Thinkpad models don't have a suspend LED, this should not |
243 |
block S3/S4. |
244 |
|
245 |
--- pm/sleep.d/95led |
246 |
+++ pm/sleep.d/95led |
247 |
@@ -14,3 +14,5 @@ |
248 |
*) exit $NA |
249 |
;; |
250 |
esac |
251 |
+ |
252 |
+exit 0 |
253 |
|
254 |
|
255 |
|
256 |
1.1 sys-power/pm-utils/files/1.4.1-run-hook-logging.patch |
257 |
|
258 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-run-hook-logging.patch?rev=1.1&view=markup |
259 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-run-hook-logging.patch?rev=1.1&content-type=text/plain |
260 |
|
261 |
Index: 1.4.1-run-hook-logging.patch |
262 |
=================================================================== |
263 |
Description: In suspend log, put empty line after running the hook, not in between. |
264 |
Author: Dominique Brazziel <dbrazziel@××××.net> |
265 |
Bug-Debian: http://bugs.debian.org/661168 |
266 |
|
267 |
--- pm/pm-functions.in |
268 |
+++ pm/pm-functions.in |
269 |
@@ -199,9 +199,9 @@ |
270 |
hook_ok "$1" && "$@" |
271 |
# log() changes the return value, so save it for later |
272 |
local status=$? |
273 |
- log "" |
274 |
log -n "$*: " |
275 |
hook_exit_status $status && LAST_HOOK="${1##*/}" || inhibit |
276 |
+ log "" |
277 |
} |
278 |
|
279 |
if profiling; then |