# CM4: Getting Started

**URL:** <https://forum.clockworkpi.com/t/cm4-getting-started/9838>\
**Category:** DevTerm\
**Tags:** community\
**Created:** [April 4, 2023, 5:31pm UTC](https://forum.clockworkpi.com/t/cm4-getting-started/9838 "2023-04-04T17:31:57Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![adcockm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/adcockm/32/1664_2.png) [@adcockm](https://forum.clockworkpi.com/u/adcockm)\
**Post date:** [April 23, 2023, 11:18am UTC](https://forum.clockworkpi.com/t/cm4-getting-started/9838/9 "2023-04-23T11:18:01Z")

</div>

I don’t have a way to measure power consumption in terms of voltage, but I guess I could find some kind of battery monitor/logger and run it on battery until it runs dry. Doing that with different CPU frequency settings would provide a comparison. My batteries are not new, but they should be in pretty good shape and fairly representative.

Any suggestions for a battery monitor/logger, and I suppose something to run to keep the system busy until it drains the battery? 🙂

Ok, for logging, I think I can use the excellent work done here. I just checked and the script works on devterm as well as gameshell, so I should be able to log voltage, battery capacity, and current over time. I just need to come up with something that taxes the CPU and drains power fairly quickly. Suggestions welcome!

> [@Enabling standby mode using the power key](https://forum.clockworkpi.com/t/enabling-standby-mode-using-the-power-key/5695):
>
> Hello, Months ago while working in our Kernel, I managed to enable the power key functionality to do a soft power off of the game shell ([How to get the power button to soft power off](https://forum.clockworkpi.com/t/how-to-get-the-power-button-to-soft-power-off/5201)). To enable it, the change was simple: I just removed the power key code (in drivers/input/misc/axp20x-pek.c, and drivers/mfd/axp20x.c) that was in our patch (52rc4.patch) and used the the mainline kernel without these changes. Maybe our kernel devs needed this before, but it is not needed anymore in recent kernel,…

---

_[View the full topic](https://forum.clockworkpi.com/t/cm4-getting-started/9838)._
