1 |
alonbl 13/03/29 07:59:39 |
2 |
|
3 |
Added: |
4 |
laptop-mode-tools-1.63-pcie-aspm-silencing-stderr.patch |
5 |
Log: |
6 |
Fix pcie-aspm issue, per bug#462900, thanks to Manuel Rüger |
7 |
|
8 |
(Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key BF20DC51) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.63-pcie-aspm-silencing-stderr.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.63-pcie-aspm-silencing-stderr.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.63-pcie-aspm-silencing-stderr.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: laptop-mode-tools-1.63-pcie-aspm-silencing-stderr.patch |
17 |
=================================================================== |
18 |
From f52e9afc8966d3804e6a432b0a98bfa2a758c416 Mon Sep 17 00:00:00 2001 |
19 |
From: =?UTF-8?q?Manuel=20R=C3=BCger?= <mrueg@××××.eu> |
20 |
Date: Thu, 28 Mar 2013 01:24:39 +0100 |
21 |
Subject: [PATCH] pcie-aspm: Silencing stderr. |
22 |
|
23 |
--- |
24 |
usr/share/laptop-mode-tools/modules/pcie-aspm | 4 ++-- |
25 |
1 file changed, 2 insertions(+), 2 deletions(-) |
26 |
|
27 |
diff --git a/usr/share/laptop-mode-tools/modules/pcie-aspm b/usr/share/laptop-mode-tools/modules/pcie-aspm |
28 |
index 1f6eec9..57fe31e 100755 |
29 |
--- a/usr/share/laptop-mode-tools/modules/pcie-aspm |
30 |
+++ b/usr/share/laptop-mode-tools/modules/pcie-aspm |
31 |
@@ -7,7 +7,7 @@ if [ x$CONTROL_PCIE_ASPM = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_PCI |
32 |
if [ $ON_AC -eq 1 ]; then |
33 |
log "VERBOSE" "On AC power: setting pcie_aspm to default" |
34 |
if [ -f /sys/module/pcie_aspm/parameters/policy ]; then |
35 |
- echo default > /sys/module/pcie_aspm/parameters/policy |
36 |
+ echo default > /sys/module/pcie_aspm/parameters/policy 2>/dev/null |
37 |
if [ $? -eq 0 ]; then |
38 |
log "VERBOSE" "PCIe ASPM set to 'default'" |
39 |
else |
40 |
@@ -19,7 +19,7 @@ if [ x$CONTROL_PCIE_ASPM = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_PCI |
41 |
else |
42 |
log "VERBOSE" "On battery: setting pcie_aspm to powersave" |
43 |
if [ -f /sys/module/pcie_aspm/parameters/policy ]; then |
44 |
- echo powersave > /sys/module/pcie_aspm/parameters/policy |
45 |
+ echo powersave > /sys/module/pcie_aspm/parameters/policy 2>/dev/null |
46 |
if [ $? -eq 0 ]; then |
47 |
log "VERBOSE" "PCIe ASPM set to 'powersave'" |
48 |
else |
49 |
-- |
50 |
1.8.1.5 |