MINI MINI MANI MO

Path : /lib/python2.7/site-packages/tuned/plugins/
File Upload :
Current File : //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

OHA YOOOO