Server IP : 23.254.227.96 / Your IP : 216.73.216.46 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.6/site-packages/tuned/plugins/__pycache__/ |
Upload File : |
3 ��c� � @ sf d dl mZ d dlT ddlZddlmZ ddlZddlZddl Z ej j� Ze� Z G dd� dej�ZdS )� )�hotplug)�*� N)�commandsc @ s� e Zd ZdZdd� Zdd� Zdd� Zdd � Zed d� �Z dd � Z dd� Zeddd�dd� �Z ed�ddd��Zeddd�dd� �Zed�ddd��ZdS ) �AudioPlugina� `audio`:: Sets audio cards power saving options. The plug-in sets the auto suspend timeout for audio codecs to the value specified by the [option]`timeout` option. + Currently, the `snd_hda_intel` and `snd_ac97_codec` codecs are supported and the [option]`timeout` value is in seconds. To disable auto suspend for these codecs, set the [option]`timeout` value to `0`. To enforce the controller reset, set the option [option]`reset_controller` to `true`. Note that power management is supported per module. Hence, the kernel module names are used as device names. + .Set the timeout value to 10s and enforce the controller reset ==== ---- [audio] timeout=10 reset_controller=true ---- ==== c C sT d| _ t� | _t� | _x8| jjd�jd�D ]"}| j|�}|dkr*| jj|� q*W d S )NTZsoundzcard*� snd_hda_intel�snd_ac97_codec)r r ) Z_devices_supported�setZ_assigned_devicesZ _free_devicesZ_hardware_inventoryZget_devicesZmatch_sys_name�_device_module_name�add)�self�deviceZmodule_name� r �"/usr/lib/python3.6/plugin_audio.py� _init_devices'