Çözüldü Arch Linux mikrofon çalışmıyor

Bu konu çözüldü olarak işaretlenmiştir. Çözülmediğini düşünüyorsanız konuyu rapor edebilirsiniz.

Huso112

Hectopat
Katılım
26 Ocak 2021
Mesajlar
1.471
Makaleler
1
Çözümler
2
Merhabalar.
Her şey çok güzel idi...
Sabahleyin Audacity ile ses düzenlemesi yapıyordum. Düzenleme bittikten sonra ffmpeg ile sesi M4A şeklinde aktarmak istemiştim ama Audacity sesi çıkarırken ffmpeg ile ilgili hata veriyordu.
O arada sorunu arada sorunu anlamak için sesimi kaydetmek istemiştim ki... Sesim yoktu.
Bu lanet arıza yüzünden kaç distro, kaç fresh install yaptım ki aklınız durar. Bu yüzden ilk:

Pacmd set-Source-port alsa_input. PCI-0000_00_1b.0.analog-stereo analog-input-Mic

Komutunu, ardından:

Pulseaudio -k
Pulseaudio —start

Komutlarını çalıştırdım. Tabi bu arada Ffmpeg'i de yeniden kurdum ve bir hışımla Audacity'i -rncs bayrağı ile sildim. Yay'de de sonuç aynı olunca orada da bir hışımla sildim.

1. komut çalışmadı. Zaten o alsa içinmiş. 2. komut ise çalıştı.

Reboot yapınca tekrar sesim gelmişti. Çok mutlu olmuştum.

