From 96572e6f83d3357ddc1f7255cca6ce90f765a6e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Fri, 19 Jul 2013 14:11:56 +0200 Subject: [PATCH] eeepc: add support for eeepc-wmi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch provided by abc.mikey@gmail.com Signed-off-by: Jaroslav Škarvada --- profiles/functions | 2 ++ tuned/plugins/plugin_eeepc_she.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/profiles/functions b/profiles/functions index bdc55ef..a4df051 100644 --- a/profiles/functions +++ b/profiles/functions @@ -438,6 +438,8 @@ _eee_fsb_control() { echo $value > /sys/devices/platform/eeepc/she elif [ -e /sys/devices/platform/eeepc/cpufv ]; then echo $value > /sys/devices/platform/eeepc/cpufv + elif [ -e /sys/devices/platform/eeepc-wmi/cpufv ]; then + echo $value > /sys/devices/platform/eeepc-wmi/cpufv fi } diff --git a/tuned/plugins/plugin_eeepc_she.py b/tuned/plugins/plugin_eeepc_she.py index d1e8114..79a1ae2 100644 --- a/tuned/plugins/plugin_eeepc_she.py +++ b/tuned/plugins/plugin_eeepc_she.py @@ -13,6 +13,8 @@ class EeePCSHEPlugin(base.Plugin): def __init__(self, *args, **kwargs): self._control_file = "/sys/devices/platform/eeepc/cpufv" + if not os.path.isfile(self._control_file): + self._control_file = "/sys/devices/platform/eeepc-wmi/cpufv" if not os.path.isfile(self._control_file): raise exceptions.NotSupportedPluginException("Plugin is not supported on your hardware.") super(self.__class__, self).__init__(*args, **kwargs)