Linux Host System - is there a packet manager? How can I install on the host?

Hello there!

I’ve set up Home Assistant over the weekend on an old thin client (regular pc with 2gb ram and an older Intel Celeron U) and am trying to set the max cpu frequency within linux on the host os.

I’ve gained access to the host thanks to this guide but I am unable to figure out if there is a package manager installed.

My linux knowledge is… rudimentary. So i’ve always used apt-get, yum etc. for package installation.

I’d like to use the https://www.kernel.org/doc/Documentation/cpu-freq/governors.txt to limit the max cpu frequency but cpufreq is not installed.

Can you help me out here?

Thanks!

There is no package manager. Also most of the filesystem is read only. HAOS has no way to install additional software or make significant changes to the host system by design. It is a dedicated, single-purpose OS and all changes to it should be made through supported mechanisms (HA UI, CLI and API).

Install in docker or vm
This will allow you to cap cpu/memory use by ha. It doesn’t use much resources so not sure why you doing this

In Linux you can also install and use cpu limit. I never use but seems like the go to

Thanks for the response.

I tried accessing the CPU Governor within the HA SSH Terminal but had no access to the files under /sys/devices/system/cpu/cpu*/cpufreq/

My plattform does not allow for cpu frequency limits within bios, so I have to do this via the OS. What’s the supported mechanism here?

If I re-install with docker, will I be able to import all settings and data from the current installation?

Why am I trying to do this?
The celeron U hardware can scale from 800 to 1800 mhz, the system currently constantly changes to higher cpu frequencies despite an actual need for this additional performance.
I want to optimize power consumtion. 800 mhz == 6-7 Watts, 1800mhz == 15-19 Watts.
I simply want to limit the system to 800mhz and save 30€/year on power consumtion costs.

Bios may not allow specific changes but it may have general power profiles that have same effect

Yes…but this is specific to docker container and not base OS/system so based on your goal this will not help you.

Unfortunately there’s not a single setting for power profiles in this BIOS :frowning:

Can you please elaborate?
I’d be happy to use a Hyper-V machine for that but I don’t want to loose my current configuration and collected data.

Docker and VM settings affect the applications OS/container/system but do not have any real effect upon the main host system. The application may use less resources but the host can still use as much as it wants.

Host system May still run high cpu/power depending on its own settings.

1 Like