Поддержка > Аудио

Настройка горячих клавиш (управление громкостью) в Runtu XFCE 14.04

<< < (2/2)

FSnow:

--- Код: ---amixer scontrols
--- Конец кода ---
что выдает?

Irshat:

--- Цитата: FSnow от Ноябрь 17, 2014, 14:15:19 ---
--- Код: ---amixer scontrols
--- Конец кода ---
что выдает?

--- Конец цитаты ---

amixer scontrols выдает:

--- Код: ---Simple mixer control 'IEC958',0
--- Конец кода ---
Попробовал за место мастера поставить IEC958, все равно не видит.

Irshat:
В общем на досуге тестировал другие дистрибутивы на XFCE: Debian, RFRemix и что странно, там команды горячих клавиш нормально срабатывают.
На таких командах:

--- Код: ---amixer set Master 10%+ -q
amixer set Master 10%- -q
amixer set Master toggle -q

--- Конец кода ---
Ладно я бы подумал, что RFRemix не из нашего огорода и там возможно, есть такая функция. Но Debian то можно сказать свой.  ???
На обоих дистрах одни и те же команды нормально срабатывают. А на Рунту и в Убунту нет.  :-\
Думается мне, что это из-за ядра, так как их ядра по amixer scontrols выдает Master
а наш показывает пресловутый IEC958, из-за которго у многих такая же проблема.

helboof:
Может, конечно, уже слишком поздно :), но хотя бы для себя приведу (нагло скопипастю) сюда найденное решение на буржуйском форуме убунты:
https://askubuntu.com/questions/97936/terminal-command-to-set-audio-volume

__________________________________
 92
down vote
   

Parts of this answer comes from Setting microphone input volume using the command line?, placed here for your convenience.

Increase volume by 5%

amixer -D pulse sset Master 5%+

Decrease volume by 5%

amixer -D pulse sset Master 5%-

Set volume to 50%

amixer -D pulse sset Master 50%

    If you are using ALSA, amixer can be helpful for your script programming.

    When dropping the amixer --help command in a terminal you will see something like this:

    enter image description here

    Depending on your soundcard, levels may be different than mine, but you can use alsamixer in the terminal in order to check which levels and which features in your sound card you can call in a command to set the volume as you wish.

    enter image description here

    In my example, with my principal sound card (I have 2: the embedded and a PCI audio card), levels are from 0 to 100, this way I can change the volume of a desired input/output in my soundcard by dropping in a terminal the next command:

    amixer -c 0 set Front 50DB
    amixer -c 0 set Front 64DB

    In the first command, the result will set the Front panel output to 78% level and the second one will set the Front panel output to 100% level.

    In order to gather information related to your mixer controls, drop the amixer command with no parameters and you will get a list. Or indicate which audio device you wish to see a list of controls with amixer -c X (where "X" is the number of your audio device).

    BTW: Remember that DB values are calculated logarithmically and not linearly.

Remember that this command allow you to control parameters on whatever sound device you are currently using.

Good luck!
____________________________________________________

kompilainenn:
>Good luck!

Thank you very much! But it is Russian forum. Please translate your post to Russian, that people don't will curse you

Навигация

[0] Главная страница сообщений

[*] Предыдущая страница

Перейти к полной версии