VULN_CHECK_I913V6 Gi ddlmZddlddlZddlZddlZddlmZejjZ GddejZ y))base)*N)ACPI_DIRceZdZdZfdZedZdZdZedZ edZ e dd Z e dd d ZxZS) ACPIPlugina' Configures the ACPI driver. The only currently supported option is [option]`platform_profile`, which sets the ACPI platform profile sysfs attribute, a generic power/performance preference API for other drivers. Multiple profiles can be specified, separated by `|`. The first available profile is selected. .Selecting a platform profile ==== ---- [acpi] platform_profile=balanced|low-power ---- Using this option, *TuneD* will try to set the platform profile to `balanced`. If that fails, it will try to set it to `low-power`. ==== c,tt| |i|yN)superr__init__)selfargskwargs __class__s >/usr/lib/python3.12/site-packages/tuned/plugins/plugin_acpi.pyr zACPIPlugin.__init__ s D"D3F3c ddiSNplatform_profileclss r_get_config_optionszACPIPlugin._get_config_options#s d ##rc d|_d|_y)NTF)_has_static_tuning_has_dynamic_tuningr instances r_instance_initzACPIPlugin._instance_init's $(!&(rcyr rrs r_instance_cleanupzACPIPlugin._instance_cleanup+srcJtjjtdS)Nplatform_profile_choicesospathjoinrrs r_platform_profile_choices_pathz)ACPIPlugin._platform_profile_choices_path.s h : ;;rcJtjjtdSrr$rs r_platform_profile_pathz!ACPIPlugin._platform_profile_path2s h 2 33rrctjj|jstj dy|j dDcgc]}|j}}t|jj|jj }|D]{}||vr]|sWtjd|z|jj|j||rtjgnd|cStj!d|z}tj#dycc}w)N5ACPI platform_profile is not supported on this system|z Setting platform_profile to '%s'F)no_errorz+Requested platform_profile '%s' unavailablezDFailed to set platform_profile. Is the value in the profile correct?)r%r&isfiler*logdebugsplitstripset_cmd read_filer(info write_to_fileerrnoENOENTwarningerror)r profilesrsimremoveprofileavail_profiless r_set_platform_profilez ACPIPlugin._set_platform_profile6s 335 699 DE -5^^C-@ A-@'gmmo-@( Atyy**4+N+N+PQWWYZ.g  XX07:; YYT88:G!' ~U4 N;;rVs; ! jjnnBDBDr