<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.geekworm.com/index.php?action=history&amp;feed=atom&amp;title=X728-Software</id>
	<title>X728-Software - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.geekworm.com/index.php?action=history&amp;feed=atom&amp;title=X728-Software"/>
	<link rel="alternate" type="text/html" href="https://wiki.geekworm.com/index.php?title=X728-Software&amp;action=history"/>
	<updated>2026-06-04T17:36:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.geekworm.com/index.php?title=X728-Software&amp;diff=36920&amp;oldid=prev</id>
		<title>Admin: Replace &lt;comments/&gt; with &lt;comment-streams /&gt;</title>
		<link rel="alternate" type="text/html" href="https://wiki.geekworm.com/index.php?title=X728-Software&amp;diff=36920&amp;oldid=prev"/>
		<updated>2026-05-27T02:13:53Z</updated>

		<summary type="html">&lt;p&gt;Replace &amp;lt;comments/&amp;gt; with &amp;lt;comment-streams /&amp;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 10:13, 27 May 2026&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-l128&quot;&gt;Line 128:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 128:&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;&amp;lt;!--Add review function! --&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;&amp;lt;!--Add review function! --&amp;gt;&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;&amp;lt;comment-streams /&amp;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;&amp;lt;comment-streams &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;id=&quot;main&quot; &lt;/ins&gt;/&amp;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;&amp;lt;!--Please choose the  --&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;&amp;lt;!--Please choose the  --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_2026:diff:1.41:old-36312:rev-36920:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.geekworm.com/index.php?title=X728-Software&amp;diff=36312&amp;oldid=prev</id>
		<title>Admin: Replace &lt;comments/&gt; with &lt;comment-streams /&gt;</title>
		<link rel="alternate" type="text/html" href="https://wiki.geekworm.com/index.php?title=X728-Software&amp;diff=36312&amp;oldid=prev"/>
		<updated>2026-05-26T12:08:01Z</updated>

		<summary type="html">&lt;p&gt;Replace &amp;lt;comments/&amp;gt; with &amp;lt;comment-streams /&amp;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 20:08, 26 May 2026&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-l128&quot;&gt;Line 128:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 128:&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;&amp;lt;!--Add review function! --&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;&amp;lt;!--Add review function! --&amp;gt;&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;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;comments &lt;/del&gt;/&amp;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;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;comment-streams &lt;/ins&gt;/&amp;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;&amp;lt;!--Please choose the  --&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;&amp;lt;!--Please choose the  --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_2026:diff:1.41:old-25187:rev-36312:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.geekworm.com/index.php?title=X728-Software&amp;diff=25187&amp;oldid=prev</id>
		<title>Cindy at 10:22, 24 April 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.geekworm.com/index.php?title=X728-Software&amp;diff=25187&amp;oldid=prev"/>
		<updated>2026-04-24T10:22:52Z</updated>

		<summary type="html">&lt;p&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 18:22, 24 April 2026&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-l1&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=&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;{{GD Template Impl}}&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;{{GD Template Impl}}&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;{{Deprecated|Please refer to [[X728-script]].}}&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;&amp;lt;big&amp;gt;Although this installation tutorial is still available, but we strongly recommend that you use [[X728-script]] new tutorial, and we no longer maintain this page.&amp;lt;/big&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;&amp;lt;big&amp;gt;Although this installation tutorial is still available, but we strongly recommend that you use [[X728-script]] new tutorial, and we no longer maintain this page.&amp;lt;/big&amp;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;/table&gt;</summary>
		<author><name>Cindy</name></author>
	</entry>
	<entry>
		<id>https://wiki.geekworm.com/index.php?title=X728-Software&amp;diff=16832&amp;oldid=prev</id>
		<title>Harry at 17:09, 22 July 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.geekworm.com/index.php?title=X728-Software&amp;diff=16832&amp;oldid=prev"/>
		<updated>2023-07-22T17:09:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{GD Template Impl}}&lt;br /&gt;
