From e26692219db3abafa9b2eb47abea696f6acc1264 Mon Sep 17 00:00:00 2001 From: Alessandro GUIDO Date: Sun, 31 Mar 2013 12:23:03 +0200 Subject: [PATCH] Fix typo in allowed values for radeon_powersave The correct spelling is 'mid', not 'med'. Writing 'med' to the power_profile sysfs file results in an invalid argument error: 2013-03-31 12:08:41,474 ERROR tuned.utils.commands: Writing to file /sys/class/drm/card0/device/power_profile error: [Errno 22] Invalid argument --- tuned/plugins/plugin_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/plugins/plugin_video.py b/tuned/plugins/plugin_video.py index 2a6d913..f4c37e3 100644 --- a/tuned/plugins/plugin_video.py +++ b/tuned/plugins/plugin_video.py @@ -46,7 +46,7 @@ class VideoPlugin(base.Plugin): log.warn("radeon_powersave is not supported on '%s'" % device) return - if value in ["default", "auto", "low", "med", "high"]: + if value in ["default", "auto", "low", "mid", "high"]: tuned.utils.commands.write_to_file(sys_files["method"], "profile") tuned.utils.commands.write_to_file(sys_files["profile"], value) elif value == "dynpm":