2017年2月9日木曜日

ThinkPadのバッテリー管理

Linux on thinkpadにおけるバッテリー管理

tpacpi_bat:Ivy Bridege以降のThinkpad
tlp:それ以前のThinkpad

tp_smapi: tlpを動かすために必要。

acpi_call:比較的新しいThinkpadのバッテリー管理をするために必要

たとえば、tlpを使って75%になったら充電を開始し、85%になったら充電をやめる場合は下記のように書く。
sudo tlp setcharge 75 85 BAT0




【tlpのマニュアル】

TLP(8)                                                                  TLP(8)

NAME
       tlp - apply laptop power management settings

SYNOPSIS
       tlp command [param]

DESCRIPTION
       This command allows one to invoke TLP's functions manually and provides
       extended battery functions for ThinkPads.

COMMANDS
       start  Initialize tlp and apply settings according to the actual  power
              source.

       bat    Apply settings for battery power source.

       true   Same as bat (this command is called when power source changes to
              battery).

       ac     Apply settings for ac power source.

       false  Same as ac (this command is called when power source changes  to
              ac).

       usb    Enable autosuspend for all usb devices, except blacklisted ones.

       bayoff Turn  off  optical drive in UltraBay/MediaBay.  The drive may be
              re-enabled by pulling the eject lever or pushing the media eject
              button on newer models.

       setcharge [START_CHARGE STOP_CHARGE] [BAT0|BAT1] (ThinkPads only)
              Set  charge thresholds of main (BAT0) or Ultrabay (BAT1) battery
              temporarily. Values must be between 1 and 100, Stop > Start + 3.
              Configured  thresholds are restored upon next system start. When
              called without arguments, configured thresholds are set.

       fullcharge [BAT0|BAT1] (ThinkPads only)
              Set charge thresholds of main (BAT0) or Ultrabay (BAT1)  battery
              to  factory preset (96/100) temporarily (causing a full charge).
              Configured thresholds are restored upon next system start.

       chargeonce [BAT0|BAT1] (ThinkPads only)
              Charge main (BAT0) or Ultrabay (BAT1) battery  to  upper  charge
              threshold  once  (bypassing lower threshold). Configured thresh‐
              olds are restored upon next system start.

       discharge [BAT0|BAT1] (ThinkPads only)
              Force complete discharge of main (BAT0) or Ultrabay (BAT1)  bat‐
              tery.

       recalibrate [BAT0|BAT1] (ThinkPads only)
              Battery  recalibration:  completely  discharge  main  (BAT0)  or
              Ultrabay (BAT1) battery and recharge to 100%.

       stat   Same as tlp-stat.

       diskid Show disk ids for configuration.

FILES
       /etc/default/tlp
              System configuration file containing all power  management  set‐
              tings.

SEE ALSO
       tlp-stat(8), bluetooth(1), wifi(1), wwan(1).

       Project homepage: ⟨http://linrunner.de⟩

AUTHOR
       Thomas Koch <linrunner at gmx.net>

Power Management                  2015-01-03                            TLP(8)







0 件のコメント:

コメントを投稿