Skip to content

Commit

Permalink
switch back to using enabled check while ppd emulation is disabled by…
Browse files Browse the repository at this point in the history
… default
  • Loading branch information
antheas committed Jul 6, 2024
1 parent 7bdee33 commit 40a7da8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/adjustor/drivers/amd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,17 @@ def settings(self):
out = subprocess.check_output(
[
"systemctl",
"list-unit-files",
"list-units",
"-t",
"service",
"--full",
"--all",
"--plain",
"--no-legend",
]
)
for line in out.decode().splitlines():
line = line.lower()
if (
"power-profiles-daemon" in line or "tuned" in line
) and "masked" not in line:
if "power-profiles-daemon" in line or "tuned" in line.lower():
self.ppd_conflict = True
break
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion src/adjustor/drivers/amd/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ conflict:
type: display
default: >-
Energy Management can not be enabled while PPD or TuneD are enabled.
`systemctl mask power-profile-daemon` or `tuned`.
`systemctl disable --now power-profile-daemon` or `tuned`.
enable:
title: Enable Energy Management
type: action
Expand Down

0 comments on commit 40a7da8

Please sign in to comment.