Watchdog Shutdowns on Battery

Hello! I have a new MNT Reform Classic with Motherboard 3.0 and RK3588. Twice while on battery power, I’ve had the system reboot with a message containing the word “watchdog” displayed on the OLED. After reboot, the battery percentage is always ???%.

What steps should I take to start troubleshooting this? Is it possible that the battery meter was just very wrong, and I ran out of charge, or is there a power stability issue? Neither of the shutdowns were during heavy use of the cores. Is there any kind of logging or system monitoring I can do, physical checks, etc?

Totally willing to buy new tools and/or batteries and try some experiments, I very much want to understand how to distinguish between “the system is wrong about how much charge is left in the batteries” and “there is plenty of charge but some other problem” and don’t really know where to start.

Anyway I am going to leave the laptop plugged in overnight to see if the battery reaches full charge, which should replace the ??? with a charge estimate. I’m reading board_reform2.c which seems to be where the main customized for MNT part is in the firmware?

Because this unit is new I believe I have the most recent firmware.

1 Like

Pictures of the OLED display this morning, after leaving it to charge overnight. The 100% charge means (I think) that the firmware set reached_full_charge = 1 and went into ST_FULLY_CHARGED overnight (line 1269). This is good!

I’m going to unplug it and use it normally until discharge; because of the battery protector boards this should be totally safe. What I don’t quite understand is what the firmware will do; on line 188 when the charger states are enumerated, there doesn’t seem to be a dedicated state for “running on battery power, disconnected from a charger”.

Is there a way to query the LPC firmware directly from the MNT reform, or do I have to connect something to LPCUSB? I’m looking at handle_commands and would like to be able to run those. I have a Linux desktop that I could leave the reform hooked up to if necessary, to monitor discharging etc.

Finally here’s my system status with firmware versions from the OLED.

Is it reasonable to try and patch the firmware to display “batteries exhausted, shutting down” or similar on the OLED when the system simply runs out of battery power, so that we know the exact cause of shutdown? This might be an easier project for me than “get hibernate working on RK3588”, which I tried but just couldn’t manage.

I found the message I saw in the keyboard firmware, line 167. watchdog.h is from the RP2040 SDK right?

1 Like