Нет звука в наушниках. Автоматическое переключение на наушники.

Работаем с Linux Mint
Ответить
Аватара пользователя
admin
Администратор
Сообщения: 1103
Зарегистрирован: 18 янв 2012, 01:25
Откуда: Екатеринбург
Контактная информация:

Нет звука в наушниках. Автоматическое переключение на наушники.

Сообщение admin » 04 авг 2019, 13:03

Нужно отредактировать файл "analog-output-lineout.conf".

В терменале:

Код: Выделить всё

sudo nano /usr/share/pulseaudio/alsa-mixer/paths/analog-output-lineout.conf

и поменять в секции "Element Desktop Speaker" оба значения на "on"

Код: Выделить всё

[Element Desktop Speaker]
switch = on
volume = on
Сохранить файл (Ctrl+S). Перезагрузить систему.

Взято тут

Аватара пользователя
admin
Администратор
Сообщения: 1103
Зарегистрирован: 18 янв 2012, 01:25
Откуда: Екатеринбург
Контактная информация:

Re: Нет звука в наушниках. Автоматическое переключение на наушники.

Сообщение admin » 20 дек 2020, 09:36

Если проблема осталась, то попробуйте установить pavucontrol набрав в терминале:

Код: Выделить всё

sudo apt install pavucontrol
Далее запустить pavucontrol, набрав в терминале:

Код: Выделить всё

pavucontrol
и выбрать в графическом редакторе устройство вывода:

Код: Выделить всё

Конфигурация -> Встроенное аудио -> Аналоговый стерео выход 
Выбрал "Аналоговый стерео выход" т.к. у меня аудиовыход с материнской платы. Выбирайте железо к которому Вы подключились. Там выбора очень много, если что - перебирайте.
далее вкладка:

Код: Выделить всё

Устройства Вывода -> Аналоговый выход
И вуаля :-|-:
Как то так)
У меня работает :-):

P.S. Если нет звука, то попробуйте переустановить alsa и pulseaudio и повторить все, начиная с первого поста.

a3nd25
Сообщения: 2
Зарегистрирован: 18 июн 2023, 18:53

Re: Нет звука в наушниках. Автоматическое переключение на наушники.

Сообщение a3nd25 » 18 июн 2023, 19:08

Если нету звука в наушниках и не работает переключатель на наушники в linux mint 19.3 то необходимо редактировать файлы по пути /usr/share/pulseaudio/alsa-mixer/paths;
analog-output-headphones.conf analog-output-headphones-2.conf

В файле analog-output-headphones.conf:[/size]

Удаляем:
;--
[Jack Front Headphone,1]
required-any = any

[Jack Front Headphone Surround]
required-any = any



добавляем:

[Jack Headphone - Output]
required-any = any


; This path is intended to control the first headphones, not
; the second headphones. But it should not hurt if we leave the second
; headphone jack enabled nonetheless.
[Element Headphone,1]
switch = mute
volume = zero



Заменяем:

[Element Front]
switch = mute
volume = zero

на

; On some machines, the Front Volume Control is shared by Headphone and Lineout,
; or Headphone and Speaker, but they have independent Volume Switch. Here only
; use switch to mute Lineout or Speaker.
[Element Front]
switch = off
volume = zero




В файле analog-output-headphones-2.conf:[/size]

добавляем:

; HP EliteDesk 800 SFF Headphone
[Jack Front Headphone,1]
required-any = any

; HP EliteDesk 800 DM Headphone
[Jack Front Headphone Surround]
required-any = any

[Element Headphone,1]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right


заменяем:
[Element Headphone2]
required = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

на

[Element Headphone2]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right


;;------------

; On some machines Front is actually a part of the Headphone path
[Element Front]
switch = mute
volume = zero

на

; On some machines, the Front Volume Control is shared by Headphone and Lineout,
; or Headphone and Speaker, but they have independent Volume Switch. Here only
; use switch to mute Lineout or Speaker.
[Element Front]
switch = off
volume = zero

a3nd25
Сообщения: 2
Зарегистрирован: 18 июн 2023, 18:53

Re: Нет звука в наушниках. Автоматическое переключение на наушники.

Сообщение a3nd25 » 18 июн 2023, 19:20

Если нету звука в наушниках и не работает переключатель на наушники в linux mint 19.3 то необходимо редактировать файлы по пути /usr/share/pulseaudio/alsa-mixer/paths;
analog-output-headphones.conf analog-output-headphones-2.conf

В файле analog-output-headphones.conf:[/size]

Удаляем:
;--
[Jack Front Headphone,1]
required-any = any

[Jack Front Headphone Surround]
required-any = any



добавляем:

[Jack Headphone - Output]
required-any = any


; This path is intended to control the first headphones, not
; the second headphones. But it should not hurt if we leave the second
; headphone jack enabled nonetheless.
[Element Headphone,1]
switch = mute
volume = zero



Заменяем:

[Element Front]
switch = mute
volume = zero

на