Akşam “belki Audacity düzelmiştir” dedim ve indirdim. Sesimi kaydetmeye çalışınca sonuç eskisine döndü ve 1. ile 2. komutlar sonuç vermedi (evet bu arada Ffmpeg'i yeniden kurmayı unutmuşum. Şimdi deneyemem ana yarın yaparım).

O lanet distro Hopping'e geri dönmek istemiyorum.

Bu arada şu an bilgisayar kapalı ve açamam. Yarın SS ve Pulse. Pa dosyasını eklerim.
 
Çözüm
O eklenen seçenekler geçici, yeniden başlatınca sıfırlanacak onlar. Zaten default.pa dosyasına girdi aygıtı eklenmemiş görünüyor. Bunun yerine aşağıdaki komutla, model=laptop-amic modül değişkeni eklemeyi dene, sonra sistemini yeniden başlatırsın.

Kod:
/bin/bash -c "echo 'options snd-hda-intel model=laptop-amic' | sudo tee /etc/modprobe.d/laptop-amic.conf"

Bu işe yaramazsa, aşağıdaki komutu deneyip sistemi yeniden başlatırsın.

Kod:
/bin/bash -c "echo 'options snd-hda-intel model=laptop-dmic' | sudo tee /etc/modprobe.d/laptop-amic.conf"
Şu resimdeki hoparlör simgeleri.
1623775219936.png
Ne yazık ki açıklar. Temadan kaynaklı :(
 
Bu simgelerin aktif olması benim bildiğim mikrofonu susturuyor. Aksine bunların pasif durumda olması gerekiyor. Artı olarak hoparlörün en sağındaki simge varsayılan olan mikrofonu seçmenize yarıyor.
Onlarda sıkıntı zaten yok hocam ama ses de yok :(

Kusura bakmayın. Cevapta geç kalmışım @OzgunP hocam
default.pa dosyasının yedeğini alıp, şurada yazanları uygulamayı deneyebilirsin. Fix microphone on Lenovo IdeaPad 320 on Ubuntu 18.04
Harfien yaptım ama olmadı. Bir şeyi yanlış mı yapmışım ?

Kod:
# 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/>.

; For devices where a 'Internal Mic' or 'Internal Mic Boost' element exists
; 'Int Mic' and 'Int Mic Boost' are for compatibility with kernels < 2.6.38
;
; See analog-output.conf.common for an explanation on the directives

[General]
priority = 89
description-key = analog-input-microphone-internal

[Jack Mic]
state.plugged = no
state.unplugged = unknown

[Jack Dock Mic]
state.plugged = no
state.unplugged = unknown

[Jack Front Mic]
state.plugged = no
state.unplugged = unknown

[Jack Rear Mic]
state.plugged = no
state.unplugged = unknown

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

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

[Element Internal Mic Boost] ----> DEĞİŞEN
required-any = any
switch = select
volume = zero
override-map.1 = all
override-map.2 = all-left,all-right

[Option Internal Mic Boost:on]
name = input-boost-on

[Option Internal Mic Boost:off]
name = input-boost-off

[Element Int Mic Boost] ----> DEĞİŞEN
required-any = any
switch = select
volume = zero
override-map.1 = all
override-map.2 = all-left,all-right

[Option Int Mic Boost:on]
name = input-boost-on

[Option Int Mic Boost:off]
name = input-boost-off

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

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

[Element Input Source]
enumeration = select

[Option Input Source:Internal Mic]
name = analog-input-microphone-internal
required-any = any

[Option Input Source:Int Mic]
name = analog-input-microphone-internal
required-any = any

[Element Capture Source]
enumeration = select

[Option Capture Source:Internal Mic]
name = analog-input-microphone-internal
required-any = any

[Option Capture Source:Int Mic]
name = analog-input-microphone-internal
required-any = any

[Element Mic]
switch = off
volume = off

[Element Dock Mic]
switch = off
volume = off

[Element Front Mic]
switch = off
volume = off

[Element Rear Mic]
switch = off
volume = off

[Element Headphone Mic]
switch = off
volume = off

[Element Headphone Mic Boost]
switch = off
volume = off

[Element Mic Boost] ----> DEĞİŞEN
switch = off
volume = zero

[Element Dock Mic Boost]
switch = off
volume = off

[Element Front Mic Boost]
switch = off
volume = off

[Element Rear Mic Boost]
switch = off
volume = off

.include analog-input-mic.conf.common

Kod:
# 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/>.

; For devices where a 'Mic' or 'Mic Boost' element exists
;
; See analog-output.conf.common for an explanation on the directives

[General]
priority = 87
description-key = analog-input-microphone

[Jack Mic]
required-any = any

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

[Jack Mic - Input]
required-any = any

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

[Element Mic Boost] ----> DEĞİŞEN
required-any = any
switch = select
volume = zero
override-map.1 = all
override-map.2 = all-left,all-right

[Option Mic Boost:on]
name = input-boost-on

[Option Mic Boost:off]
name = input-boost-off

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

[Element Input Source]
enumeration = select

[Option Input Source:Mic]
name = analog-input-microphone
required-any = any

[Element Capture Source]
enumeration = select

[Option Capture Source:Mic]
name = analog-input-microphone
required-any = any

[Element PCM Capture Source]
enumeration = select

[Option PCM Capture Source:Mic]
name = analog-input-microphone
required-any = any

[Option PCM Capture Source:Mic-In/Mic Array]
name = analog-input-microphone
required-any = any

;;; Some AC'97s have "Mic Select" and "Mic Boost (+20dB)"

[Element Mic Select]
enumeration = select

[Option Mic Select:Mic1]
name = input-microphone
priority = 20

[Option Mic Select:Mic2]
name = input-microphone
priority = 19

[Element Mic Boost (+20dB)]
switch = select
volume = merge

[Option Mic Boost (+20dB):on]
name = input-boost-on

[Option Mic Boost (+20dB):off]
name = input-boost-off

[Element Front Mic]
switch = off
volume = off

[Element Internal Mic]
switch = off
volume = off

[Element Rear Mic]
switch = off
volume = off

[Element Dock Mic]
switch = off
volume = off

[Element Dock Mic Boost]
switch = off
volume = off

[Element Internal Mic Boost] ----> DEĞİŞEN
switch = off
volume = zero

[Element Front Mic Boost]
switch = off
volume = off

[Element Rear Mic Boost]
switch = off
volume = off

.include analog-input-mic.conf.common

[Element Int Mic Boost] ---> Sonradan eklendi. Aslında yoktu
switch = off
volume = zero

Kod:
#!/usr/bin/pulseaudio -nF
#
# 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 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/>.

# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)

.fail

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties

### Should be after module-*-restore but before module-*-detect
load-module module-switch-on-port-available

### Load audio drivers statically
### (it's probably better to not load these drivers manually, but instead
### use module-udev-detect -- see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-remap-source source_name=record_mono master=INPUT_NAME master_channel_map=front-left channel_map=mono ----> EKLENEN
#set-default-source record_mono ----> EKLENEN
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink

### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev support)
load-module module-detect
.endif

### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect channels=2
.fail
.endif

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.endif

.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

### Load several protocols
load-module module-dbus-protocol
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish

### Load the RTP receiver module (also configured via paprefs, see above)
#load-module module-rtp-recv

### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
#load-module module-rtp-send source=rtp.monitor

### Load additional modules from GSettings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gsettings.so
.nofail
load-module module-gsettings
.fail
.endif


### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent modules
### that look up the default sink/source get the right value
load-module module-default-device-restore

### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink

### Honour intended role device property
load-module module-intended-roles

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
.ifexists module-console-kit.so
load-module module-console-kit
.endif
.ifexists module-systemd-login.so
load-module module-systemd-login
.endif

### Enable positioned event sounds
load-module module-position-event-sounds

### Cork music/video streams when a phone stream is active
load-module module-role-cork

### Modules to allow autoloading of filters (such as echo cancellation)
### on demand. module-filter-heuristics tries to determine what filters
### make sense, and module-filter-apply does the heavy-lifting of
### loading modules and rerouting streams.
load-module module-filter-heuristics
load-module module-filter-apply

### Make some devices default
#set-default-sink output
#set-default-source input

Kod:
[hoovy@turbine ~]$ pacmd list-sources | grep 'name:.*input'
        name: <alsa_input.pci-0000_00_1f.3.analog-stereo>
[hoovy@turbine ~]$

In /usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf and /usr/share/pulseaudio/alsa-mixer/paths/analog-input-mic.conf:
  • Under [Element Internal Mic Boost] set volume to zero.
  • Under [Element Int Mic Boost] set volume to zero.
  • Under [Element Mic Boost] set volume to zero
Find your source name from the following command; mine is alsa_input.pci-0000_00_1f.3.analog-stereo
$ pacmd list-sources | grep 'name:.*input'

Edit /etc/pulse/default.pa and add the following lines, where INPUT_NAME is name of the input source from above step:
`load-module module-remap-source source_name=record_mono master=INPUT_NAME master_channel_map=front-left channel_map=mono`
`set-default-source record_mono`

Then restart PulseAudio:
$ pulseaudio -k
$ pulseaudio --start
 
Son düzenleme:
pacmd list-sources | grep 'name:.*input' name: <alsa_input.pci-0000_00_1f.3.analog-stereo>

Aşağıdaki komutları çalıştırınca sonuç ne oluyor? Buna göre ilerleyelim.

Kod:
pactl load-module module-remap-source source_name=record_mono master=alsa_input.pci-0000_00_1f.3.analog-stereo master_channel_map=front-left channel_map=mono
Kod:
pactl set-default-source record_mono

Bunları uyguladıktan sonra, ses ayarlarını açıp giriş aygıtının remapped ile başlayan seçenek olup olmadığını kontrol edersin, değilse remapped ile başlayan seçenekle değiştirirsin.
 
Son düzenleme:
[CODE title="İlk Komut"][hoovy@turbine ~]$ pactl load-module module-remap-source source_name=record_mono master=alsa_input.pci-0000_00_1f.3.analog-stereo master_channel_map=front-left channel_map=mono
26
[hoovy@turbine ~]$echo "Bu komutu ne kadar yazarsam sayı o kadar artıyor. İlk yazdığımda 23 idi"[/CODE]
[CODE title="2. Komut"][hoovy@turbine ~]$ pactl set-default-source record_mono
[hoovy@turbine ~]$ echo "Bir çıktı yok hocam. Bir şeyleri Tutorial'da yanlış mı yaptım acaba ? Yeniden deneyeyim mi?"[/CODE]
 
İlk komut bir giriş seçeneği eklemeye yarıyor, ikinci komut sadece bunu varsayılan yapmaya yarıyor. Pavucontrol uygulamasında, giriş aygıtlarında yeni eklenmiş bir seçenek görünmüyor mu?

Artan sayı önemli değil, süreç vb. numarayı veriyordur sadece.
 
İlk komut bir giriş seçeneği eklemeye yarıyor, ikinci komut sadece bunu varsayılan yapmaya yarıyor. Pavucontrol uygulamasında, giriş aygıtlarında yeni eklenmiş bir seçenek görünmüyor mu?

Artan sayı önemli değil, süreç vb. numarayı veriyordur sadece.
4 tane "Remapped Dahili Ses Analog Stereo" var ama hiçbiri ses iletmiyor.
Bu arada geç olduğundan dolayı maalesef bilgisayarı kapatmak zorundayım. Yarın da okul var. Anca 14.00 gibi size dönüt veririm eğer bundan sonra yapmam gereken varsa. Kusura bakmayın :(
 

Geri
Yukarı