KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : andertr9 ( 1047)
PHP Version : 8.2.18
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/tuned/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyc
�
��\c@stddlmZddlmZddlZddlmZddlZejj	�Z
dejfd��YZdS(i(tbase(t
exceptionsi����N(tcommandstEeePCSHEPlugincBsSeZdZd�Zed��Zd�Zd�Zd�Zd�Z	d�Z
RS(sh
	Plugin for tuning FSB (front side bus) speed on Asus EEE PCs with SHE (Super Hybrid Engine) support.
	cOszt�|_d|_tjj|j�s6d|_ntjj|j�s]tjd��ntt	|�j
||�dS(Ns!/sys/devices/platform/eeepc/cpufvs%/sys/devices/platform/eeepc-wmi/cpufvs)Plugin is not supported on your hardware.(Rt_cmdt
_control_filetostpathtisfileRtNotSupportedPluginExceptiontsuperRt__init__(tselftargstkwargs((sB/usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyRs	cCs idd6dd6dd6dd6S(	Ng333333�?tload_threshold_normalg�������?tload_threshold_powersaveit
she_powersaveit
she_normal((R((sB/usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyt_get_config_optionss
cCs7t|_t|_d|_|jjdd�|_dS(Ntload(	tFalset_has_static_tuningtTruet_has_dynamic_tuningtNonet	_she_modet_monitors_repositorytcreatet
_load_monitor(Rtinstance((sB/usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyt_instance_init s			cCs2|jdk	r.|jj|j�d|_ndS(N(RRRtdelete(RR((sB/usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyt_instance_cleanup&scCsc|jj�d}||jdkr9|j|d�n&||jdkr_|j|d�ndS(NtsystemRt	powersaveRtnormal(Rtget_loadtoptionst
_set_she_mode(RRtdeviceR((sB/usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyt_instance_update_dynamic+s
cCs|j|d�dS(NR$(R'(RRR(((sB/usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyt_instance_unapply_dynamic2scCsgt|jd|�}|j|krctjd||f�|jj|jd|�||_ndS(Nsshe_%ssnew eeepc_she mode %s (%d) s%s(tintR&RtlogtinfoRt
write_to_fileR(RRtnew_modetnew_mode_numeric((sB/usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyR'6s
(t__name__t
__module__t__doc__RtclassmethodRRR!R)R*R'(((sB/usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyR	s							(
tRRt
tuned.logsttunedttuned.utils.commandsRRtlogstgetR,tPluginR(((sB/usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyt<module>s

Anon7 - 2021