관리-도구
편집 파일: plugin_eeepc_she.cpython-36.opt-1.pyc
3 �<�e� � @ sT d dl mZ d dl mZ ddlZddlmZ ddlZejj � Z G dd� dej�ZdS )� )�base)� exceptions� N)�commandsc sT e Zd ZdZ� fdd�Zedd� �Zdd� Zdd � Zd d� Z dd � Z dd� Z� ZS )�EeePCSHEPlugina� `eeepc_she`:: Dynamically sets the front-side bus (FSB) speed according to the CPU load. This feature can be found on some netbooks and is also known as the Asus Super Hybrid Engine. If the CPU load is lower or equal to the value specified by the [option]`load_threshold_powersave` option, the plug-in sets the FSB speed to the value specified by the [option]`she_powersave` option. If the CPU load is higher or equal to the value specified by the [option]`load_threshold_normal` option, it sets the FSB speed to the value specified by the [option]`she_normal` option. Static tuning is not supported and the plug-in is transparently disabled if the hardware support for this feature is not detected. NOTE: For details about the FSB frequencies and corresponding values, see link:https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-platform-eeepc-laptop[the kernel documentation]. The provided defaults should work for most users. c sP t � | _d| _tjj| j�s"d| _tjj| j�s:tjd��tt | �j ||� d S )Nz!/sys/devices/platform/eeepc/cpufvz%/sys/devices/platform/eeepc-wmi/cpufvz)Plugin is not supported on your hardware.)r �_cmd� _control_file�os�path�isfiler ZNotSupportedPluginException�superr �__init__)�self�args�kwargs)� __class__� �&/usr/lib/python3.6/plugin_eeepc_she.pyr s zEeePCSHEPlugin.__init__c C s ddddd�S )Ng333333�?g�������?� r )�load_threshold_normal�load_threshold_powersaveZ she_powersaveZ she_normalr )r r r r �_get_config_options'