Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /usr/lib/python2.7/site-packages/tuned/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyo
�
��\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

ZeroDay Forums Mini