TLPUI
TLPUI copied to clipboard
Incorrect Platform Profile List: `low-power` vs `quiet`
The list of available platform profiles on my system is incorrect. It should include "quiet", but instead, it displays "low-power", which is not available on my system.
Expected Behavior
The system should list only the profiles that are actually available, as defined in /sys/firmware/acpi/platform_profile_choices.
Actual Behavior
The system incorrectly shows "low-power" as an option, even though it is not listed in /sys/firmware/acpi/platform_profile_choices.
+++ Platform Profile
/sys/firmware/acpi/platform_profile = balanced
/sys/firmware/acpi/platform_profile_choices = quiet balanced performance
Suggested Fix
From a quick review of the code, it seems that the list of available profiles should be retrieved dynamically from /sys/firmware/acpi/platform_profile_choices, rather than using a predefined list of values. This would ensure that only valid options are presented to the user.