ココナッツバッテリーはMacbookバッテリーの設計容量をどのように決定しますか?


11

Macbookのバッテリーには3つの充電番号があります。

  1. 現在の料金
  2. 最大料金
  3. 設計能力

Macbookが接続されたままであっても、OS Xは(1)が(2)の95%である限り、充電を試みません。そのため、通知バーのパーセンテージはしばしば95%から100%になります。

これら2つの数値は、バッテリーの「設計容量」とは対照的です。 ココナッツバッテリーは、Macbookバッテリーの「設計容量」を報告する唯一のソフトウェアです。

この設計能力は、アップルの仕様、システム情報、またはeverymac.comには記載されていません。

ココナッツバッテリーはバッテリーの設計容量をどのように決定しますか?


iStat Menusは、バッテリーの設計容量も表示します
多分、2016年

6
そして、ここで私はココナッツバッテリーのようなものだと思ったレモン電池。残念です。
ワイルドカード

回答:


27

この情報は、他の多くのバッテリーやシステム情報とともにコマンドから見つけることができます

ioreg

このコマンドは、manページによれば、次のことを行います。

ioregは、I / O Kitレジストリを表示します。階層的な1レジストリ構造を逆ツリーとして示しています。

1:階層的[原文のまま]

クラス名(AppleSmartBatteryバッテリー用)によるフィルターを使用して、バッテリー関連の情報のみを取得します。

$ ioreg -brc AppleSmartBattery
-b    Show the object name in bold.
-r    Show subtrees rooted by objects that match the specified criteria.
       If none of -c, -k, or -n are supplied, -r has no effect.
-c    Show the object properties only if the object is an instance of, or
       derives from, the specified C++ class (e.g. IOService).

からman ioreg

このようなものを印刷します:

$ ioreg -brc AppleSmartBattery
+-o AppleSmartBattery  <class AppleSmartBattery, id 0x100000254, registered, ma$
{
  "ExternalConnected" = Yes
  "TimeRemaining" = 0
  "InstantTimeToEmpty" = 65535
  "ExternalChargeCapable" = Yes
  "FullPathUpdated" = 1464849055
  "CellVoltage" = (4298,4292,4299,0)
  "Voltage" = 12889
  "BatteryInvalidWakeSeconds" = 30
  "AdapterInfo" = 0
  "MaxCapacity" = 5524
  "PermanentFailureStatus" = 0
  "Manufacturer" = "SMP"
  "Location" = 0
  "CurrentCapacity" = 5524
  "LegacyBatteryInfo" = {"Amperage"=0,"Flags"=5,"Capacity"=5524,"Current"=5$
  "FirmwareSerialNumber" = 1
  "BatteryInstalled" = Yes
  "PackReserve" = 200
  "CycleCount" = 318
  "DesignCapacity" = 6330
  "OperationStatus" = 58371
  "ManufactureDate" = 17726
  "AvgTimeToFull" = 65535
  "BatterySerialNumber" = "D864403T3UVFVN7A6"
  "BootPathUpdated" = 1464353527
  "PostDischargeWaitSeconds" = 120
  "Temperature" = 3096
  "UserVisiblePathUpdated" = 1464849490
  "InstantAmperage" = 0
  "ManufacturerData" = <000000000702000a03890000034a34340330304103534449032$
  "MaxErr" = 1
  "FullyCharged" = Yes
  "DeviceName" = "bq20z451"
  "IOGeneralInterest" = "IOCommand is not serializable"
  "Amperage" = 0
  "IsCharging" = No
  "DesignCycleCount9C" = 1000
  "PostChargeWaitSeconds" = 120
  "AvgTimeToEmpty" = 65535
}

あなたが探している分野はDesignCapacityです。便宜上、フィルターで除外しますgrep(単位はミリアンペア時、またはmAh):

$ ioreg -brc AppleSmartBattery | grep DesignCapacity
      "DesignCapacity" = 6330

あなたのDesignCapacityフィールドが表示されない場合があり6330、その値として。2014年中頃に13インチのrMBPを使用していますが、バッテリーの定格が異なる別のシステムを使用している可能性があります。

バッテリー情報とは別にioreg、システムやその他の周辺機器の詳細を調べるために使用できます-コマンドラインのシステム情報ツールのようなものです。


このコマンドのコード実装を探している場合は、GithubBeltexのSystemKitを確認してください。これは私が知っている最もクールなSwiftライブラリの1つです。

免責事項:SystemKitまたはBeltexとは関係ありません。SystemKitの幸せなユーザーです。

弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.