<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[M5.shutdown() not working on M5Paper]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/2892/m5paper-shutdown-deep-sleep-wakeup">M5Paper Shutdown() / Deep Sleep / Wakeup</a></p>
<p dir="auto">I am using M5Paper but M5.shutdown() is not working even the device is disconnected from the USB. The Loop still running and M5Paper still remains On.<br />
How to shutdown M5Paper and wake up again after specific time intervals?</p>
<p dir="auto">I am using the sample code from M5 Stack [<a href="https://docs.m5stack.com/en/api/m5paper/system_api" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/en/api/m5paper/system_api</a>](link url)</p>
<p dir="auto">#include &lt;M5EPD.h&gt;</p>
<p dir="auto">M5EPD_Canvas canvas(&amp;M5.EPD);</p>
<p dir="auto">void setup()<br />
{<br />
M5.begin();<br />
M5.EPD.SetRotation(90);<br />
M5.TP.SetRotation(90);<br />
M5.EPD.Clear(true);<br />
M5.RTC.begin();<br />
canvas.createCanvas(540, 960);<br />
canvas.setTextSize(3);<br />
canvas.drawString("Press PWR Btn for sleep!", 45, 350);<br />
canvas.drawString("after 5 sec wakeup!", 70, 450);<br />
canvas.pushCanvas(0,0,UPDATE_MODE_DU4);<br />
}</p>
<p dir="auto">void loop()<br />
{<br />
if(M5.BtnP.wasPressed()){<br />
canvas.drawString("I'm going to sleep.zzzZZZ~", 45, 550);<br />
canvas.pushCanvas(0,0,UPDATE_MODE_DU4);<br />
delay(1000);<br />
gpio_hold_en((gpio_num_t) M5EPD_MAIN_PWR_PIN);<br />
gpio_deep_sleep_hold_en();<br />
M5.shutdown(5);<br />
}<br />
M5.update();<br />
delay(100);<br />
}</p>
]]></description><link>https://community.m5stack.com/topic/4379/m5-shutdown-not-working-on-m5paper</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 10:03:16 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4379.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 Jun 2022 11:45:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5.shutdown() not working on M5Paper on Mon, 20 Jun 2022 14:28:20 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/schedule-display" aria-label="Profile: schedule-display">@<bdi>schedule-display</bdi></a></p>
<p dir="auto">Have you tried the <a href="https://github.com/m5stack/M5EPD/blob/main/examples/Basics/RTC_WakeUp/RTC_WakeUp.ino" target="_blank" rel="noopener noreferrer nofollow ugc">RTC example</a> (w/o modifications)?</p>
<p dir="auto">In your code, why did you add the two <code>gpio_xxx</code> lines? I think they are the reason M5Paper cannot shutdown.</p>
<p dir="auto">Also this <a href="https://community.m5stack.com/topic/3958/problem-with-m5-shutdown-and-deep-sleep-m5-shutdown-example-does-not-run-anymore">thread</a> might be helpful.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/17770</link><guid isPermaLink="true">https://community.m5stack.com/post/17770</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 20 Jun 2022 14:28:20 GMT</pubDate></item></channel></rss>