<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pine64.org/index.php?action=history&amp;feed=atom&amp;title=Pinebook_Pro_power_and_charging</id>
	<title>Pinebook Pro power and charging - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pine64.org/index.php?action=history&amp;feed=atom&amp;title=Pinebook_Pro_power_and_charging"/>
	<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;action=history"/>
	<updated>2026-05-11T10:45:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=21117&amp;oldid=prev</id>
		<title>Dsimic: /* Charging indicator LED */ Expanded a bit</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=21117&amp;oldid=prev"/>
		<updated>2023-11-08T22:28:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Charging indicator LED: &lt;/span&gt; Expanded a bit&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:28, 8 November 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# LED ''blinking with 0.5&amp;amp;nbsp;Hz frequency'' signals some hardware error: typically [[#Battery temperature fix|battery over-temperature protection]] or input under-voltage (from a [[:File:Pbp_charger_top.jpg|failed charger]]); in this case the charger is also off, and the system is powered from the battery all the time.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# LED ''blinking with 0.5&amp;amp;nbsp;Hz frequency'' signals some hardware error: typically [[#Battery temperature fix|battery over-temperature protection]] or input under-voltage (from a [[:File:Pbp_charger_top.jpg|failed charger]]); in this case the charger is also off, and the system is powered from the battery all the time.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;All other kinds of blinking really indicate the charger getting turned on and off, this happens when BQ24171 detects ''battery full'' condition, disables the charger, the system starts drawing current from the battery, the voltage quickly drops, and the charger is enabled again to compensate for the discharge. The blinking frequency would depend on the current system load, battery temperature, and the backlight level (as the backlight power source adds up to ~70&amp;amp;nbsp;mV ripple to the voltage monitoring net). This &amp;quot;trickle-charging&amp;quot; is harmful for &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Li-based &lt;/del&gt;batteries, but no workaround is possible other than fully disconnecting the external power source, and it's not clear whether that would do more good than harm.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;All other kinds of blinking really indicate the charger getting turned on and off, this happens when BQ24171 detects ''battery full'' condition, disables the charger, the system starts drawing current from the battery, the voltage quickly drops, and the charger is enabled again to compensate for the discharge. The blinking frequency would depend on the current system load, battery temperature, and the backlight level (as the backlight power source adds up to ~70&amp;amp;nbsp;mV ripple to the voltage monitoring net). This &amp;quot;trickle-charging&amp;quot; is harmful for &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;lithium &lt;/ins&gt;batteries, but no workaround is possible other than fully disconnecting the external power source, and it's not clear whether that would do more good than harm&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Another observed behavior is that the status LED blinks randomly, from time to time and unrelated to the system load, especially when the screen brightness is cranked to the maximum, and the battery isn't fully charged.  This has been attributed to some strange feedback that the BQ24171 receives and becomes confused, but further analysis is required&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Monitoring currents ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Monitoring currents ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-21116:rev-21117 --&gt;
&lt;/table&gt;</summary>
		<author><name>Dsimic</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=21116&amp;oldid=prev</id>
		<title>Dsimic: /* Type-C current limit */ Clarified a bit</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=21116&amp;oldid=prev"/>
		<updated>2023-11-08T14:50:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Type-C current limit: &lt;/span&gt; Clarified a bit&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:50, 8 November 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l63&quot;&gt;Line 63:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 63:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Hardware modifications ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Hardware modifications ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Type-C current limit ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Type-C current limit ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Warning|The 0.5&amp;amp;nbsp;A difference is there to carve out some power for a USB-C dock connected to the Pinebook Pro's USB-C port.  &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;It &lt;/del&gt;is against the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PD &lt;/del&gt;specification, but it leaves some power to the USB-C dock, which it requires to power any devices connected to it.  Thus, the procedure described in this section will most probably make using USB-C docks unreliable or even impossible.}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Warning|The 0.5&amp;amp;nbsp;A difference &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;described in this section &lt;/ins&gt;is there to carve out some power for a USB-C dock connected to the Pinebook Pro's USB-C port.  &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;This &lt;/ins&gt;is &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;actually &lt;/ins&gt;against the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;USB Power Delivery &lt;/ins&gt;specification, but it leaves some power to the USB-C dock, which it requires to power &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;itself and &lt;/ins&gt;any devices connected to it.  Thus, the procedure described in this section will most probably make using USB-C docks unreliable or even impossible&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, leaving the USB-C port usable for connecting only USB-C chargers or bus-powered USB-C devices&lt;/ins&gt;.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since there's no software control over the input current limit unmodified PBP always tries to draw up to 2.5&amp;amp;nbsp;A from a Type-C charger.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since there's no software control over the input current limit unmodified PBP always tries to draw up to 2.5&amp;amp;nbsp;A from a Type-C charger.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-21115:rev-21116 --&gt;
