Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aura Gen 1 only has 2 governors: performance + shedutil #56

Open
ghost opened this issue Dec 30, 2023 · 3 comments
Open

Aura Gen 1 only has 2 governors: performance + shedutil #56

ghost opened this issue Dec 30, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 30, 2023

Hi,

I'm on NixOS

  • system: "x86_64-linux"
  • host os: Linux 6.1.68, NixOS, 23.11 (Tapir), 23.11.2217.d02d818f22c7
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.18.1
  • channels(root): "nixos-23.11"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

And have tried setting my CPU to quiet, powersave and other modes, but the fan just keeps going. So I checked and the CPU governor is set to performance

$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
performance
performance
performance
performance
performance
performance
performance

There no other governors available

$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors
performance schedutil 
performance schedutil 
performance schedutil 
performance schedutil 
performance schedutil 
performance schedutil 
performance schedutil 
performance schedutil 

I don't know if this is a NixOS issue or a tuxedo-rs issue, but my battery definitely doesn't last long anymore. 3h tops even for light work.

@AaronErhardt
Copy link
Owner

Tuxedo-rs offers so called "ODM performance profiles" similar to TCC. They are offered by the TUXEDO driver via ioctl, but I couldn't find any into about what they do exactly myself. I assume they set a certain governor or add some clock frequency limits.

I also have an Aura 15 Gen 1 (with Fedora 39) and for me, the performance profiles seem to work as intended. I can check the sysfs paths you tried later to see whether I also can only see one governor and whether the performance profiles affect them.

@AaronErhardt
Copy link
Owner

I have tested the sysfs paths on my system now and have the following results:

I have a full set of available governors on all cores (conservative ondemand userspace powersave performance scheduti) and by default scheduti is enabled. The "ODM performance profiles" I can set via tuxedo-rs make no difference regarding this. I couldn't really see a difference regarding CPU frequencies either when setting the performance profile from "quiet" to "performance" for example, but I think my laptop stays quieter with "power_safe" or "quiet" somehow (maybe it is easier to detect with connected power supply, I'm just on battery currently).

@ghost
Copy link
Author

ghost commented Dec 30, 2023

I added https://github.com/NixOS/nixos-hardware/blob/22ae59fec26591ef72ce4ccb5538c42c5f090fe3/common/cpu/amd/pstate.nix#L26 to my nixos config and now have this in my kernel boot commandline amd_pstate=passive.

Got it from journalctl -b0 --grep "Command line" |& grep -Eo 'initrd.*'

Hmm... my scaling_driver should be something AMD, but instead I get

$ cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_driver
acpi-cpufreq
$ cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors 
performance schedutil 

These are my kernel modules

$ lsmod | grep -oE '^(\w+)?amd\w+'   
snd_sof_amd_rembrandt
snd_sof_amd_renoir
snd_sof_amd_acp
amdgpu

and this is my kernel

$ uname -sr
Linux 6.1.69

What does the output of those look like for you?

I'll see if I can set the governor to schedutil too. Thanks for checking on your laptop.

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

No branches or pull requests

1 participant