• File: plugin_eeepc_she.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyc
  • Date Modified: 09/21/2022 11:48 AM
  • File size: 3.3 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

\c@stddlmZddlmZddlZddlmZddlZejj	Z
dejfdYZdS(i(tbase(t
exceptionsiN(tcommandstEeePCSHEPlugincBsSeZdZdZedZdZdZdZdZ	dZ
RS(sh
	Plugin for tuning FSB (front side bus) speed on Asus EEE PCs with SHE (Super Hybrid Engine) support.
	cOszt|_d|_tjj|js6d|_ntjj|js]tjdntt	|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|jd|_ndS(N(RRRtdelete(RR((sB/usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyt_instance_cleanup&scCsc|jjd}||jdkr9|j|dn&||jdkr_|j|dndS(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|ddS(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