Jeff Curless 065d4cc35f Merge pull request #13 from JeffCurless/allowSOCShutdown
Add support to change the shutdown threshold.
2025-11-01 17:15:33 -04:00
2025-07-15 15:56:45 -04:00
2025-10-12 23:21:59 -04:00
2025-10-06 22:39:29 -04:00
2025-07-12 22:03:21 -04:00
2025-10-28 20:11:40 -04:00

Argon ONE UP

This repository contains all data related to the ONE UP laptop by Argon40

Battery

Currently working on making a bettey driver for the system, so that we can monitor the battery using the standard toolbar plugin. The basis of the driver is from the test_power.c driver that lives in the linux kernel tree. The test code appears to be workng on non-trixie versions of the OS. Once I have it working and cleaned up, I will be porting the python code from Argon40 to C for the driver to read the battery info in the same manner as they do.

Build Instructions

In order to build the driver;

cd battery
./build
./install

To remove it:

./remove

Once the driver is loaded, go to the task bar and add a battery. If there is already a battery plugin loaded, remove it, exit, and re-add.

Monitor

Two monitoring applications:

oneUpMon

Monitor the use of system resources, graphically

  • Modify code to support multiple Drives for read/write rate and temperature
  • Add support for not moitoring some drives. For instance, monitor a raid device for performance, but not temperature

simple_monitor

A simple monitor that dislays some system utilization

config

This directory contains changes I make to the /boot/firmware/config.txt file

FIOScripts

A growing set of FIO jobs to help test performance on a number of different NVME drives.

monitor1up.py

A hacky little program to monitor nvme,fan and CPU temperature.

Work that needs to be completed

  • Get test_power.c code running and simualating a battery for the Raspberry PI.
  • Remove all unneeded code from the driver, called oneUpPower.c.
  • Fix the naming of all the internerals properly, and makes sure the battery tech, and manuacturer are correct.
  • Port python battery code to C.
  • Incorprate working C code into driver, and do all the plumbing.
  • Add code to support clean shutdown of laptop if system is not charging and hits a minimum SOC (5%).
  • Add support for trixie
  • Add code to allow user to set a different SOC for shutdown or disable feature.
  • Review python code to see if there is anything else that needs to be moved over.
  • Create an installer
  • Create an uninstaller

Supported Operating Systems

Note

This code is currently only supported on 64 bit Raspberry PI OS. There is not current plan to make it operational on any other OS at this time. Driver does not build under Trixie yet, as the kernel headers are not up to date...

Pictures

Discharging... at 88% Discharging

Charging Charging

Description
No description provided
Readme 7.6 MiB
Languages
Python 79.4%
Shell 14.9%
C 5.6%
Makefile 0.1%