set_radeon_powersave: added support for auto profile
This commit is contained in:
parent
cc4ff67c4e
commit
9280e4ee15
1 changed files with 1 additions and 1 deletions
|
|
@ -270,7 +270,7 @@ disable_snd_ac97_powersave() {
|
|||
# usage: set_radeon_powersave dynpm | default | low | med | high
|
||||
set_radeon_powersave () {
|
||||
[ -e /sys/class/drm/card0/device/power_method ] || return
|
||||
if [ "$1" = default -o "$1" = low -o "$1" = med -o "$1" = high ]; then
|
||||
if [ "$1" = default -o "$1" = auto -o "$1" = low -o "$1" = med -o "$1" = high ]; then
|
||||
[ -e /sys/class/drm/card0/device/power_profile ] || return
|
||||
echo profile > /sys/class/drm/card0/device/power_method
|
||||
echo "$1" > /sys/class/drm/card0/device/power_profile
|
||||
|
|
|
|||
Loading…
Reference in a new issue