Skip to content

Commit

Permalink
update the function key of powertop chusiang#28
Browse files Browse the repository at this point in the history
Thanks for theJian feedback.
  • Loading branch information
chusiang committed Nov 15, 2016
1 parent 469e205 commit 9b6c110
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions 08.power-management-with-powertop.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
[PowerTOP](https://01.org/powertop/) 是個分析、監控電力消秏的節能工具程式,它是由 Intel 於 2007 年以 [GPLv2](http:https://www.gnu.org/licenses/gpl-2.0.html) 授權釋出的開放原始碼專案。我們可以使用它找出 GNU/Linux 上秏電的套件,並透過停用不必要的功能以達到省電的效果,是筆記型電腦 (Laptop) 必裝的實用工具。

![2013-09-25-powertop-01.png](imgs/2013-09-25-powertop-01.png "2013-09-25-powertop-01.png")

▲ PowerTOP 的起始畫面。

開始前請先安裝 powertop。
Expand All @@ -19,13 +18,12 @@
# Arch Linux
$ sudo pacman -S powertop

請使用方向鍵 **← → ** 切換至 **Tunables** 分頁,並使用 **↑ ↓** 上下移動,於欲調校的項目按下 **Enter** 進行調校,當所有狀態顯示為 Good 後即可按下 **q** 離開。
![2013-09-25-powertop-02.png](imgs/2013-09-25-powertop-02.png "2013-09-25-powertop-02.png")
請使用 **Tab**, **Shift + Tab****方向鍵 ←, →** 切換至 **Tunables** 分頁 [^1],並使用 **↑, ↓** 上下移動,於欲調校的項目按下 **Enter** 進行調校,當所有狀態顯示為 Good 後即可按下 **q** 離開。

![2013-09-25-powertop-02.png](imgs/2013-09-25-powertop-02.png "2013-09-25-powertop-02.png")
▲ 調校前的 **Tunables**

![2013-09-25-powertop-03.png](imgs/2013-09-25-powertop-03.png "2013-09-25-powertop-03.png")

▲ 調校後的 **Tunables**

PowerTOP 本身並無儲存功能,但我們可以藉由 ``powertop '--html'`` 產生的報告來調校系統,甚至於開機時載入這些設定。
Expand All @@ -38,8 +36,7 @@ PowerTOP 本身並無儲存功能,但我們可以藉由 ``powertop '--html'``
PowerTOP outputing using base filename powertop-20130915-231821.html

![2013-09-25-powertop-04.png](imgs/2013-09-25-powertop-04.png "2013-09-25-powertop-04.png")

▲ 此報告將依個人環境而有所不同,其各項目的詳細說明可參考 [Power saving - ArchWiki](https://wiki.archlinux.org/index.php/Power_saving) 一文。
▲ 此報告將依個人環境而有所不同,其各項目的詳細說明可參考 [Power saving - ArchWiki](https://wiki.archlinux.org/index.php/Power_saving) 一文。

接著將調校的指令貼到一個 shell script 打包起來。

Expand Down Expand Up @@ -142,3 +139,4 @@ PowerTOP 本身並無儲存功能,但我們可以藉由 ``powertop '--html'``
- [2.2. PowerTOP - Red Hat Customer Portal](https://access.redhat.com/site/documentation/zh-TW/Red_Hat_Enterprise_Linux/6/html/Power_Management_Guide/PowerTOP.html)
- [冷靜: Powertop](http:https://bluequiet.blogspot.tw/2010/01/blog-post.html)

[^1]: 感謝 [theJian](https://github.com/theJian) 回報,powertop v2.5 之後切換 Tunables 分頁的功能鍵已從**方向鍵 ←, →** 改為 **Tab****Shift + Tab**

0 comments on commit 9b6c110

Please sign in to comment.