Merge ~cyruslien/pc-enablement/+git/oem-fix-misc-cnl-tlp-estar-conf:master into ~oem-solutions-engineers/pc-enablement/+git/oem-fix-misc-cnl-tlp-estar-conf:master

Proposed by Cyrus Lien
Status: Merged
Approved by: Cyrus Lien
Approved revision: 90825613d12e151373873547955c7193676baa63
Merged at revision: 33500e3e374d6725c40ff5ba509f510cd700f57f
Proposed branch: ~cyruslien/pc-enablement/+git/oem-fix-misc-cnl-tlp-estar-conf:master
Merge into: ~oem-solutions-engineers/pc-enablement/+git/oem-fix-misc-cnl-tlp-estar-conf:master
Diff against target: 26 lines (+12/-0)
2 files modified
debian/changelog (+6/-0)
etc/tlp.d/70-hard-disk-spin-down.conf (+6/-0)
Reviewer Review Type Date Requested Status
Alex Tu (community) Needs Fixing
OEM Solutions Group: Engineers Pending
Review via email: mp+384960@code.launchpad.net

Commit message

Spin down hard disk: APM level=1, timeout=5s

To post a comment you must log in.
Revision history for this message
Alex Tu (alextu) wrote :

see comment inline:

from /etc/tlp.conf , it's only 2 parameters, why
# Disk advanced power management level: 1..254, 255 (max saving, min, off).
# Levels 1..127 may spin down the disk; 255 allowable on most drives.
# Separate values for multiple disks with spaces. Use the special value 'keep'
# to keep the hardware default for the particular disk.
# Default: 254 (AC), 128 (BAT)

#DISK_APM_LEVEL_ON_AC="254 254"
#DISK_APM_LEVEL_ON_BAT="128 128"

# Hard disk spin down timeout:
# 0: spin down disabled
# 1..240: timeouts from 5s to 20min (in units of 5s)
# 241..251: timeouts from 30min to 5.5 hours (in units of 30min)
# See 'man hdparm' for details.
# Separate values for multiple disks with spaces. Use the special value 'keep'
# to keep the hardware default for the particular disk.
# Default: <none>

#DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
#DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0"

review: Needs Fixing
Revision history for this message
Cyrus Lien (cyruslien) wrote :

> see comment inline:
>
> from /etc/tlp.conf , it's only 2 parameters, why

Because there are 5 disks defined in 50-estar-default.conf:
DISK_DEVICES="mmcblk0 nvme0n1 sda sdb sdc"

> # Disk advanced power management level: 1..254, 255 (max saving, min, off).
> # Levels 1..127 may spin down the disk; 255 allowable on most drives.
> # Separate values for multiple disks with spaces. Use the special value 'keep'
> # to keep the hardware default for the particular disk.
> # Default: 254 (AC), 128 (BAT)
>
> #DISK_APM_LEVEL_ON_AC="254 254"
> #DISK_APM_LEVEL_ON_BAT="128 128"
>
> # Hard disk spin down timeout:
> # 0: spin down disabled
> # 1..240: timeouts from 5s to 20min (in units of 5s)
> # 241..251: timeouts from 30min to 5.5 hours (in units of 30min)
> # See 'man hdparm' for details.
> # Separate values for multiple disks with spaces. Use the special value 'keep'
> # to keep the hardware default for the particular disk.
> # Default: <none>
>
> #DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
> #DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0"

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index debf25e..5ef9966 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,9 @@
6+oem-fix-misc-cnl-tlp-estar-conf (5.0.3.3) focal; urgency=medium
7+
8+ * Add 70-hard-disk-spin-down.conf for power saving.
9+
10+ -- Cyrus Lien <cyrus.lien@canonical.com> Tue, 02 Jun 2020 19:25:41 +0800
11+
12 oem-fix-misc-cnl-tlp-estar-conf (5.0.3.2) focal; urgency=medium
13
14 * rename 61-oem-usb-blacklist.conf to keep consistency.
15diff --git a/etc/tlp.d/70-hard-disk-spin-down.conf b/etc/tlp.d/70-hard-disk-spin-down.conf
16new file mode 100644
17index 0000000..b869cc0
18--- /dev/null
19+++ b/etc/tlp.d/70-hard-disk-spin-down.conf
20@@ -0,0 +1,6 @@
21+
22+DISK_APM_LEVEL_ON_AC="1 1 1 1 1"
23+DISK_APM_LEVEL_ON_BAT="1 1 1 1 1"
24+
25+DISK_SPINDOWN_TIMEOUT_ON_AC="1 1 1 1 1"
26+DISK_SPINDOWN_TIMEOUT_ON_BAT="1 1 1 1 1"

Subscribers

People subscribed via source and target branches