3
À<×eß ã @ s` d dl mZ d dlT ddlZddlmZ ddlZddlZddl Z ej
jƒ ZG dd„ dej
ƒZdS )é )Úbase)Ú*é N)Úcommandsc @ sj e Zd ZdZdd„ Zdd„ Zedd„ ƒZdd „ Zd
d„ Z dd
„ Z
eddd�dd„ ƒZe
dƒddd„ƒZdS )ÚVideoPlugina°
`video`::
Sets various powersave levels on video cards. Currently, only the
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.
+
.To set the powersave level for the Radeon video card to high
====
----
[video]
radeon_powersave=high
----
====
c C sT d| _ tƒ | _tƒ | _x0| jjdƒjdƒjddƒD ]}| jj|j ƒ q2W t
ƒ | _d S )NTÚdrmzcard*ZDEVTYPEZ drm_minor)Z_devices_supportedÚsetZ
_free_devicesZ_assigned_devicesÚ_hardware_inventoryZget_devicesZmatch_sys_nameZmatch_propertyÚaddZsys_namer Ú_cmd)ÚselfÚdevice© r ú"/usr/lib/python3.6/plugin_video.pyÚ
_init_devices- s zVideoPlugin._init_devicesc s ‡ fdd„|D ƒS )Nc s g | ]}ˆ j jd |ƒ‘qS )r )r Z
get_device)Ú.0Úx)r r r ú