Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

pcie-aspm: Silencing stderr. #10

Merged
merged 1 commit into from

3 participants

@mrueg

See #9

@rickysarraf
Owner

Thanks for the patch.

@rickysarraf
Owner

Oops!! "Close and Comment" does not merge. :-)

@rickysarraf rickysarraf reopened this
@rickysarraf rickysarraf merged commit 0697bb1 into rickysarraf:master
@mauriciopasquier

I was getting this error during boot. This patch suggest that is not critical... should I worry about it?

/usr/share/laptop-mode-tools/modules/pcie-aspm: line 10: write error: Operation not permitted

I'm on 3.10.10-1-ARCH #1 SMP PREEMPT Fri Aug 30 11:30:06 CEST 2013 x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 28, 2013
  1. @mrueg

    pcie-aspm: Silencing stderr.

    mrueg authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 usr/share/laptop-mode-tools/modules/pcie-aspm
View
4 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
Something went wrong with that request. Please try again.