<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://bugs.maemo.com/skins/common/feed.css?207"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://bugs.maemo.com/index.php?action=history&amp;feed=atom&amp;title=User%3AKerio%2Fcalibratebq27200</id>
		<title>User:Kerio/calibratebq27200 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://bugs.maemo.com/index.php?action=history&amp;feed=atom&amp;title=User%3AKerio%2Fcalibratebq27200"/>
		<link rel="alternate" type="text/html" href="http://bugs.maemo.com/index.php?title=User:Kerio/calibratebq27200&amp;action=history"/>
		<updated>2026-04-22T00:45:35Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.15.5-7</generator>

	<entry>
		<id>http://bugs.maemo.com/index.php?title=User:Kerio/calibratebq27200&amp;diff=51384&amp;oldid=prev</id>
		<title>kerio at 19:16, 22 April 2013</title>
		<link rel="alternate" type="text/html" href="http://bugs.maemo.com/index.php?title=User:Kerio/calibratebq27200&amp;diff=51384&amp;oldid=prev"/>
				<updated>2013-04-22T19:16:21Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:16, 22 April 2013&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This script is supposed to be run overnight; lock the screen brightness at maximum, and disable screen blanking, then run the script, connect the wallcharger and wait. Discharging with the screen at maximum brightness takes about 5 hours, with the standard BL-5J.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This script is supposed to be run overnight; lock the screen brightness at maximum, and disable screen blanking, then run the script, connect the wallcharger and wait. Discharging with the screen at maximum brightness takes about 5 hours, with the standard BL-5J.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; 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;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;THIS SCRIPT NEEDS THE BME REPLACEMENT!&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-04-22 00:45:36 --&gt;
&lt;/table&gt;</summary>
		<author><name>kerio</name></author>	</entry>

	<entry>
		<id>http://bugs.maemo.com/index.php?title=User:Kerio/calibratebq27200&amp;diff=51383&amp;oldid=prev</id>
		<title>kerio at 19:16, 22 April 2013</title>
		<link rel="alternate" type="text/html" href="http://bugs.maemo.com/index.php?title=User:Kerio/calibratebq27200&amp;diff=51383&amp;oldid=prev"/>
				<updated>2013-04-22T19:16:09Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:16, 22 April 2013&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;This script is supposed to be run overnight; lock the screen brightness at maximum, and disable screen blanking, then run the script, connect the wallcharger and wait. Discharging with the screen at maximum brightness takes about 5 hours, with the standard BL-5J.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; 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='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-04-22 00:45:36 --&gt;
&lt;/table&gt;</summary>
		<author><name>kerio</name></author>	</entry>

	<entry>
		<id>http://bugs.maemo.com/index.php?title=User:Kerio/calibratebq27200&amp;diff=51382&amp;oldid=prev</id>
		<title>kerio at 19:14, 22 April 2013</title>
		<link rel="alternate" type="text/html" href="http://bugs.maemo.com/index.php?title=User:Kerio/calibratebq27200&amp;diff=51382&amp;oldid=prev"/>
				<updated>2013-04-22T19:14:36Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:14, 22 April 2013&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nowiki&lt;/del&gt;&amp;gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pre&lt;/ins&gt;&amp;gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;CHARGER_MODE=&amp;quot;/sys/class/power_supply/bq24150a-0/mode&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;CHARGER_MODE=&amp;quot;/sys/class/power_supply/bq24150a-0/mode&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 50:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 50:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;echo auto &amp;gt; ${CHARGER_MODE}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;echo auto &amp;gt; ${CHARGER_MODE}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;lock_screen&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;lock_screen&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pre&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-04-22 00:45:36 --&gt;
&lt;/table&gt;</summary>
		<author><name>kerio</name></author>	</entry>

	<entry>
		<id>http://bugs.maemo.com/index.php?title=User:Kerio/calibratebq27200&amp;diff=51381&amp;oldid=prev</id>
		<title>kerio:&amp;#32;Created page with &quot;&lt;nowiki&gt;#!/bin/sh  CHARGER_MODE=&quot;/sys/class/power_supply/bq24150a-0/mode&quot;  if ! test -w ${CHARGER_MODE} || ! cd /sys/class/power_supply/bq27200-0 ; then     echo &quot;NOPE.jpg&quot; &gt;&amp;2  …&quot;</title>
		<link rel="alternate" type="text/html" href="http://bugs.maemo.com/index.php?title=User:Kerio/calibratebq27200&amp;diff=51381&amp;oldid=prev"/>
				<updated>2013-04-22T19:14:25Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;nowiki&amp;gt;#!/bin/sh  CHARGER_MODE=&amp;quot;/sys/class/power_supply/bq24150a-0/mode&amp;quot;  if ! test -w ${CHARGER_MODE} || ! cd /sys/class/power_supply/bq27200-0 ; then     echo &amp;quot;NOPE.jpg&amp;quot; &amp;gt;&amp;amp;2  …&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;nowiki&amp;gt;#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
CHARGER_MODE=&amp;quot;/sys/class/power_supply/bq24150a-0/mode&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if ! test -w ${CHARGER_MODE} || ! cd /sys/class/power_supply/bq27200-0 ; then&lt;br /&gt;
    echo &amp;quot;NOPE.jpg&amp;quot; &amp;gt;&amp;amp;2&lt;br /&gt;
    exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# returns success if VDQ is set, otherwise returns fail&lt;br /&gt;
vdq () {&lt;br /&gt;
    return $(( 1 - ( ( $( grep 0x0a= registers | cut -d= -f2 ) &amp;amp; 4 ) / 4 ) ))&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# returns success if EDV1 is set, otherwise returns fail&lt;br /&gt;
edv1 () {&lt;br /&gt;
    return $(( 1 - ( ( $( grep 0x0a= registers | cut -d= -f2 ) &amp;amp; 2 ) / 2 ) ))&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# lock the screen, as if the user pushed the lock slider&lt;br /&gt;
# taken from Phone_control&lt;br /&gt;
lock_screen () {&lt;br /&gt;
    /usr/bin/dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:&amp;quot;locked&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
print_info () {&lt;br /&gt;
    echo -n &amp;quot;$(( $( cat capacity ) ))%   &amp;quot;&lt;br /&gt;
    echo -n &amp;quot;VOLT: $(( $( cat voltage_now ) / 1000 )) mV   &amp;quot;&lt;br /&gt;
    echo &amp;quot;CUR: $(( $( cat current_now ) / 1000 )) mA&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
if ! vdq ; then&lt;br /&gt;
    echo &amp;quot;Waiting for VDQ, connect the charger.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    while ! vdq ; do&lt;br /&gt;
        print_info&lt;br /&gt;
        sleep 10&lt;br /&gt;
    done&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;VDQ set, stopping charging and waiting for EDV1.&amp;quot;&lt;br /&gt;
echo off &amp;gt; ${CHARGER_MODE}&lt;br /&gt;
&lt;br /&gt;
while ! edv1 ; do&lt;br /&gt;
    print_info&lt;br /&gt;
    sleep 10&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;EDV1 set, restarting charging.&amp;quot;&lt;br /&gt;
echo auto &amp;gt; ${CHARGER_MODE}&lt;br /&gt;
&lt;br /&gt;
lock_screen&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>kerio</name></author>	</entry>

	</feed>