summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2013-03-29 07:59:39 +0000
committerAlon Bar-Lev <alonbl@gentoo.org>2013-03-29 07:59:39 +0000
commitce61d8c1ba9bf088721df1f9d3679f5e34f66b07 (patch)
treec37df8cf277862d24d120c7e990706bb9e111838 /app-laptop/laptop-mode-tools/files
parentForce more recent sys-apps/hwids and sys-fs/udev-init-scripts. (diff)
downloadgentoo-2-ce61d8c1ba9bf088721df1f9d3679f5e34f66b07.tar.gz
gentoo-2-ce61d8c1ba9bf088721df1f9d3679f5e34f66b07.tar.bz2
gentoo-2-ce61d8c1ba9bf088721df1f9d3679f5e34f66b07.zip
Fix pcie-aspm issue, per bug#462900, thanks to Manuel Rüger
(Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
Diffstat (limited to 'app-laptop/laptop-mode-tools/files')
-rw-r--r--app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.63-pcie-aspm-silencing-stderr.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.63-pcie-aspm-silencing-stderr.patch b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.63-pcie-aspm-silencing-stderr.patch
new file mode 100644
index 000000000000..6d741738f1a1
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.63-pcie-aspm-silencing-stderr.patch
@@ -0,0 +1,34 @@
+From f52e9afc8966d3804e6a432b0a98bfa2a758c416 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Manuel=20R=C3=BCger?= <mrueg@rueg.eu>
+Date: Thu, 28 Mar 2013 01:24:39 +0100
+Subject: [PATCH] pcie-aspm: Silencing stderr.
+
+---
+ usr/share/laptop-mode-tools/modules/pcie-aspm | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/usr/share/laptop-mode-tools/modules/pcie-aspm b/usr/share/laptop-mode-tools/modules/pcie-aspm
+index 1f6eec9..57fe31e 100755
+--- a/usr/share/laptop-mode-tools/modules/pcie-aspm
++++ b/usr/share/laptop-mode-tools/modules/pcie-aspm
+@@ -7,7 +7,7 @@ if [ x$CONTROL_PCIE_ASPM = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_PCI
+ if [ $ON_AC -eq 1 ]; then
+ log "VERBOSE" "On AC power: setting pcie_aspm to default"
+ if [ -f /sys/module/pcie_aspm/parameters/policy ]; then
+- echo default > /sys/module/pcie_aspm/parameters/policy
++ echo default > /sys/module/pcie_aspm/parameters/policy 2>/dev/null
+ if [ $? -eq 0 ]; then
+ log "VERBOSE" "PCIe ASPM set to 'default'"
+ else
+@@ -19,7 +19,7 @@ if [ x$CONTROL_PCIE_ASPM = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_PCI
+ else
+ log "VERBOSE" "On battery: setting pcie_aspm to powersave"
+ if [ -f /sys/module/pcie_aspm/parameters/policy ]; then
+- echo powersave > /sys/module/pcie_aspm/parameters/policy
++ echo powersave > /sys/module/pcie_aspm/parameters/policy 2>/dev/null
+ if [ $? -eq 0 ]; then
+ log "VERBOSE" "PCIe ASPM set to 'powersave'"
+ else
+--
+1.8.1.5
+