On Wed, 11 Dec 2024 21:12:34 -0500 Conrad Knight <iestynap...@gmail.com> said:

> Sorry to bring this up again, but the new module is still giving me
> trouble. There doesn't appear to be any way to set the CPU governor
> policy with this new version, while there was with the old one.

There is - 2 sliders. one for battery (high power save) and one for ac (low
powersave. there is a slider int he popup to change the power level NOW. at
one end is performance, the other powersave and 2 levels in between.

> If i click on the settings button in the pop-up, there are sliders for
> "high" and "low" power levels, which give options for "power save",
> "balanced low", "balanced high", and "performance". These don't seem
> to correlate to the governors i have available.

correct. you can't set the governor directly. this slider will pick a governor
for you. because this varies wildy across many different cpu's. some now don't
support governors at all - only the new energy levels above.

there's logic inside the enlightenment system backend to map these to possible
governors. the range of governors available will maybe only be 1 (performance)
or 2 (performance and schedutil) or performance and powersave. you may also
have ondemand or conservative or interactive... you may even have others.

then ther's intel pstate which is far more user to set a pstate mn 0->100 and
pstate max 0->100 -= again the backend now maps to this to pstate levels of 0,
50, 75, 100 depending on what you chose (min is always 0),a nd at 100 it also
enables turbo. it;'s all inside e_system_cpufreq.c

> See, for example, this screenshot:
> 
> https://mega.nz/file/YHNARY7R#TbgEkGbzWA7vYv6k-qdJ3hAvTygnjb2NXSt0r-0DLAk
> 
> I set the "high" level to performance, but found my machine was
> running really slowly. On the off-chance that the battery not being at
> 100^ mean it was using the "low" setting,, i  moved that slider up to
> maximum as well. This seemed to work for a while, but then everything
> slowed down again. Running
> cpupower -c all frequency-info
> shows that all cores are currently running in powersave mode. This is
> while taking the above screenshot.

you might have something else messing with it. setting it to performance may be
overheating it. balanced hi is probably what you want.

i did have a bug where those sliders in the config are swapped vs the situation
used - just fixed it.

but no - you don't set the governor directly. there's a mapping of the 4 states
there (powersave -> performance). so if wer call them 0, 1, 2, 3 they will try
map to

0 -> powewrsave
1 -> conservative, ondemand interactive (whichever is found first)
2 -> interactive, ondemand, conservative (whichever is found first)
3 -> performance

it's actually more complex than that - there is a whole priority list for every
level.

https://git.enlightenment.org/enlightenment/enlightenment/src/commit/74cde1a37fb215a15b111767a8e5ee15b62c0b12/src/bin/system/e_system_cpufreq.c#L177

see that file for the pstate and energy handling too.

governors have little effect if you have intel pstate then the 0->100 values
are more useful. and energy stuff is another much more modern way of doing this
with just 4 possible levels.

> So, the sliders don't work, or at least only temporarily. The wording
> on the slider labels doesn't match the governors, so i don't know what
> it's trying to do ("balanced low/high"?). And even moving all the
> sliders to maximum leaves everything running at the slowest speed.
> With the old module, i simply picked the governor (e.g. schedutil)
> from the list and it was set as expected, and restored the setting on
> each login.
> 
> I would like to use the new module, but right now i've had to disable
> it altogether and manually set the CPU governor if it needs changing.
> Is there some setting in the new module i'm missing?
> 
> Thanks,
> -Conrad.
> 
> -- 
> Shine like thunder
> Cry like rain
> 
> 
> _______________________________________________
> enlightenment-users mailing list
> enlightenment-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
Carsten Haitzler - ras...@rasterman.com



_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to