; On some machines, the Front Volume Control is shared by Headphone and Lineout,
; or Headphone and Speaker, but they have independent Volume Switch. Here only
; use switch to mute Lineout or Speaker.
[Element Front]
switch = off
volume = zero




В файле analog-output-headphones-2.conf:[/size]

добавляем:

; HP EliteDesk 800 SFF Headphone
[Jack Front Headphone,1]
required-any = any

; HP EliteDesk 800 DM Headphone
[Jack Front Headphone Surround]
required-any = any

[Element Headphone,1]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right


заменяем:
[Element Headphone2]
required = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

на

[Element Headphone2]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right


;;------------

; On some machines Front is actually a part of the Headphone path
[Element Front]
switch = mute
volume = zero

на

; On some machines, the Front Volume Control is shared by Headphone and Lineout,
; or Headphone and Speaker, but they have independent Volume Switch. Here only
; use switch to mute Lineout or Speaker.
[Element Front]
switch = off
volume = zero



Сами файлы имеют вид:

В файле analog-output-headphones.conf:[/size]

# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

; Path for mixers that have a 'Headphone' control
;
; See analog-output.conf.common for an explanation on the directives

[General]
priority = 99
description-key = analog-output-headphones

[Properties]
device.icon_name = audio-headphones

[Jack Dock Headphone]
required-any = any

[Jack Dock Headphone Phantom]
required-any = any
state.plugged = unknown
state.unplugged = unknown

[Jack Front Headphone]
required-any = any

; HP EliteDesk 800 DM Headset
[Jack Front Headphone Front]
required-any = any

[Jack Front Headphone Phantom]
required-any = any
state.plugged = unknown
state.unplugged = unknown

[Jack Headphone]
required-any = any

[Jack Headphone Phantom]
required-any = any
state.plugged = unknown
state.unplugged = unknown

# This jack can be either a headphone *or* a mic. Used on some ASUS netbooks.
[Jack Headphone Mic]
required-any = any

[Jack Headphone - Output]
required-any = any

[Element Hardware Master]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

[Element Master]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

[Element Master Mono]
switch = off
volume = off

[Element Speaker+LO]
switch = off
volume = off

[Element Headphone+LO]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

[Element Headphone]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

; This path is intended to control the first headphones, not
; the second headphones. But it should not hurt if we leave the second
; headphone jack enabled nonetheless.
[Element Headphone,1]
switch = mute
volume = zero

[Element Headset]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

[Element Line HP Swap]
switch = on
required-any = any

; This profile path is intended to control the first headphones, not
; the second headphones. But it should not hurt if we leave the second
; headphone jack enabled nonetheless.
[Element Headphone2]
switch = mute
volume = zero

[Element Speaker]
switch = off
volume = off

[Element Desktop Speaker]
switch = off
volume = off

; On some machines, the Front Volume Control is shared by Headphone and Lineout,
; or Headphone and Speaker, but they have independent Volume Switch. Here only
; use switch to mute Lineout or Speaker.
[Element Front]
switch = off
volume = zero

[Element Rear]
switch = off
volume = off

[Element Surround]
switch = off
volume = off

[Element Side]
switch = off
volume = off

[Element Center]
switch = off
volume = off

[Element LFE]
switch = off
volume = off

[Element Bass Speaker]
switch = off
volume = off

[Element Speaker Front]
switch = off
volume = off

[Element Speaker Surround]
switch = off
volume = off

[Element Speaker Side]
switch = off
volume = off

[Element Speaker CLFE]
switch = off
volume = off

[Element Speaker Center/LFE]
switch = off
volume = off

.include analog-output.conf.common








В файле analog-output-headphones-2.conf:[/size]


# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

; Path for the second headphone output on dual-headphone machines.
;
; See analog-output.conf.common for an explanation on the directives

[General]
priority = 98

[Properties]
device.icon_name = audio-headphones

; HP EliteDesk 800 SFF Headphone
[Jack Front Headphone,1]
required-any = any

; HP EliteDesk 800 DM Headphone
[Jack Front Headphone Surround]
required-any = any

[Element Hardware Master]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

[Element Master]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

[Element Master Mono]
switch = off
volume = off

; This profile path is intended to control the second headphones, not
; the first headphones. But it should not hurt if we leave the
; headphone jack enabled nonetheless.
[Element Headphone]
switch = mute
volume = zero

[Element Headphone,1]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

[Element Headphone+LO]
switch = mute
volume = zero

[Element Speaker+LO]
switch = off
volume = off

[Element Headphone2]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

[Element Speaker]
switch = off
volume = off

[Element Desktop Speaker]
switch = off
volume = off

; On some machines, the Front Volume Control is shared by Headphone and Lineout,
; or Headphone and Speaker, but they have independent Volume Switch. Here only
; use switch to mute Lineout or Speaker.
[Element Front]
switch = off
volume = zero

[Element Rear]
switch = off
volume = off

[Element Surround]
switch = off
volume = off

[Element Side]
switch = off
volume = off

[Element Center]
switch = off
volume = off

[Element LFE]
switch = off
volume = off

[Element Bass Speaker]
switch = off
volume = off

.include analog-output.conf.common

Ответить