CachyOS / CachyOS-Settings

Settings used for CachyOS
GNU General Public License v3.0
98 stars 23 forks source link

Do not use performance governor on laptops #38

Closed ventureoo closed 1 year ago

ventureoo commented 1 year ago

Many laptop users, complain that their laptop after installing CachyOS warms up a lot, because we supply a performance governor in our kernel by default. I think it's a issues that should be fixed, so that's the PR we're in:

  1. Call the laptop-mode script after the udev rule on battery is triggered.
  2. The following settings are set inside the script: a) On laptops with amd-pstate driver support, we use passive mode. From my side it is far preferable to active or guided as it has a more extensive set of governors. Other users have also commented that it works well on their laptop [1]. TODO: I haven't figured out what to do with Intel CPUs yet, as I'm not very familiar with how the Intel Pstate driver works. b) Set the governor to powersave or conservative depending on whether the laptop is currently charging or not.

Why conservative and not on-demand or schedutil? I think it is much better suited for laptops due to the smoother frequency rise. My laptop no longer goes into turbo boost if I open some new application or game. I also noticed that this is the only governor that allows you to set max CPU frequency limit properly. In other words, conservative allows you to deal with problem of trotting on laptops quite effectively, so I prefer it.

I'm marking this as Draft as it requires a discussion, and besides, I'm also thinking of an alternative solution to this with a TLP ship.

[1] - https://old.reddit.com/r/linux/comments/15p4bfs/amd_pstate_and_amd_pstate_epp_scaling_driver/jvy9jjl/

ptr1337 commented 1 year ago

I don't think we should default to passive, just because it has more gov's available. passive performance really bad. Sure, it would be "good" to switch to the powersave, but the complete frequency scaling is broken on passive.

There would be even guided better then passive, since it does support the same gov's but a way more improved schedutil gov.

ventureoo commented 1 year ago

I only notice the problems with active on my laptop. Also, I don't see the point of including it here, since it is already in the kernel by default in 6.5.