Configure SATA link power management with udev rule |
||
Issue descriptionThis setting is currently handled by laptop-mode-tools (LMT), which we intend to replace ( Issue 214886 ). The configuration is done through a single sysfs attribute (/sys/class/scsi_host/hostN/link_power_management_policy). On CrOS the value is always "min_power", regardless of whether running on battery or with line power.
,
Jul 14 2017
,
Feb 6 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform2/+/d8d2c00829f75f12422c920a617c76a9416ebcbc commit d8d2c00829f75f12422c920a617c76a9416ebcbc Author: Matthias Kaehlcke <mka@chromium.org> Date: Fri Jul 14 02:45:54 2017 power: Add udev rule to minimize link power for SATA drives This setting was previously handled by laptop-mode-tools (LMT). With LMT a static setting (min_power) is used, this can be replaced with a udev rule. BUG= chromium:690612 , chromium:214886 TEST=cros_workon-lumpy start power_manager # with CL:568591 emerge-lumpy laptop-mode-tools power_manager cros deploy ${DUT} power_manager laptop-mode-tools reboot ${DUT} cat /sys/class/scsi_host/host0/link_power_management_policy => min_power CQ-DEPEND=CL:568591 Change-Id: I4e26bd95a483718cad9da83a39d2a1b3fd54b574 Reviewed-on: https://chromium-review.googlesource.com/568592 Commit-Ready: Matthias Kaehlcke <mka@chromium.org> Tested-by: Matthias Kaehlcke <mka@chromium.org> Reviewed-by: Dan Erat <derat@chromium.org> [modify] https://crrev.com/d8d2c00829f75f12422c920a617c76a9416ebcbc/power_manager/udev/optional/99-powerknobs.rules |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Jul 14 2017