JFIF$        dd7 

Viewing File: /usr/lib/python3.9/site-packages/tuned/plugins/__pycache__/plugin_eeepc_she.cpython-39.opt-1.pyc

a

���h��@sTddlmZddlmZddlZddlmZddlZej�	�Z
Gdd�dej�ZdS)�)�base)�
exceptions�N)�commandscs`eZdZdZ�fdd�Zedd��Zdd�Zdd	�Z�fd
d�Z	dd
�Z
dd�Zdd�Z�Z
S)�EeePCSHEPlugina�
	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.
	csTt�|_d|_tj�|j�s"d|_tj�|j�s:t�d��tt	|�j
|i|��dS)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�isfilerZNotSupportedPluginException�superr�__init__)�self�args�kwargs��	__class__��B/usr/lib/python3.9/site-packages/tuned/plugins/plugin_eeepc_she.pyr
s
zEeePCSHEPlugin.__init__cCsddddd�S)Ng333333�?g�������?�r)�load_threshold_normal�load_threshold_powersaveZ
she_powersaveZ
she_normalr)rrrr�_get_config_options%s
�z"EeePCSHEPlugin._get_config_optionscCsd|_d|_d|_d|_dS)NFT)Z_has_static_tuningZ_has_dynamic_tuning�	_she_mode�
_load_monitor�r�instancerrr�_instance_init.szEeePCSHEPlugin._instance_initcCs"|jdur|j�|j�d|_dS)N)r�_monitors_repository�deleterrrr�_instance_cleanup4s
z EeePCSHEPlugin._instance_cleanupcs$tt|��|�|j�dd�|_dS)N�load)rr�_instance_init_dynamicrZcreaterrrrrr"9sz%EeePCSHEPlugin._instance_init_dynamiccCsH|j��d}||jdkr*|�|d�n||jdkrD|�|d�dS)N�systemrZ	powersaver�normal)rZget_load�options�
_set_she_mode)rr�devicer!rrr�_instance_update_dynamic=s
z'EeePCSHEPlugin._instance_update_dynamiccCs|�|d�dS)Nr$)r&)rrr'rrr�_instance_unapply_dynamicDsz(EeePCSHEPlugin._instance_unapply_dynamiccCsLt|jd|�}|j|krHt�d||f�|j�|jd|�||_dS)Nzshe_%sznew eeepc_she mode %s (%d) z%s)�intr%r�log�inforZ
write_to_filer)rrZnew_modeZnew_mode_numericrrrr&Hs

zEeePCSHEPlugin._set_she_mode)�__name__�
__module__�__qualname__�__doc__r
�classmethodrrr r"r(r)r&�
__classcell__rrrrr	s	
r)
�rrZ
tuned.logsZtunedZtuned.utils.commandsrr	Zlogs�getr+ZPluginrrrrr�<module>s

Back to Directory  nL+D550H?Mx ,D"v]qv;6*Zqn)ZP0!1 A "#a$2Qr D8 a Ri[f\mIykIw0cuFcRı?lO7к_f˓[C$殷WF<_W ԣsKcëIzyQy/_LKℂ;C",pFA:/]=H  ~,ls/9ć:[=/#f;)x{ٛEQ )~ =𘙲r*2~ a _V=' kumFD}KYYC)({ *g&f`툪ry`=^cJ.I](*`wq1dđ#̩͑0;H]u搂@:~וKL Nsh}OIR*8:2 !lDJVo(3=M(zȰ+i*NAr6KnSl)!JJӁ* %݉?|D}d5:eP0R;{$X'xF@.ÊB {,WJuQɲRI;9QE琯62fT.DUJ;*cP A\ILNj!J۱+O\͔]ޒS߼Jȧc%ANolՎprULZԛerE2=XDXgVQeӓk yP7U*omQIs,K`)6\G3t?pgjrmۛجwluGtfh9uyP0D;Uڽ"OXlif$)&|ML0Zrm1[HXPlPR0'G=i2N+0e2]]9VTPO׮7h(F*癈'=QVZDF,d߬~TX G[`le69CR(!S2!P <0x<!1AQ "Ra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