1
0
Fork 0

video: make missing radeon_powersave files quieter

When the plugin is overloaded to non-radeon files it shouldn't be
so noisy.
This commit is contained in:
Mario Limonciello 2024-02-22 14:54:33 -06:00
parent b8784205fd
commit 0cd246a6ce

View file

@ -82,7 +82,7 @@ class VideoPlugin(base.Plugin):
va = str(re.sub(r"(\s*:\s*)|(\s+)|(\s*;\s*)|(\s*,\s*)", " ", value)).split()
if not os.path.exists(sys_files["method"]):
if not sim:
log.warn("radeon_powersave is not supported on '%s'" % device)
log.debug("radeon_powersave is not supported on '%s'" % device)
return None
for v in va:
if v in ["default", "auto", "low", "mid", "high"]: