Hello @Steve1
well, there is an alternative method you could use. The power button also acts as regular button. So you could check if the power button was still pressed when M5Paper starts running. Something like this at the beginning of setup():
M5.begin(true, false, true, true, true);
M5.RTC.begin();
M5.update();
bool pwrBtnStart = M5.BtnP.isPressed(); // true if started by PWR button
Note: for it to work you'll need to press and hold the power button long enough for the code to reach the statement checking the button. In my tests I need to hold the power button for about 5 seconds.
Note: a disadvantage of the power button check method is that when M5Paper is powered on by USB it thinks it was an RTC start.
Thanks
Felix