Посмотрите состояния и регуляторы. Основные: Master, PCM, Front.
Сохраняется ли в:
Debian7 alsa:
$ less /var/lib/alsa/asound.state
ALT Linux alsa/p7
$ less /var/lib/alsa/controlC0
Названия разные, но суть и содержание одно и то же.
Можно подглядывать сюда об управлении через amixer:
Суть проблемы аналогична:
- при подключении наушников колонки не отключаются (или баг в snd_hda модуле или аппаратно не реализовано, - не курилось)
- при подключении наушников в HD Audio Front Panel на системном блоке нет звука в наушниках.
Подробнее об amixer: Решаем проблему
Сугубо консольная вариация - ностальгия по 90-тым...
Запускаем alsamixer и смотрим - v1.0.21.
- Нет регулятора 'PCM Playback Volume' и непонятно на какой уровень он выставлен
- 'Headphone Playback Switch' в alsamixer не подсвечен. Значит выключен.
Выставляем в alsamixer нормальные уровни звука регуляторами из того что есть и смотрим дальше.
А что мы собственно имеем?
-----------------------------------------------------------------
Кто обеспечивает звук на плате?
$ lspci -vv | less
-----------------------------------------------------------------
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
Subsystem: ASUSTeK Computer Inc. P5B
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <tabort- <mabort-="">SERR- <perr- intx-="" latency:="" 0,="" cache="" line="" size:="" 32="" bytes="" interrupt:="" pin="" a="" routed="" to="" irq="" 22="" region="" 0:="" memory="" at="" febf8000="" (64-bit,="" non-prefetchable)="" [size="16K]" capabilities:="" <access="" denied="">
Kernel driver in use: HDA Intel
-----------------------------------------------------------------
Информация о mixer устройстве:
$ amixer info
-----------------------------------------------------------------
Card default 'Intel'/'HDA Intel at 0xfebf8000 irq 22'
Mixer name : 'Analog Devices AD1988'
Components : 'HDA:11d41988,104381e1,00100400'
Controls : 48
Simple ctrls : 26
Для тонких настроек есть неплохая консольная, непрозрачно понятная программа amixer с очень высокой детализацией настроек.
Смотрим для начала:
-----------------------------------------------------------------
Информация о mixer устройстве:
$ amixer info
-----------------------------------------------------------------
Card default 'Intel'/'HDA Intel at 0xfebf8000 irq 22'
Mixer name : 'Analog Devices AD1988'
Components : 'HDA:11d41988,104381e1,00100400'
Controls : 48
Simple ctrls : 26
А какими настройками можно воспользоваться в amixer?
Спойлер
-----------------------------------------------------------------
Полный список управляющих настроек карты
$ amixer controls
-----------------------------------------------------------------
numid=47,iface=MIXER,name='Master Playback Switch'
numid=46,iface=MIXER,name='Master Playback Volume'
numid=11,iface=MIXER,name='Headphone Playback Switch'
numid=48,iface=MIXER,name='PCM Playback Volume'
numid=23,iface=MIXER,name='Front Mic Boost'
numid=16,iface=MIXER,name='Front Mic Playback Switch'
numid=15,iface=MIXER,name='Front Mic Playback Volume'
numid=6,iface=MIXER,name='Front Playback Switch'
numid=1,iface=MIXER,name='Front Playback Volume'
numid=7,iface=MIXER,name='Surround Playback Switch'
numid=2,iface=MIXER,name='Surround Playback Volume'
numid=8,iface=MIXER,name='Center Playback Switch'
numid=3,iface=MIXER,name='Center Playback Volume'
numid=9,iface=MIXER,name='LFE Playback Switch'
numid=4,iface=MIXER,name='LFE Playback Volume'
numid=18,iface=MIXER,name='Line Playback Switch'
numid=17,iface=MIXER,name='Line Playback Volume'
numid=14,iface=MIXER,name='CD Playback Switch'
numid=13,iface=MIXER,name='CD Playback Volume'
numid=24,iface=MIXER,name='Mic Boost'
numid=20,iface=MIXER,name='Mic Playback Switch'
numid=19,iface=MIXER,name='Mic Playback Volume'
numid=12,iface=MIXER,name='Mono Playback Switch'
numid=26,iface=MIXER,name='Capture Switch'
numid=28,iface=MIXER,name='Capture Switch',index=1
numid=30,iface=MIXER,name='Capture Switch',index=2
numid=25,iface=MIXER,name='Capture Volume'
numid=27,iface=MIXER,name='Capture Volume',index=1
numid=29,iface=MIXER,name='Capture Volume',index=2
numid=41,iface=MIXER,name='IEC958 Default PCM Playback Switch'
numid=37,iface=MIXER,name='IEC958 Playback Con Mask'
numid=38,iface=MIXER,name='IEC958 Playback Pro Mask'
numid=39,iface=MIXER,name='IEC958 Playback Default'
numid=35,iface=MIXER,name='IEC958 Playback Source'
numid=40,iface=MIXER,name='IEC958 Playback Switch'
numid=34,iface=MIXER,name='IEC958 Playback Volume'
numid=43,iface=MIXER,name='IEC958 Capture Default'
numid=42,iface=MIXER,name='IEC958 Capture Switch'
numid=36,iface=MIXER,name='IEC958 Capture Volume'
numid=22,iface=MIXER,name='Analog Mix Playback Switch'
numid=21,iface=MIXER,name='Analog Mix Playback Volume'
numid=45,iface=MIXER,name='Beep Playback Switch'
numid=44,iface=MIXER,name='Beep Playback Volume'
numid=31,iface=MIXER,name='Input Source'
numid=32,iface=MIXER,name='Input Source',index=1
numid=33,iface=MIXER,name='Input Source',index=2
numid=10,iface=MIXER,name='Side Playback Switch'
numid=5,iface=MIXER,name='Side Playback Volume'
Выясняем в каком состоянии они находятся?
(в выводе они уже находятся в нужном мне состоянии)
Спойлер
-----------------------------------------------------------------
Подробный вывод о настройках
$ amixer scontents | less
-----------------------------------------------------------------
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 39
Mono: Playback 27 [69%] [-18.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pswitch
Playback channels: Front Left - Front Right
Mono:
Front Left: Playback [on]
Front Right: Playback [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 231 [91%] [-4.80dB]
Front Right: Playback 231 [91%] [-4.80dB]
Simple mixer control 'Front',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 39
Mono:
Front Left: Playback 38 [97%] [-1.50dB] [on]
Front Right: Playback 38 [97%] [-1.50dB] [on]
Simple mixer control 'Front Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [on]
Front Right: Playback 0 [0%] [-34.50dB] [on]
Simple mixer control 'Front Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%]
Front Right: 0 [0%]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 39
Mono:
Front Left: Playback 0 [0%] [-58.50dB] [off]
Front Right: Playback 0 [0%] [-58.50dB] [off]
Simple mixer control 'Center',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 39
Mono: Playback 0 [0%] [-58.50dB] [off]
Simple mixer control 'LFE',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 39
Mono: Playback 0 [0%] [-58.50dB] [off]
Simple mixer control 'Side',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 39
Mono:
Front Left: Playback 0 [0%] [-58.50dB] [on]
Front Right: Playback 0 [0%] [-58.50dB] [on]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [on]
Front Right: Playback 0 [0%] [-34.50dB] [on]
Simple mixer control 'CD',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [on]
Front Right: Playback 0 [0%] [-34.50dB] [on]
Simple mixer control 'Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%]
Front Right: 0 [0%]
Simple mixer control 'IEC958',0
Capabilities: pvolume cvolume pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 39 Capture 0 - 31
Front Left: Playback 0 [0%] [-58.50dB] [on] Capture 23 [74%] [0.00dB] [off]
Front Right: Playback 0 [0%] [-58.50dB] [on] Capture 23 [74%] [0.00dB] [off]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Playback Source',0
Capabilities: enum
Items: 'PCM' 'ADC1' 'ADC2' 'ADC3'
Item0: 'PCM'
Simple mixer control 'Beep',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 15
Mono: Playback 0 [0%] [-45.00dB] [off]
Simple mixer control 'Mono',0
Capabilities: pswitch
Playback channels: Front Left - Front Right
Mono:
Front Left: Playback [on]
Front Right: Playback [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 54
Front Left: Capture 39 [72%] [0.00dB] [off]
Front Right: Capture 39 [72%] [0.00dB] [off]
Simple mixer control 'Capture',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 54
Front Left: Capture 39 [72%] [0.00dB] [off]
Front Right: Capture 39 [72%] [0.00dB] [off]
Simple mixer control 'Capture',2
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 54
Front Left: Capture 39 [72%] [0.00dB] [off]
Front Right: Capture 39 [72%] [0.00dB] [off]
Simple mixer control 'Analog Mix',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 30 [97%] [-1.50dB] [on]
Front Right: Playback 30 [97%] [-1.50dB] [on]
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Front Mic' 'Line' 'Mic' 'CD' 'Mix'
Item0: 'Front Mic'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Front Mic' 'Line' 'Mic' 'CD' 'Mix'
Item0: 'Front Mic'
Simple mixer control 'Input Source',2
Capabilities: cenum
Items: 'Front Mic' 'Line' 'Mic' 'CD' 'Mix'
Item0: 'Front Mic'
alsamixer уже подсказал, что в нём нет регулятора 'PCM Playback Volume' и выключен 'Headphone Playback Switch'
Устанавливаем регулятор 'PCM Playback Volume' на нужный уровень:
-----------------------------------------------------------------
Выставить уровень PCM Playback Volume
[см. вывод 'amixer contents']
-----------------------------------------------------------------
$ amixer cset numid=48,iface=MIXER,name='PCM Playback Volume' 248,248
numid=48,iface=MIXER,name='PCM Playback Volume'
; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
: values=248,248
| dBscale-min=-51.00dB,step=0.20dB,mute=0
В данном случае для (чтобы не делать длинный вывод):
$ amixer contents | grep numid=48
numid=48,iface=MIXER,name='PCM Playback Volume'
Либо короче по уникальным именам:
$ amixer cset numid=48 248,248
$ amixer cset name='PCM Playback Volume' 248,248
Включаем 'Headphone Playback Switch', т.е. выход звука на HD Audio Front Panel - передняя панель системного блока:
-----------------------------------------------------------------
Команды управления включением/выключением звука
Headphone - HD Audio Front Panel системного блока
[см. вывод 'amixer contents']
-----------------------------------------------------------------
Включить Headphone Playback - HD Audio Front Panel:
$ amixer cset numid=11,iface=MIXER,name='Headphone Playback Switch' on,on
numid=11,iface=MIXER,name='Headphone Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
Выключить Headphone Playback - HD Audio Front Panel:
$ amixer cset numid=11,iface=MIXER,name='Headphone Playback Switch' off,off
numid=11,iface=MIXER,name='Headphone Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=off,off
Подключаем наушники к выходу для головных телефонов на передней панели системного блока.
Всё работает.
Продолжаем жить в консоли дальше...
...или в GUI воспользуйтесь аналогичными настройками.
Например в KMix:
- регулятор PCM
- KMix => вкладка Выключатели => Наушники
Консольный вариант приведён для любителей shell, а также для тех у кого слетели Х-сы, - а фильм посмотреть хочется, да и музыку послушать тоже, под консольные cacafire или cacademo (пакет caca-utils), - и без Х-сов жизнь всё ж таки продолжается...