Skip to content

Several runtime optimizations to reduce CPU load and temperature and increase battery life#101

Open
friebi wants to merge 338 commits into
splitti:mainfrom
friebi:toUpstream
Open

Several runtime optimizations to reduce CPU load and temperature and increase battery life#101
friebi wants to merge 338 commits into
splitti:mainfrom
friebi:toUpstream

Conversation

@friebi

@friebi friebi commented Nov 16, 2024

Copy link
Copy Markdown

Hi, I love this project and also the MupiHAT that you guys have developed. I have two MupiBoxes in operation, each running a Raspberry Pi 3 B+.
When I started using your SW, I realized a pretty high CPU load even in idle state and after letting the system settle for a couple of minutes. At least in my case using Raspberry 3's. So, I started profiling and optimizing. I am running these changes successfully on my two boxes over the last couple of months, so it can be considered as tested.?

What did I do:

  • Reduce the frequency of the execution of several Mupi services
  • Move calls to jq from inside endless loops to outside

What did I achieve:

  • approx. 10° lower CPU temperature compared to your version
  • higher responsiveness of the Chromium UI due to more available CPU power
  • Drive-by improvement: Kernel 6.6 compatibility (Background: Stop using /sys/class/gpio – it’s deprecated)

Disadvantages:

  • Some settings will now require a reboot or at least a restart of the affected service to take effect

Further improvements:

  • I recommend to migrate autosetup/autosetup.sh and update/start_mupibox_update.sh into one script, because they share a lot of copied code and they start to diverge making it a mess to maintain.

When viewing the changes in this PR I recommend disabling whitespaces in view.
grafik

When merging this PR I recommend doing a squash merge, because otherwise a lot of commits would be merged onto the main branch.

friebi and others added 30 commits July 16, 2024 09:23
This reverts commit 820bc75.
This reverts commit 94a6dc1.
This reverts commit e97a41d.
This reverts commit 3113b2f.
This reverts commit 609563c.
Update sync-upstream.yml

Update sync-upstream.yml

Update sync-upstream.yml

Update sync-upstream.yml

Update sync-upstream.yml

Update sync-upstream.yml

Update sync-upstream.yml

Update sync-upstream.yml

Update sync-upstream.yml

Create merge_main_to_develop.yml

Update merge_main_to_develop.yml

Update and rename merge_main_to_develop.yml to merge_main_to_branches.yml

Update merge_main_to_branches.yml

Update merge_main_to_branches.yml

Update merge_main_to_branches.yml

Update merge_main_to_branches.yml

Update merge_main_to_branches.yml

Update merge_main_to_branches.yml

- trigger only on branch master update
- clean up tabs
- hopefully fix ${USER} commit name

take care of deleted files in upstream branch

run only at 3 am

trigger manually

Update merge_main_to_branches.yml

Update merge_main_to_branches.yml

Update merge_main_to_branches.yml

try to overcome merge return code

fix syntax error

remove continue on error

missing a force at the end to not fail due to existing tags

set username later as it causes problems

fix regex

long option names
# Conflicts:
#	config/templates/.bashrc
#	update/start_mupibox_update.sh
# Conflicts:
#	.github/workflows/merge_main_to_branches.yml
#	update/start_mupibox_update.sh
friebi and others added 29 commits January 10, 2026 12:46
This reverts commit ed70f85.
# Conflicts:
#	autosetup/autosetup.sh
#	autosetup/autostart.sh
#	update/start_mupibox_update.sh
# Conflicts:
#	autosetup/autosetup.sh
#	autosetup/autostart.sh
@friebi

friebi commented May 17, 2026

Copy link
Copy Markdown
Author

@splitti 7de3cbb is important to get the On-Off-Shim and the Power-Button working again under Debian Trixie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants