+
     Gi	  c                   s    ^RI Ht ^RI5 ^ RIt^ RIt^ RIt^ RIHt ]P                  P                  4       t ! R R]P                  4      tR# )i   )base)Z*N)ACPI_DIRc                   s   a a ] tR t^t oRtV 3R lt]R 4       tR tR t	]R 4       t
]R 4       t]! R4      R	 4       t]! R4      RR
 l4       tRtVtV ;t# )
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                s0   < \         \        V `
  ! V/ VB  R # N)Zsuperr   __init__)selfZargsZkwargs	__class__s   &*,>/usr/lib/python3.14/site-packages/tuned/plugins/plugin_acpi.pyr   ZACPIPlugin.__init__    s    
D"D3F3    c                s
    R R/# )platform_profileN Zcls   &r   _get_config_optionsZACPIPlugin._get_config_options#   s    
d	##r   c                s"    R Vn         RVn        R# )TFN)Z_has_static_tuningZ_has_dynamic_tuningr   instance   &&r   _instance_initZACPIPlugin._instance_init'   s     $(!&(r   c                s    R # r   r
   r   r   r   _instance_cleanupZACPIPlugin._instance_cleanup+   s    r   c                J    \         P                  P                  \        R 4      # )Zplatform_profile_choicesospathZjoinr   r   r   r   _platform_profile_choices_pathZ)ACPIPlugin._platform_profile_choices_path.   s    	h :	;;r   c                r   )r	   r   r   r   r   _platform_profile_pathZ!ACPIPlugin._platform_profile_path2   s    	h 2	33r   r	   c                s   \         P                  P                  V P                  4       4      '       g   \        P                  R 4       R# VP                  R4       Uu. uF  qUP                  4       NK  	  pp\        V P                  P                  V P                  4       4      P                  4       4      pV F  pWV9   dn   V'       gb   \        P                  RV,          4       V P                  P                  V P                  4       TV'       d   \        P                  .MRR7       Vu # \        P!                  RV,          4       K  	  \        P#                  R4       R# u upi )5ACPI platform_profile is not supported on this systemNZ|z Setting platform_profile to '%s'F)Zno_errorz+Requested platform_profile '%s' unavailablezDFailed to set platform_profile. Is the value in the profile correct?)r   r   isfiler   logdebugZsplitstripZset_cmd	read_filer   ZinfoZwrite_to_fileerrnoZENOENTZwarningZerror)r   Zprofilesr   ZsimZremoveZprofileZavail_profiless   &&&&&  r   _set_platform_profileZ ACPIPlugin._set_platform_profile6   s   	335	6	699DE
-5^^C-@A-@'mmo-@(Atyy**4+N+N+PQWWYZ.gXX07:;	YYT88:G!'~U  4N;;<wFG  ))RS	 Bs   E'c                s   \         P                  P                  V P                  4       4      '       g   \        P                  R 4       R# V P                  P                  V P                  4       4      P                  4       # )r   N)	r   r   r   r   r   r   r   r   r   )r   r   Zignore_missings   &&&r   _get_platform_profileZ ACPIPlugin._get_platform_profileH   sU    	335	6	699DE
			T88:	;	A	A	CCr   r
   )F)Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r   Zclassmethodr   r   r   r   r   Zcommand_setr!   Zcommand_getr"   Z__static_attributes__Z__classdictcell__Z__classcell__)r   Z__classdict__s   @@r   r   r      s     (4 $ $' < < 4 4  ! ""  !D "D Dr   r   )Z r    Z
decoratorsr   r    Z
tuned.logsZtunedZtuned.constsr   ZlogsZgetr   ZPluginr   r
   r   r   <module>r#      s;      	   !jjnnBD BDr   