&lt;/table&gt;</summary>
		<author><name>Dsimic</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=21115&amp;oldid=prev</id>
		<title>Dsimic: /* Battery temperature fix */ Added a warning</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=21115&amp;oldid=prev"/>
		<updated>2023-11-08T14:43:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Battery temperature fix: &lt;/span&gt; Added a warning&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:43, 8 November 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l74&quot;&gt;Line 74:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 74:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Battery temperature fix ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Battery temperature fix ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Warning|The procedure described in this section alters the operating parameters of the lithium battery built into the Pinebokk Pro, which may be unsafe, and in extreme conditions may even introduce a fire hazard.  Use the described procedure at your own risk.  Additional verfication of the described procedure is currently pending.}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To ensure safe operation the charger IC is constantly monitoring the battery temperature with the sensor integrated inside the pack. The thermistor used is a 103AT NTC but the corresponding circuity on PBP mainboard was calculated for some other type. This results in the charger IC detecting 45&amp;amp;nbsp;°C when the battery is in fact at just 35&amp;amp;nbsp;°C, and 60&amp;amp;nbsp;°C when the battery is at 46&amp;amp;nbsp;°C. It's easy to hit this threshold with heavy CPU or GPU loads as the metal back cover heats up from the SoC and slightly warms up the battery. Under these conditions the charging is suspended (with charging LED signalling a hardware issue), and the intensive tasks are continued on battery power alone, heating it up even more.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To ensure safe operation the charger IC is constantly monitoring the battery temperature with the sensor integrated inside the pack. The thermistor used is a 103AT NTC but the corresponding circuity on PBP mainboard was calculated for some other type. This results in the charger IC detecting 45&amp;amp;nbsp;°C when the battery is in fact at just 35&amp;amp;nbsp;°C, and 60&amp;amp;nbsp;°C when the battery is at 46&amp;amp;nbsp;°C. It's easy to hit this threshold with heavy CPU or GPU loads as the metal back cover heats up from the SoC and slightly warms up the battery. Under these conditions the charging is suspended (with charging LED signalling a hardware issue), and the intensive tasks are continued on battery power alone, heating it up even more.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-21114:rev-21115 --&gt;
&lt;/table&gt;</summary>
		<author><name>Dsimic</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=21114&amp;oldid=prev</id>
		<title>Dsimic: /* Type-C current limit */ Added a warning</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=21114&amp;oldid=prev"/>
		<updated>2023-11-08T14:38:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Type-C current limit: &lt;/span&gt; Added a warning&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:38, 8 November 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l63&quot;&gt;Line 63:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 63:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Hardware modifications ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Hardware modifications ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Type-C current limit ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Type-C current limit ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Warning|The 0.5&amp;amp;nbsp;A difference is there to carve out some power for a USB-C dock connected to the Pinebook Pro's USB-C port.  It is against the PD specification, but it leaves some power to the USB-C dock, which it requires to power any devices connected to it.  Thus, the procedure described in this section will most probably make using USB-C docks unreliable or even impossible.}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since there's no software control over the input current limit unmodified PBP always tries to draw up to 2.5&amp;amp;nbsp;A from a Type-C charger.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since there's no software control over the input current limit unmodified PBP always tries to draw up to 2.5&amp;amp;nbsp;A from a Type-C charger.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-20930:rev-21114 --&gt;
