Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into debian-test
* master: Revert "Add support for NAND (SSD / Flash) device" Release lock descriptors in start-stop-programs module Update manpage about AC97 annoying click sound Add manpage for setting DISABLE_BATTERY_ALARM_CHECK Add option to disable alarm level check Re-order the check because HAL is deprecated Better check for SSD device Add support for NAND (SSD / Flash) device Check for external helper application's presence. And if not available, handle it. add $LIB_D so it can give the possibility to install udev/system files in different location Added PCIe ASPM module. Added PCIe ASPM module. Do not ship the board-specific/ folder in default installs
- Loading branch information
Showing
13 changed files
with
171 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# Configuration file for Laptop Mode Tools module pcie-aspm | ||
# | ||
# For more information, consult the laptop-mode.conf(8) manual page. | ||
# | ||
|
||
############################################################################### | ||
# PCIe Activate State Power Management enable/disable switch | ||
# -------------------------------------------------------------------------- | ||
# | ||
# If you enable this setting, laptop mode tools will automatically configure | ||
# PCIe ASPM to save power while running on battery mode. | ||
# | ||
# This laptop mode module may require that the following kernel option is | ||
# enabled: | ||
# | ||
# pcie_aspm=force | ||
# | ||
############################################################################### | ||
|
||
# Enable debug mode for this module | ||
# Set to 1 if you want to debug this module | ||
DEBUG=0 | ||
|
||
# Control PCIe ASPM tunables? | ||
# Set to 0 to disable | ||
CONTROL_PCIE_ASPM="auto" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
ACTION=="change", SUBSYSTEM=="power_supply", RUN+="/lib/udev/lmt-udev auto" | ||
ACTION=="add|remove", SUBSYSTEM=="machinecheck", RUN+="/lib/udev/lmt-udev auto" | ||
ACTION=="add", SUBSYSTEM=="usb", RUN+="/lib/udev/lmt-udev force modules=usb-autosuspend devices=%k" | ||
ACTION=="change", SUBSYSTEM=="power_supply", RUN+="@LIB_D@/udev/lmt-udev auto" | ||
ACTION=="add|remove", SUBSYSTEM=="machinecheck", RUN+="@LIB_D@/udev/lmt-udev auto" | ||
ACTION=="add", SUBSYSTEM=="usb", RUN+="@LIB_D@/udev/lmt-udev force modules=usb-autosuspend devices=%k" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#! /bin/sh | ||
# | ||
# Laptop mode tools module: PCIe Active State Power Management | ||
# | ||
|
||
if [ x$CONTROL_PCIE_ASPM = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_PCIE_ASPM = xauto ]; then | ||
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 | ||
if [ $? -eq 0 ]; then | ||
log "VERBOSE" "PCIe ASPM set to 'default'" | ||
else | ||
log "VERBOSE" "PCIe ASPM tweaking is prohibited by the kernel" | ||
fi | ||
else | ||
log "VERBOSE" "PCIe ASPM is not available" | ||
fi | ||
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 | ||
if [ $? -eq 0 ]; then | ||
log "VERBOSE" "PCIe ASPM set to 'powersave'" | ||
else | ||
log "VERBOSE" "PCIe ASPM tweaking is prohibited by the kernel" | ||
fi | ||
else | ||
log "VERBOSE" "PCIe ASPM is not available" | ||
fi | ||
fi | ||
else | ||
log "VERBOSE" "PCIe ASPM power savings module is disabled" | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters