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

Add option to manage /sys/firmware/acpi/platform_profile #212

Open
ikus060 opened this issue Feb 9, 2025 · 3 comments
Open

Add option to manage /sys/firmware/acpi/platform_profile #212

ikus060 opened this issue Feb 9, 2025 · 3 comments
Assignees

Comments

@ikus060
Copy link

ikus060 commented Feb 9, 2025

In recent Linux Kernel their is a new ACPI-based power profile interface introduced in newer kernel versions (Linux 5.12+). It allows selecting power modes like performance, balanced, or low-power, depending on the laptop's firmware support.

On my system when Ichange it from "balance" to "quiet", I get reduce the power usage from ~0.8w.

Could we consider adding this option to LMT ?

@rickysarraf rickysarraf self-assigned this Feb 10, 2025
@rickysarraf
Copy link
Owner

In recent Linux Kernel their is a new ACPI-based power profile interface introduced in newer kernel versions (Linux 5.12+). It allows selecting power modes like performance, balanced, or low-power, depending on the laptop's firmware support.

I guess you meanth 6.12+ ?

On my system when Ichange it from "balance" to "quiet", I get reduce the power usage from ~0.8w.

Nice!

Could we consider adding this option to LMT ?

Yes. We can explore that. Could you please help me with the source of the information ?

@rickysarraf
Copy link
Owner

In recent Linux Kernel their is a new ACPI-based power profile interface introduced in newer kernel versions (Linux 5.12+). It allows selecting power modes like performance, balanced, or low-power, depending on the laptop's firmware support.

I guess you meanth 6.12+ ?

On my system when Ichange it from "balance" to "quiet", I get reduce the power usage from ~0.8w.

On my machine, it reports:

⛢ 20:22:05 rrs@priyasi ~  
@ cat /sys/firmware/acpi/platform_profile
balanced

ॐ 20:22:08 rrs@priyasi ~  
@ cat /sys/firmware/acpi/platform_profile_choices
low-power balanced performance

♅ 20:22:10 rrs@priyasi ~  
@ 

I'm missing quiet. But more than that, it'd be nice to know what all possible choices are made available.

@ikus060
Copy link
Author

ikus060 commented Feb 10, 2025

@rickysarraf According to my research, platform_profile_choices returns a list of available profiles. The values depend on how ACPI reports the available profiles. The values are different but similar across vendors. According to the kernel source code, it seems that the list returned by /sys/firmware/acpi/platform_profile_choices is ordered from lower power consumption to higher performance.

Here the list of possible values according to kernel source code:
https://github.com/torvalds/linux/blob/a64dcfb451e254085a7daee5fe51bf22959d52d3/drivers/acpi/platform_profile.c#L27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants