Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcie-aspm: Silencing stderr. #10

Merged
merged 1 commit into from Mar 28, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions usr/share/laptop-mode-tools/modules/pcie-aspm
Expand Up @@ -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 if [ $ON_AC -eq 1 ]; then
log "VERBOSE" "On AC power: setting pcie_aspm to default" log "VERBOSE" "On AC power: setting pcie_aspm to default"
if [ -f /sys/module/pcie_aspm/parameters/policy ]; then 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 if [ $? -eq 0 ]; then
log "VERBOSE" "PCIe ASPM set to 'default'" log "VERBOSE" "PCIe ASPM set to 'default'"
else else
Expand All @@ -19,7 +19,7 @@ if [ x$CONTROL_PCIE_ASPM = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_PCI
else else
log "VERBOSE" "On battery: setting pcie_aspm to powersave" log "VERBOSE" "On battery: setting pcie_aspm to powersave"
if [ -f /sys/module/pcie_aspm/parameters/policy ]; then 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 if [ $? -eq 0 ]; then
log "VERBOSE" "PCIe ASPM set to 'powersave'" log "VERBOSE" "PCIe ASPM set to 'powersave'"
else else
Expand Down