1
0
Fork 0

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
This commit is contained in:
Alessandro GUIDO 2013-03-31 12:23:03 +02:00 committed by Jaroslav Škarvada
parent 6af69bbff7
commit e26692219d

View file

@ -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":