a ]i @ s` d dl mZ d dlT ddlZddlmZ ddlZddlZddl Z ej ZG dd dej ZdS ) )base)* N)commandsc s e Zd ZdZ fddZdd Zdd Zedd Zd d Z dd Z dd ZdddZe ddddd Zedd ddZe ddddd Zedd!ddZ ZS )"VideoPluginaf Sets various power saving features on video cards. Radeon cards are supported. The powersave level can be specified by using the [option]`radeon_powersave` option. Supported values are: * `default` * `auto` * `low` * `mid` * `high` * `dynpm` * `dpm-battery` * `dpm-balanced` * `dpm-perfomance` For additional detail, see link:https://www.x.org/wiki/RadeonFeature/#kmspowermanagementoptions[KMS Power Management Options]. NOTE: This plug-in is experimental and the option might change in future releases. .Setting powersave level for the Radeon video card to high ==== ---- [video] radeon_powersave=high ---- ==== Mobile hardware with amdgpu driven eDP panels can be configured with the [option]`panel_power_savings` option. This accepts a value range from 0 to 4, where 4 is the highest power savings but will trade off color accuracy. c s t t| j|i | d S N)superr __init__)selfargskwargs __class__ >/usr/lib/python3.9/site-packages/tuned/plugins/plugin_video.pyr / s zVideoPlugin.__init__c C sn d| _ t | _t | _| jddD ]8}| |j}|D ]"}t j || r<| j|j q