403 Forbidden


Disable Functions:
Path : /lib/python2.7/site-packages/tuned/plugins/
File Upload :
Command :
Current File : //lib/python2.7/site-packages/tuned/plugins/plugin_video.pyc

�
��\c@szddlmZddlTddlZddlmZddlZddlZej	j
�Zdejfd��YZ
dS(i(tbase(t*i����N(tcommandstVideoPlugincBs}eZdZd�Zd�Zed��Zd�Zd�Zd�Z	e
dde�d	��Ze
d�ed
��ZRS(s?
	Plugin for tuning powersave options for some graphic cards.
	cCsvt|_t�|_t�|_xB|jjd�jd�jdd�D]}|jj	|j
�qIWt�|_dS(Ntdrmscard*tDEVTYPEt	drm_minor(
tTruet_devices_supportedtsett
_free_devicest_assigned_devicest_hardware_inventorytget_devicestmatch_sys_nametmatch_propertytaddtsys_nameRt_cmd(tselftdevice((s>/usr/lib/python2.7/site-packages/tuned/plugins/plugin_video.pyt
_init_devicess	.cCs&g|D]}|jjd|�^qS(NR(Rt
get_device(Rtdevicestx((s>/usr/lib/python2.7/site-packages/tuned/plugins/plugin_video.pyt_get_device_objectsscCsidd6S(Ntradeon_powersave(tNone(R((s>/usr/lib/python2.7/site-packages/tuned/plugins/plugin_video.pyt_get_config_optionsscCst|_t|_dS(N(tFalset_has_dynamic_tuningRt_has_static_tuning(Rtinstance((s>/usr/lib/python2.7/site-packages/tuned/plugins/plugin_video.pyt_instance_init#s	cCsdS(N((RR ((s>/usr/lib/python2.7/site-packages/tuned/plugins/plugin_video.pyt_instance_cleanup'scCs%id|d6d|d6d|d6S(Ns%/sys/class/drm/%s/device/power_methodtmethods&/sys/class/drm/%s/device/power_profiletprofiles(/sys/class/drm/%s/device/power_dpm_statet	dpm_state((RR((s>/usr/lib/python2.7/site-packages/tuned/plugins/plugin_video.pyt_radeon_powersave_files*sRt
per_devicecCst|j|�}ttjdd|��j�}tjj|d�sd|sdtj	d|�dSnx	|D]}|dkr�|sl|jj|dd
�r�|jj|d
|�r�|Sqlqk|dkr�|sl|jj|dd�r�dSqlqk|dkrR|sl|t
d�}|jj|dd�rO|jj|d|�rO|Sqlqk|shtj	d�ndSqkWdS(Ns#(\s*:\s*)|(\s+)|(\s*;\s*)|(\s*,\s*)t R#s)radeon_powersave is not supported on '%s'tdefaulttautotlowtmidthighR$tdynpmsdpm-batterysdpm-balancedsdpm-performancesdpm-tdpmR%s$Invalid option for radeon_powersave.(sdefaultR*R+R,R-(sdpm-batterysdpm-balancedsdpm-performance(R&tstrtretsubtsplittostpathtexiststlogtwarnRRt
write_to_filetlen(RtvalueRtsimt	sys_filestvatvtstate((s>/usr/lib/python2.7/site-packages/tuned/plugins/plugin_video.pyt_set_radeon_powersave1s4!



cCs�|j|�}|jj|dd|�j�}|dkrW|jj|d�j�S|dkrg|S|dkr�d|jj|d�j�SdSdS(NR#tno_errorR$R.R/sdpm-R%(R&Rt	read_filetstripR(RRtignore_missingR=R#((s>/usr/lib/python2.7/site-packages/tuned/plugins/plugin_video.pyt_get_radeon_powersavePs"(t__name__t
__module__t__doc__RRtclassmethodRR!R"R&tcommand_setRRAtcommand_getRRF(((s>/usr/lib/python2.7/site-packages/tuned/plugins/plugin_video.pyR
s						(tRt
decoratorst
tuned.logsttunedttuned.utils.commandsRR4R1tlogstgetR7tPluginR(((s>/usr/lib/python2.7/site-packages/tuned/plugins/plugin_video.pyt<module>s


404 Not Found
[ LogOut ]