&amp;lt;big&amp;gt;Although this installation tutorial is still available, but we strongly recommend that you use [[X728-script]] new tutorial, and we no longer maintain this page.&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following test is base on  [https://www.raspberrypi.com/software/operating-systems/ 2022-01-28-raspios-bullseye-armhf.zip]&lt;br /&gt;
&lt;br /&gt;
Python version is 3;&lt;br /&gt;
&lt;br /&gt;
1. Enable I2C funcion on Raspbian:&lt;br /&gt;
 reter to [[How to enable I2C]]&lt;br /&gt;
&lt;br /&gt;
2. Login via teminal window, then update &amp;amp; upgrade &amp;amp; install necessary software (python and i2c tool library)&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get upgrade&lt;br /&gt;
 sudo apt-get -y install i2c-tools python3-smbus python-smbus&lt;br /&gt;
&lt;br /&gt;
2.1 Once you have logged into your Raspberry Pi from the command line, run the command to see all the connected devices&lt;br /&gt;
 sudo i2cdetect -y 1&lt;br /&gt;
 [[File:X728x-i2c.png]]&lt;br /&gt;
 #36 - the address of the battery fuel gauging chip&lt;br /&gt;
 #68 - the address of the RTC chip&lt;br /&gt;
 #Different x728 versions may have different values&lt;br /&gt;
&lt;br /&gt;
3. Download x728 setup scripts:&lt;br /&gt;
 cd ~&lt;br /&gt;
 git clone https://github.com/geekworm-com/x728&lt;br /&gt;
&lt;br /&gt;
4. Install script&amp;amp;reboot:&lt;br /&gt;
&lt;br /&gt;
Firstly please select your x728 version, please use x728-v2.1.sh for x728 v2.1 and v2.2 and &amp;#039;&amp;#039;&amp;#039;v2.3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 sudo bash x728-v2.1.sh&lt;br /&gt;
 #New add buzzer support&lt;br /&gt;
or&lt;br /&gt;
 sudo bash x728-v2.0.sh&lt;br /&gt;
or &lt;br /&gt;
 sudo bash x728-v1.0.sh&lt;br /&gt;
then&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
You can get the following python file in /home/pi/ fold:&lt;br /&gt;
&lt;br /&gt;
 x728bat.py # Reading battery voltage&lt;br /&gt;
 x728pld.py # Testing AC power off/loss or power adapter failure detection, added buzzer function on v2.1&lt;br /&gt;
 x728plsd.py # Testing Auto shutdown when AC power loss or power adapter failure&lt;br /&gt;
&lt;br /&gt;
5. Set and Read the RTC time&lt;br /&gt;
 #If you need to set the system time for any reason you can use the following command :  &lt;br /&gt;
 date -s &amp;quot;5 MAR 2019 13:00:00&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 #Write the system date and time to the RTC module after your correct the system date and time :  &lt;br /&gt;
 sudo hwclock -w&lt;br /&gt;
&lt;br /&gt;
 #Read the date and time back from the RTC module:  &lt;br /&gt;
 sudo hwclock -r&lt;br /&gt;
&lt;br /&gt;
6. How to reading battery voltage and  percentage, this is the sample code, you can modify it by your request.&lt;br /&gt;
 sudo python /home/pi/x728bat.py&lt;br /&gt;
[[File:X728-bat-2.jpg]]&lt;br /&gt;
&lt;br /&gt;
User Guide: https://github.com/geekworm-com/x728 to know more details;&lt;br /&gt;
&lt;br /&gt;
But we hope that the script can be executed automatically when the Raspberry Pi board boots, we can use crontab system command to achieve it. Refer to [[How to add crontab job]] or refer to the following:&lt;br /&gt;
 sudo crontab -e&lt;br /&gt;
[[File:Crontab-step1.png]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;`1`&amp;quot; then press Enter&lt;br /&gt;
&lt;br /&gt;
Add a line at the end of the file that reads like this:&lt;br /&gt;
 @reboot python /home/pi/x728bat.py&lt;br /&gt;
[[File:X728-crontab.png|800px]]&lt;br /&gt;
&lt;br /&gt;
Save and exit. In nano, you do that by hitting CTRL + X, answering Y and hitting Enter when prompted.&lt;br /&gt;
&lt;br /&gt;
7. Power off command on Raspbian from software&lt;br /&gt;
 x728off&lt;br /&gt;
* x728off is safe shutdown command&lt;br /&gt;
* press on-board blue button 1-2 seconds to reboot&lt;br /&gt;
* press on-board blue button 3 seconds to safe shutdown,&lt;br /&gt;
* press on-board blue button 7-8 seconds to force shutdown.&lt;br /&gt;
&lt;br /&gt;
8. Testing AC power off/loss or power adapter failure detection (need to short the &amp;#039;PLD&amp;#039; pin on v1.x), also test the buzzer function on v2.1&lt;br /&gt;
 cd ~&lt;br /&gt;
 sudo python3 x728pld.py&lt;br /&gt;
 or &lt;br /&gt;
 sudo python x728pld.py&lt;br /&gt;
&lt;br /&gt;
[[File:X728-pld-2.jpg]]&lt;br /&gt;
&lt;br /&gt;
PS: &lt;br /&gt;
&lt;br /&gt;
1. X728pld.py is &amp;#039;&amp;#039;&amp;#039;ONLY&amp;#039;&amp;#039;&amp;#039; a sample code file, you can modify it according to your own needs&lt;br /&gt;
&lt;br /&gt;
2. The buzzer is controlled by software. It is found that some customers do not know how to turn off the buzzer&amp;#039;s warning sound. Here is a reminder.&lt;br /&gt;
&lt;br /&gt;
[[File:X728-buzzer.png|800px]]&lt;br /&gt;
&lt;br /&gt;
9. &amp;#039;&amp;#039;&amp;#039;Testing Auto shutdown when AC power loss&amp;#039;&amp;#039;&amp;#039; or power adapter failure&lt;br /&gt;
 cd ~&lt;br /&gt;
 sudo python3 x728pld.py&lt;br /&gt;
 or &lt;br /&gt;
 sudo python x728plsd.py&lt;br /&gt;
&lt;br /&gt;
==uninstall x728 script==&lt;br /&gt;
uninsatll x728 shell script, run the following command:&lt;br /&gt;
 sudo ./uninstall_x728.sh&lt;br /&gt;
&lt;br /&gt;
For the x728 old shell script, you also run this command to remove it, then re-install the x728 script.&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
Q: We want to automatically shut down when the battery voltage is lower than a certain specified value, is it possible?&lt;br /&gt;
&lt;br /&gt;
A:  Please run the followng command to achieve this function.(Note: 3V is default shut down voltage value )&lt;br /&gt;
 python3 /home/pi/x728/x728v2-asd.py &amp;amp;&lt;br /&gt;
&lt;br /&gt;
X728-Chip-Specifications：&lt;br /&gt;
* [[File:MAX17040-MAX17041.pdf]]&lt;br /&gt;
&lt;br /&gt;
*[https://www.sparkfun.com/datasheets/Components/DS1307.pdf I2C address: 0x36 for battery fuel gauging, 0x68 for RTC]&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
*[https://www.instructables.com/Raspberry-Pi-Tutorial-How-to-Use-a-Buzzer/ Raspberry Pi Tutorial: How to Use a Buzzer]&lt;br /&gt;
*[https://github.com/arbowl/cyberdeck-battery-indicator/ Battery Indicator Script Share by Drew]&lt;br /&gt;
&lt;br /&gt;
Return to [[X728]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Add review function! --&amp;gt;&lt;br /&gt;
&amp;lt;comments /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Please choose the  --&amp;gt;&lt;br /&gt;
&amp;lt;!--Remove other categories, just keep the appropriate categories --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Product Manual]]&lt;br /&gt;
[[Category:Raspberry pi]]&lt;br /&gt;
[[Category:Knowledge]]&lt;/div&gt;</summary>
		<author><name>Harry</name></author>
	</entry>
</feed>