How do you watch your battery status?

I am currently hitting :black_circle: - B periodically to watch the reform’s battery status. And I am paranoid to not discharge the batteries deeply.

I have been wondering whether the keyboard firmware could be modified to periodically display / update the battery status.

Or how do you watch your battery status? Am I worrying too much?

I do it the same. As I was very busy, I didn’t use the laptop enough and the batteries discharged too deep.
When in use, you can use battery plugins in your favorite DE/WM but when it’s lying around I don’t see much choice other than checking it from time to time.
Maybe the controller can be programmed to hourly show the battery status.
Personally I would be more interested if the drain on tje batterys could be lessened when the laptop is turned off, or is it just in the nature of these type of batteries, anyone knows?

The drain could certainly be slowed down by optimizing the electronics and/or firmware. It has nothing to do with the battery chemistry; LiFePO4 batteries are very good at keeping their charge.

2 Likes

Do you plan to add any features in the future to lower the brightness settings in the bios so that, when it boots, it automatically sets to whatever percentage it is at? With 25% being the lowest setting possible?
That would increase battery life too.

I would really love that in the new MNT Reform device your developing.

If I recall correctly, the display uses the most power on most laptops and/or devices as a whole.

On a more related note, LifePO4 batteries sound very efficient.

@mntmn maybe it is possible to implement a battery switch somwhere. That way, the user can cut the connection to the batteries without unscrewing the bottom all the time

2 Likes

I wonder whether we could put both the trackball controller and the keyboard controller into deep sleep modes and maybe rewire the circle key in a way to wake it up again? what else does keep running, when the main module is switched off?

1 Like

the battery status does not seem to get exposed in sysfs, at least not via /sys/class/power_supply which most of the status plugins monitor.

How can I access the system controller’s idea of the battery status from linux?

I could provide a kernel patch to do so if someone can point me to the correct docs on how this is supposed to work.

1 Like

The trackball and USB and backlight part of the keyboard are powered by a 5V rail that is already turned off when the laptop is turned off. The first thing to do, before generating any action plans, is to measure all currents flowing in all battery cables, including the monitoring/balancing connections.

The original idea was to make an SPI connection between i.MX and LPC, which physically exists (just take look at the schematics!), but it is not used because I couldn’t get it to work before shipping (couldn’t measure any SPI activity on the lines when poking around with userspace SPI on Linux).

There is a backup solution which is the UART connection between i.MX and LPC:

echo "xUAR1" >/dev/hidraw0

This will enable LPC responses to be output to /dev/ttymxc2. So with screen /dev/ttymxc2 57600 you will get regular strings in this format (~ every 30 seconds):

31 31 31 31 31 31 31 31 mA 0277mV25329  12%

The first 8 columns are cell voltages x10. The last column is the battery gauge. mA and mV are total batterry current and voltage.

turn it off with:

echo "xUAR0" >/dev/hidraw0
1 Like

Ok, I will have a look at the SPI as well, thank you for adding TPs on those lines :wink:

2 Likes