Artix Linux Forum

Artix Linux => Software development => Topic started by: Worm_Jim on 07 October 2024, 10:49:32

Title: Package request: auto-cpufreq
Post by: Worm_Jim on 07 October 2024, 10:49:32
Is it possible to add auto-cpufreq (https://github.com/AdnanHodzic/auto-cpufreq) to the artix repositories?

As far as I understand, in addition to systemd, it can work with s6, dinit, runit and openrc, everything needed for this is in the scripts directory, but its installation is complex and unclear.
Title: Re: Package request: auto-cpufreq
Post by: Worm_Jim on 08 October 2024, 12:44:26
Or recommend an analogue that is not so terribly designed and written ;)
Title: Re: Package request: auto-cpufreq
Post by: Hitman on 08 October 2024, 13:13:47
I recommend intel-undervolt if you are on intel and messing with some of the cpu governor tunables (or switching the entire gov. around) for instance for ondemand or on newer hardware schedutil, then changing some kernel params. for swap/caches/etc maybe changing the kernel to one with different parameters already set.

This does 75% what that tool does but it requires some manual labour :-)
Title: Re: Package request: auto-cpufreq
Post by: Worm_Jim on 08 October 2024, 13:28:44
As far as I understand, intel-undervolt supports processors starting from the 4th generation of intel (I have the 3rd).
Title: Re: Package request: auto-cpufreq
Post by: Artist on 08 October 2024, 18:36:05
I built it once and tested it on a 9.5Gen Intel system; it failed to start properly but did not give any indication why. IIRC there were many similar bug reports but no fix nor help. So after an hour or so I moved it to /dev/null

What purpose does the package need to serve? Maybe there is another solution.

artist
Title: Re: Package request: auto-cpufreq
Post by: Worm_Jim on 09 October 2024, 04:07:06
I think the project page says it better than I can...

I found this (https://github.com/AdnanHodzic/auto-cpufreq/discussions/506) page. I'll go read up on these tools.
Title: Re: Package request: auto-cpufreq
Post by: Worm_Jim on 09 October 2024, 10:47:18
Artist, can you add thinkfan (https://github.com/vmatare/thinkfan) for now?
Title: Re: Package request: auto-cpufreq
Post by: corysanin on 09 October 2024, 18:42:10
thinkfan (https://aur.archlinux.org/packages/thinkfan) is in the AUR
Title: Re: Package request: auto-cpufreq
Post by: Hitman on 09 October 2024, 19:01:54
You realistically only need thinkpad-acpi driver and a fan control utility for that (in link above, thinkfan includes it).
As far as I understand, intel-undervolt supports processors starting from the 4th generation of intel (I have the 3rd).
Right, just throttle control unfortunately.
Title: Re: Package request: auto-cpufreq
Post by: Worm_Jim on 10 October 2024, 02:34:22
thinkfan (https://aur.archlinux.org/packages/thinkfan) is in the AUR
Yes, but with systemd!
Title: Re: Package request: auto-cpufreq
Post by: Ambie on 10 October 2024, 07:59:19
There's also https://aur.archlinux.org/packages/thinkfan-openrc (https://aur.archlinux.org/packages/thinkfan-openrc) in AUR.
Title: Re: Package request: auto-cpufreq
Post by: EDX-0 on 22 November 2024, 09:23:48
as a maybe lighter weight alternative to auto-cpufreq there is: afreq.sh (https://github.com/eylles/afreq.sh) it does the whole governor tuning on ac and battery while allowing you to configure thresholds and governors, also sets some kernel tunables to improve battery life and performance, as far as dependencies go it can work with just busybox and procps.
Title: Re: Package request: auto-cpufreq
Post by: DTWP on 29 November 2024, 18:46:22
What about corectrl? It's not automatic (you need to set up how you want your cpu and stuff to work) but it might help you achieve what you want/need to do. If I remember correctly, you can get it through pacman, but I am not sure on what of the repositories corectrl is.