404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.145.51.35: ~ $
3

�<�e��@sTddlmZddlmZddlZddlmZddlZejj	�Z
Gdd�dej�ZdS)�)�base)�
exceptions�N)�commandscsTeZdZdZ�fdd�Zedd��Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Z�ZS)�EeePCSHEPlugina�
	`eeepc_she`::
	
	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.
	csPt�|_d|_tjj|j�s"d|_tjj|j�s:tjd��tt	|�j
||�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__��&/usr/lib/python3.6/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'sz"EeePCSHEPlugin._get_config_optionscCs&d|_d|_d|_|jjdd�|_dS)NFT�load)Z_has_static_tuningZ_has_dynamic_tuning�	_she_mode�_monitors_repositoryZcreate�
_load_monitor)r�instancerrr�_instance_init0szEeePCSHEPlugin._instance_initcCs"|jdk	r|jj|j�d|_dS)N)rr�delete)rrrrr�_instance_cleanup6s
z EeePCSHEPlugin._instance_cleanupcCsH|jj�d}||jdkr*|j|d�n||jdkrD|j|d�dS)N�systemrZ	powersaver�normal)rZget_load�options�
_set_she_mode)rr�devicerrrr�_instance_update_dynamic;s
z'EeePCSHEPlugin._instance_update_dynamiccCs|j|d�dS)Nr!)r#)rrr$rrr�_instance_unapply_dynamicBsz(EeePCSHEPlugin._instance_unapply_dynamiccCsLt|jd|�}|j|krHtjd||f�|jj|jd|�||_dS)Nzshe_%sznew eeepc_she mode %s (%d) z%s)�intr"r�log�inforZ
write_to_filer)rrZnew_modeZnew_mode_numericrrrr#Fs

zEeePCSHEPlugin._set_she_mode)
�__name__�
__module__�__qualname__�__doc__r
�classmethodrrrr%r&r#�
__classcell__rr)rrr	s		r)
�rrZ
tuned.logsZtunedZtuned.utils.commandsrr	Zlogs�getr(ZPluginrrrrr�<module>s


Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 173 B 0644
__init__.cpython-36.pyc File 173 B 0644
base.cpython-36.opt-1.pyc File 21.13 KB 0644
base.cpython-36.pyc File 21.13 KB 0644
decorators.cpython-36.opt-1.pyc File 1.06 KB 0644
decorators.cpython-36.pyc File 1.06 KB 0644
exceptions.cpython-36.opt-1.pyc File 354 B 0644
exceptions.cpython-36.pyc File 354 B 0644
hotplug.cpython-36.opt-1.pyc File 4.23 KB 0644
hotplug.cpython-36.pyc File 4.23 KB 0644
plugin_acpi.cpython-36.opt-1.pyc File 3.35 KB 0644
plugin_acpi.cpython-36.pyc File 3.35 KB 0644
plugin_audio.cpython-36.opt-1.pyc File 4.03 KB 0644
plugin_audio.cpython-36.pyc File 4.03 KB 0644
plugin_bootloader.cpython-36.opt-1.pyc File 24.45 KB 0644
plugin_bootloader.cpython-36.pyc File 24.45 KB 0644
plugin_cpu.cpython-36.opt-1.pyc File 26.03 KB 0644
plugin_cpu.cpython-36.pyc File 26.06 KB 0644
plugin_disk.cpython-36.opt-1.pyc File 16.35 KB 0644
plugin_disk.cpython-36.pyc File 16.35 KB 0644
plugin_eeepc_she.cpython-36.opt-1.pyc File 3.43 KB 0644
plugin_eeepc_she.cpython-36.pyc File 3.43 KB 0644
plugin_irqbalance.cpython-36.opt-1.pyc File 4.51 KB 0644
plugin_irqbalance.cpython-36.pyc File 4.51 KB 0644
plugin_modules.cpython-36.opt-1.pyc File 5.45 KB 0644
plugin_modules.cpython-36.pyc File 5.45 KB 0644
plugin_mounts.cpython-36.opt-1.pyc File 5.5 KB 0644
plugin_mounts.cpython-36.pyc File 5.5 KB 0644
plugin_net.cpython-36.opt-1.pyc File 23.21 KB 0644
plugin_net.cpython-36.pyc File 23.21 KB 0644
plugin_rtentsk.cpython-36.opt-1.pyc File 1.34 KB 0644
plugin_rtentsk.cpython-36.pyc File 1.34 KB 0644
plugin_scheduler.cpython-36.opt-1.pyc File 53.44 KB 0644
plugin_scheduler.cpython-36.pyc File 53.44 KB 0644
plugin_script.cpython-36.opt-1.pyc File 4.26 KB 0644
plugin_script.cpython-36.pyc File 4.31 KB 0644
plugin_scsi_host.cpython-36.opt-1.pyc File 4.56 KB 0644
plugin_scsi_host.cpython-36.pyc File 4.56 KB 0644
plugin_selinux.cpython-36.opt-1.pyc File 3 KB 0644
plugin_selinux.cpython-36.pyc File 3 KB 0644
plugin_service.cpython-36.opt-1.pyc File 13.84 KB 0644
plugin_service.cpython-36.pyc File 13.84 KB 0644
plugin_sysctl.cpython-36.opt-1.pyc File 6.7 KB 0644
plugin_sysctl.cpython-36.pyc File 6.7 KB 0644
plugin_sysfs.cpython-36.opt-1.pyc File 3.64 KB 0644
plugin_sysfs.cpython-36.pyc File 3.64 KB 0644
plugin_systemd.cpython-36.opt-1.pyc File 5.92 KB 0644
plugin_systemd.cpython-36.pyc File 5.92 KB 0644
plugin_uncore.cpython-36.opt-1.pyc File 4.75 KB 0644
plugin_uncore.cpython-36.pyc File 4.75 KB 0644
plugin_usb.cpython-36.opt-1.pyc File 2.95 KB 0644
plugin_usb.cpython-36.pyc File 2.95 KB 0644
plugin_video.cpython-36.opt-1.pyc File 4.13 KB 0644
plugin_video.cpython-36.pyc File 4.13 KB 0644
plugin_vm.cpython-36.opt-1.pyc File 4.11 KB 0644
plugin_vm.cpython-36.pyc File 4.11 KB 0644
repository.cpython-36.opt-1.pyc File 1.87 KB 0644
repository.cpython-36.pyc File 1.92 KB 0644