&lt;/table&gt;</summary>
		<author><name>Dsimic</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=20930&amp;oldid=prev</id>
		<title>Dsimic: /* Overview */ Fits better</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=20930&amp;oldid=prev"/>
		<updated>2023-10-15T14:46:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Overview: &lt;/span&gt; Fits better&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:46, 15 October 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Overview ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Overview ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;No control of charging is possible other than by physically plugging and unplugging &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the chargers&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;No control of charging is possible other than by physically plugging and unplugging &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a charger&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Software monitoring is also quite limited, one can check whether a charger is connected (in &amp;lt;code&amp;gt;/sys/class/power_supply/dc-charger/online&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/sys/class/power_supply/tcpm-source-psy-4-0022/online&amp;lt;/code&amp;gt;) and see the current battery voltage (in &amp;lt;code&amp;gt;/sys/class/power_supply/cw2015-battery/voltage_now&amp;lt;/code&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Software monitoring is also quite limited, one can check whether a charger is connected (in &amp;lt;code&amp;gt;/sys/class/power_supply/dc-charger/online&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/sys/class/power_supply/tcpm-source-psy-4-0022/online&amp;lt;/code&amp;gt;) and see the current battery voltage (in &amp;lt;code&amp;gt;/sys/class/power_supply/cw2015-battery/voltage_now&amp;lt;/code&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-20147:rev-20930 --&gt;
&lt;/table&gt;</summary>
		<author><name>Dsimic</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=20147&amp;oldid=prev</id>
		<title>Fxc: Wiki style</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=20147&amp;oldid=prev"/>
		<updated>2023-07-28T08:10:25Z</updated>

		<summary type="html">&lt;p&gt;Wiki style&lt;/p&gt;
&lt;a href=&quot;https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;amp;diff=20147&amp;amp;oldid=20146&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Fxc</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=20146&amp;oldid=prev</id>
		<title>Paulfertser: /* Charging indicator LED */ add a link to a failed PBP charger photo</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=20146&amp;oldid=prev"/>
		<updated>2023-07-27T22:10:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Charging indicator LED: &lt;/span&gt; add a link to a failed PBP charger photo&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:10, 27 July 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot;&gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# LED ''on'' means the charger is supplying current to the battery and the system;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# LED ''on'' means the charger is supplying current to the battery and the system;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# LED ''off'' means the charger is turned off, and the whole system is powered from the battery;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# LED ''off'' means the charger is turned off, and the whole system is powered from the battery;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# LED ''blinking with 0.5&amp;amp;nbsp;Hz frequency'' signals some hardware error: typically [[#Battery temperature fix|battery over-temperature protection]] or input under-voltage; in this case the charger is also off, and the system is powered from the battery all the time.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# LED ''blinking with 0.5&amp;amp;nbsp;Hz frequency'' signals some hardware error: typically [[#Battery temperature fix|battery over-temperature protection]] or input under-voltage &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(from a [[:File:Pbp_charger_top.jpg|failed charger]])&lt;/ins&gt;; in this case the charger is also off, and the system is powered from the battery all the time.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;All other kinds of blinking really indicate the charger getting turned&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;All other kinds of blinking really indicate the charger getting turned&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-20010:rev-20146 --&gt;
&lt;/table&gt;</summary>
		<author><name>Paulfertser</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=20010&amp;oldid=prev</id>
		<title>Paulfertser: /* Type-C current limit */ mention that current higher than 2.5 A won't be reported in sysfs but still can be used</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=20010&amp;oldid=prev"/>
		<updated>2023-07-03T08:23:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Type-C current limit: &lt;/span&gt; mention that current higher than 2.5 A won&amp;#039;t be reported in sysfs but still can be used&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:23, 3 July 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l138&quot;&gt;Line 138:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 138:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;overloaded, running out of specs.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;overloaded, running out of specs.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If all of the chargers you want to use can supply 3&amp;amp;nbsp;A or more ''at 5&amp;amp;nbsp;V'' consider lifting the limit to make it even with the&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If all of the chargers you want to use can supply 3&amp;amp;nbsp;A or more ''at 5&amp;amp;nbsp;V'' &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(the sysfs file will still report 2.5&amp;amp;nbsp;A so check the official charger specs and/or label) &lt;/ins&gt;consider lifting the limit to make it even with the&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;barrel plug charger. For that remove the ''R148'' resistor on the&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;barrel plug charger. For that remove the ''R148'' resistor on the&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://wiki.pine64.org/images/b/b7/Pinebookpro-v2.1-bottom-ref.pdf bottom layer] of the mainboard.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://wiki.pine64.org/images/b/b7/Pinebookpro-v2.1-bottom-ref.pdf bottom layer] of the mainboard.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-20004:rev-20010 --&gt;
&lt;/table&gt;</summary>
		<author><name>Paulfertser</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=20004&amp;oldid=prev</id>
		<title>Paulfertser: Initial version</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Pinebook_Pro_power_and_charging&amp;diff=20004&amp;oldid=prev"/>
		<updated>2023-07-02T18:07:11Z</updated>

		<summary type="html">&lt;p&gt;Initial version&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Pinebook Pro external power and charging circuity is quite&lt;br /&gt;
rudimentary, and hence quirky. This article aims to explain all the&lt;br /&gt;
fine points so that the behaviour could be understood and dealt with.&lt;br /&gt;
&lt;br /&gt;
== Monitoring and control ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
No control of charging is possible other than by physically plugging&lt;br /&gt;
and unplugging the chargers.&lt;br /&gt;
&lt;br /&gt;
Software monitoring is also quite limited, one can check whether a&lt;br /&gt;
charger is connected (in&lt;br /&gt;
&amp;lt;code&amp;gt;/sys/class/power_supply/dc-charger/online&amp;lt;/code&amp;gt; and&lt;br /&gt;
&amp;lt;code&amp;gt;/sys/class/power_supply/tcpm-source-psy-4-0022/online&amp;lt;/code&amp;gt;)&lt;br /&gt;
and see the current battery voltage (in&lt;br /&gt;
&amp;lt;code&amp;gt;/sys/class/power_supply/cw2015-battery/voltage_now&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
The [https://cdn.datasheetspdf.com/pdf-down/C/W/2/CW2015-Cellwise.pdf CW2015] battery monitoring IC only measures the voltage and tries to&lt;br /&gt;
guessimate the State Of Charge and Remaining Run Time. The last value&lt;br /&gt;
(along with the ''nominal'' battery capacity) is also used by the&lt;br /&gt;
kernel driver to ''compute'' the current. The estimations might be&lt;br /&gt;
relatively accurate under certain conditions but you can not really&lt;br /&gt;
know if they're met with your laptop load at any given moment, so the&lt;br /&gt;
only value provided that can be trusted is the voltage.&lt;br /&gt;
&lt;br /&gt;
=== Charging indicator LED ===&lt;br /&gt;
There is a red LED near the barrel socket that's connected&lt;br /&gt;
directly to the&lt;br /&gt;
[https://www.ti.com/lit/ds/symlink/bq24171.pdf?ts=1607068456825&amp;amp;ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FBQ24171 BQ24171] battery charging IC.&lt;br /&gt;
&lt;br /&gt;
It can indicate one of the three states:&lt;br /&gt;
&lt;br /&gt;
# LED ''on'' means the charger is supplying current to the battery and the system;&lt;br /&gt;
# LED ''off'' means the charger is turned off, and the whole system is powered from the battery;&lt;br /&gt;
# LED ''blinking with 0.5&amp;amp;nbsp;Hz frequency'' signals some hardware error: typically [[#Battery temperature fix|battery over-temperature protection]] or input under-voltage; in this case the charger is also off, and the system is powered from the battery all the time.&lt;br /&gt;
&lt;br /&gt;
All other kinds of blinking really indicate the charger getting turned&lt;br /&gt;
on and off, this happens when BQ24171 detects ''battery full''&lt;br /&gt;
condition, disables the charger, the system starts drawing current&lt;br /&gt;
from the battery, the voltage quickly drops, and the charger is&lt;br /&gt;
enabled again to compensate for the discharge. The blinking frequency&lt;br /&gt;
would depend on the current system load, battery temperature, and the&lt;br /&gt;
backlight level (as the backlight power source adds up to ~70&amp;amp;nbsp;mV&lt;br /&gt;
ripple to the voltage monitoring net). This &amp;quot;trickle-charging&amp;quot; is&lt;br /&gt;
harmful for Li-based batteries, but no workaround is possible other&lt;br /&gt;
than fully disconnecting the external power source, and it's not clear&lt;br /&gt;
whether that would do more good than harm.&lt;br /&gt;
&lt;br /&gt;
=== Monitoring currents ===&lt;br /&gt;
The charging IC uses two measurement shunt resistors: ''R37'' for&lt;br /&gt;
input current, and ''R43'' for battery current, both&lt;br /&gt;
0.010&amp;amp;nbsp;Ohm. They're easily accessible for external equipment after&lt;br /&gt;
removing the RF shield on the mainboard, and one can use a&lt;br /&gt;
battery-powered voltmeter or a differential probe to properly measure&lt;br /&gt;
the real current at any given moment. Do ''not'' connect non-isolated&lt;br /&gt;
oscilloscope ground clip to them, that might damage the&lt;br /&gt;
equipment.&lt;br /&gt;
&lt;br /&gt;
With the external chargers disconnected the system is powered by the&lt;br /&gt;
battery, so measuring voltage on ''R43'' (along with the battery&lt;br /&gt;
voltage at about the same moment) can be used to learn the system&lt;br /&gt;
power consumption under different software loads.&lt;br /&gt;
&lt;br /&gt;
== Charging ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
[[File:pbp-charging-simplified.png|thumb|Pinebook Pro simplified charging schematics]]&lt;br /&gt;
When an external charger is connected, the battery charging process is&lt;br /&gt;
automatically activated, it doesn't depend on any software&lt;br /&gt;
interactions and works all the same even with the main SoC powered&lt;br /&gt;
down. The system automatically chooses between the barrel socket&lt;br /&gt;
(limiting current draw to 3&amp;amp;nbsp;A) and Type-C source (limited to&lt;br /&gt;
2.5&amp;amp;nbsp;A), with the former preferred when both are connected at the&lt;br /&gt;
same time (but the current limit is enforced as if Type-C was used).&lt;br /&gt;
&lt;br /&gt;
The maximum charging current under normal conditions is limited to&lt;br /&gt;
2.75&amp;amp;nbsp;A and the voltage to 4.35&amp;amp;nbsp;V. Battery temperature&lt;br /&gt;
affects these values, and if the measuring is [[#Battery temperature fix|done properly]] the charge is fully suspended under 0&amp;amp;nbsp;°C or above&lt;br /&gt;
60&amp;amp;nbsp;°C, maximum current halved below 10&amp;amp;nbsp;°C, maximum voltage&lt;br /&gt;
reduced to 4.24&amp;amp;nbsp;V above 45&amp;amp;nbsp;°C and to 4.19&amp;amp;nbsp;V above 50&amp;amp;nbsp;°C.&lt;br /&gt;
&lt;br /&gt;
The charging process automatically terminates when the voltage reaches&lt;br /&gt;
the recharge threshold (upper limit - 0.1&amp;amp;nbsp;V) ''and'' the current&lt;br /&gt;
falls below 275&amp;amp;nbsp;mA. However, this also stops supplying external&lt;br /&gt;
power to the system, so if it's running the battery voltage almost&lt;br /&gt;
immediately drops below the recharge threshold, and the charging is&lt;br /&gt;
turned on again.&lt;br /&gt;
&lt;br /&gt;
=== Example run and charge time calculations ===&lt;br /&gt;
&amp;lt;!-- 19:25 &amp;lt; PaulFertser&amp;gt; So my first quick measurements on the shunt:&lt;br /&gt;
with display off and system idle: 1.7 A @3.78V = 6.46 W; with display&lt;br /&gt;
on backlight at 0: 7.03 W; with backlight at 4095: 10.51 W; with&lt;br /&gt;
backlight at 3700: 9.64 W. with performance CPU governor. --&amp;gt;&lt;br /&gt;
Assuming a fully charged 9600&amp;amp;nbsp;mAh battery and an idle system&lt;br /&gt;
using ''performance'' cpufreq governor with backlight at 3700/4095 &lt;br /&gt;
consuming 9.6&amp;amp;nbsp;W we can expect&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;9.6 Ah * 3.8 V / 9.6 W = 3.8 h&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so that gives 3.8 hours of run time.&lt;br /&gt;
&lt;br /&gt;
If the same battery is empty and a barrel plug charger is&lt;br /&gt;
connected while system has the same load it will need&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;9.6 Ah * 3.8 V / ((3 A * 5 V * 0.9 - 9.6 W) * 0.95) = 9.85 h&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
that is 9.85 hours of charging from zero to full, assuming 0.9 DC-DC&lt;br /&gt;
conversion efficacy and 0.95 charging efficacy.&lt;br /&gt;
&lt;br /&gt;
Removing the system load reduces the time to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;9.6 Ah * 3.8 V / (2.75 A * 3.8 V * 0.95) = 3.67 h&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so if you need to fully charge the battery, e.g. before a trip, the&lt;br /&gt;
fastest and most reliable way is to power down (not suspend) the system, leave the device with the charger connected&lt;br /&gt;
for a few hours, upside down for better cooling, and wait for the red&lt;br /&gt;
LED on the side to turn off.&lt;br /&gt;
&lt;br /&gt;
=== Working without battery ===&lt;br /&gt;
With the battery disconnected the charger isn't going to turn on, and&lt;br /&gt;
the system won't be getting any power from the external source. That's&lt;br /&gt;
why PBP has additional bypass cable that allows connecting external&lt;br /&gt;
power directly to the system power bus. Of course it should be kept&lt;br /&gt;
disconnected when the battery is present to avoid excess voltage&lt;br /&gt;
overcharging and destroying the battery. It's also recommended to add&lt;br /&gt;
additional insulation to the cable connectors, as they expose battery&lt;br /&gt;
and charger positive terminals on bare metal, and should never be&lt;br /&gt;
accidentally connected to ground. &lt;br /&gt;
&lt;br /&gt;
== Hardware modifications ==&lt;br /&gt;
=== Type-C current limit ===&lt;br /&gt;
Since there's no software control over the input current limit&lt;br /&gt;
unmodified PBP always tries to draw up to 2.5&amp;amp;nbsp;A from a Type-C&lt;br /&gt;
charger.&lt;br /&gt;
&lt;br /&gt;
It's recommended to manually check&lt;br /&gt;
&amp;lt;code&amp;gt;/sys/class/power_supply/tcpm-source-psy-4-0022/current_max&amp;lt;/code&amp;gt;&lt;br /&gt;
for all the chargers you're using. When the value is lower than&lt;br /&gt;
2.5&amp;amp;nbsp;A you shouldn't use that charger with PBP as it would get&lt;br /&gt;
overloaded, running out of specs.&lt;br /&gt;
&lt;br /&gt;
If all of the chargers you want to use can supply 3&amp;amp;nbsp;A or more ''at 5&amp;amp;nbsp;V'' consider lifting the limit to make it even with the&lt;br /&gt;
barrel plug charger. For that remove the ''R148'' resistor on the&lt;br /&gt;
[https://wiki.pine64.org/images/b/b7/Pinebookpro-v2.1-bottom-ref.pdf bottom layer] of the mainboard.&lt;br /&gt;
&lt;br /&gt;
The easiest way is to use a soldering iron tip big enough to hold a&lt;br /&gt;
1&amp;amp;nbsp;mm drop of an SnPb solder (it mixes with Pb-free nicely and&lt;br /&gt;
lowers the melting point) to heat both sides of the resistor at once&lt;br /&gt;
and lift it off.&lt;br /&gt;
&lt;br /&gt;
=== Battery temperature fix ===&lt;br /&gt;
To ensure safe operation the charger IC is constantly monitoring the&lt;br /&gt;
battery temperature with the sensor integrated inside the pack. The&lt;br /&gt;
thermistor used is a 103AT NTC but the corresponding circuity on PBP&lt;br /&gt;
mainboard was calculated for some other type. This results in the&lt;br /&gt;
charger IC detecting 45&amp;amp;nbsp;°C when the battery is in&lt;br /&gt;
fact at just 35&amp;amp;nbsp;°C, and 60&amp;amp;nbsp;°C when the battery is at 46&amp;amp;nbsp;°C. It's&lt;br /&gt;
easy to hit this threshold with heavy CPU or GPU loads as the metal&lt;br /&gt;
back cover heats up from the SoC and slightly warms up the battery. Under these conditions the charging is suspended (with charging&lt;br /&gt;
LED signalling a hardware issue), and the intensive tasks are&lt;br /&gt;
continued on battery power alone, heating it up even more.&lt;br /&gt;
&lt;br /&gt;
To fix this issue the resistor divider needs to be replaced to match&lt;br /&gt;
the datasheet recommended values. For that one needs to change two&lt;br /&gt;
0402 resistors on the bottom side of the mainboard: use 2.2&amp;amp;nbsp;kOhm&lt;br /&gt;
1&amp;amp;nbsp;% for ''R52'' (instead of 4.4&amp;amp;nbsp;kOhm installed by the factory),&lt;br /&gt;
note it's the one closer to the board edge; and 6.8&amp;amp;nbsp;kOhm 1&amp;amp;nbsp;% for ''R54''&lt;br /&gt;
(30&amp;amp;nbsp;kOhm from the factory).&lt;br /&gt;
&lt;br /&gt;
If your local hackspace doesn't have suitable resistors consider&lt;br /&gt;
getting a sample book from e.g. Aliexpress, it should cost less than&lt;br /&gt;
15&amp;amp;nbsp;USD including shipping.&lt;/div&gt;</summary>
		<author><name>Paulfertser</name></author>
	</entry>
</feed>