Skip to content

Commit

Permalink
Add hyphenated amd-pstate-epp governor
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbook committed Jul 12, 2023
1 parent 9839cca commit b63d69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slimbookbatterypreferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ def complete_values(self):
line = line[: line.find("\n")]
gov_mode = line[line.find("=") + 1 :]
active_mode = None
if governor == "intel_pstate" or governor == "amd-pstate-epp":
if governor == "intel_pstate" or governor == "amd-pstate-epp" or governor == "amd_pstate_epp":
values = list(dict(self.EPP_GOV).values())
if gov_mode in values:
active_mode = values.index(gov_mode)
Expand Down

1 comment on commit b63d69a

@siddhpant
Copy link
Contributor

@siddhpant siddhpant commented on b63d69a Jul 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This alone won't work, the name needs to be added in two more places as done in #111.

Also, the hyphenated version (i.e. with dashes) is already there, this commit adds the name with underscores.

Please sign in to comment.