Conexão com o pulseaudio falhou [RESOLVIDO]

1. Conexão com o pulseaudio falhou [RESOLVIDO]

Péricles Igor
igor.pericles

(usa Linux Mint)

Enviado em 15/01/2019 - 16:20h

Estava seguindo um tutorial para tentar resolver meu problema da falta de som na minha máquina, vou precisar do pulseaudio para resolver o problema, mas toda vez que eu abro dá erro e aparace um MSG dizendo que a conexão com o pulseaudio falhou. Tentei reiniciar o pulseaudio e apareceu esse erro:

E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="platform-bytcht_es8316" card_name="alsa_card.platform-bytcht_es8316" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1""): initialization failed.
Morto

Alguém poderia me ajudar? Já estou há uma semana sem som! Agradeço antecipadamente.


  


2. MELHOR RESPOSTA

skjdeecedcnfncvnrfcnrncjvnjrnfvjcnjrjvcjrvcj
Londreslondres

(usa Parabola)

Enviado em 15/01/2019 - 16:48h

Abra um editor de texto. Copie e cole esse conteúdo:

clear
if [ ! "`whoami`" = "root" ]
then
echo "Please run script as root."
exit 1
else echo "( ͡° ͜ʖ ͡°) Script Made By Shuncey Balba ( ͡° ͜ʖ ͡°)"
fi
touch install.log
chmod 777 install.log
echo Downloading Files
p_url="https://raw.githubusercontent.com/dsd/linux/es8316"
files="
sound/soc/codecs/es8316.c
sound/soc/codecs/es8316.h
sound/soc/codecs/Makefile
sound/soc/codecs/Kconfig
sound/soc/intel/Kconfig
sound/soc/intel/boards/Makefile
sound/soc/intel/boards/cht_bsw_es8316.c
sound/soc/intel/boards/bytcht_es8316.c
sound/soc/intel/sst/atom/sst_acpi.c
sound/soc/intel/atom/sst/sst_acpi.c
sound/soc/intel/atom/sst-atom-controls.h
sound/soc/intel/common/sst-acpi.h
sound/soc/intel/common/sst-dsp.h
sound/soc/intel/atom/sst-mfld-platform.h
sound/soc/intel/atom/sst/sst.h
sound/soc/intel/atom/sst-mfld-dsp.h
"
for f in $files
do
echo $f > install.log 2>&1
mkdir -p `dirname $f` > install.log 2>&1
wget $p_url/$f > install.log 2>&1
mv `basename $f` $f > install.log 2>&1
done
rm sound/soc/codecs/Makefile
rm sound/soc/intel/boards/Makefile
echo "snd-soc-es8316-objs := es8316.o
obj-m += snd-soc-es8316.o" >> sound/soc/codecs/Makefile
chmod +x sound/soc/codecs/Makefile

echo "snd-soc-sst-byt-cht-es8316-objs := bytcht_es8316.o
obj-m += snd-soc-sst-byt-cht-es8316.o" >> sound/soc/intel/boards/Makefile
chmod +x sound/soc/intel/boards/Makefile

echo "snd-intel-sst-acpi-objs += sst_acpi.o
obj-m += snd-intel-sst-acpi.o" >> sound/soc/intel/atom/sst/Makefile
chmod +x sound/soc/intel/atom/sst/Makefile

echo Compiling

# ubuntu
C_FLAGS="-C /usr/src/linux-headers-`uname -r`"
# opensuse
# C_FLAGS="-C /usr/src/linux-`uname -r`"
c_dir=`pwd`
for mf in `find $c_dir -type f -name "Makefile"`
do
echo $mf > install.log 2>&1
cd `dirname $mf` > install.log 2>&1
make $C_FLAGS M=`pwd` modules > install.log 2>&1
mv *.ko $c_dir > install.log 2>&1
cd $c_dir > install.log 2>&1
done

echo Inserting snd-intel-sst-acpi.ko to Kernel
if insmod snd-intel-sst-acpi.ko > install.log 2>&1 ; then
printf 'Modules inserted To Kernel Succesfully
'
else
printf 'snd-intel-sst-acpi.ko Already Exists
'
fi
echo Inserting snd-soc-sst-byt-cht-es8316.ko to Kernel
if insmod snd-soc-sst-byt-cht-es8316.ko > install.log 2>&1 ; then
printf 'snd-soc-sst-byt-cht-es8316.ko inserted To Kernel Succesfully
'
else
printf 'snd-soc-sst-byt-cht-es8316.ko Already Exists
'
fi
echo Inserting snd-soc-es8316.ko to Kernel
if insmod snd-soc-es8316.ko > install.log 2>&1 ; then
printf 'snd-soc-es8316.ko inserted To Kernel Succesfully
'
else
printf 'snd-soc-es8316.ko Already Exists
'
fi

echo "Downloading And Extracting UCM files..."
PURGE_UNZIP=false && [ ! $(sudo bash -c "command -v unzip") ] && sudo apt -y install unzip > /dev/null 2>&1 && PURGE_UNZIP=true
sudo rm -rf UCM
sudo mkdir UCM
cd UCM
sudo wget --timeout=10 "https://github.com/plbossart/UCM/archive/master.zip" > /dev/null 2>&1
sudo unzip master.zip > /dev/null 2>&1
sudo rm -f master.zip
echo "Installing UCM Files..."
sudo mkdir -p /usr/share/alsa/ucm
sudo cp -rf UCM-master/* /usr/share/alsa/ucm
sudo cp -rf /usr/share/alsa/ucm/bytcr-rt5651/asound.state /var/lib/alsa
sudo rm -rf UCM-master
sudo mkdir /usr/share/alsa/ucm/bytcht-es8316 > install.log 2>&1
sudo wget --timeout=10 "https://github.com/kernins/linux-chwhi12/raw/master/configs/audio/ucm/bytcht-es8316/HiFi" -O /usr/share/alsa/ucm/bytcht-es8316/HiFi > /dev/null 2>&1
sudo wget --timeout=10 "https://github.com/kernins/linux-chwhi12/raw/master/configs/audio/ucm/bytcht-es8316/bytcht-es8316.conf" -O /usr/share/alsa/ucm/bytcht-es8316/bytcht-es8316.conf > /dev/null 2>&1
# add HdmiLpeAudio.conf
sed '1,/^exit$/d' < ../$0 | base64 -d > install.log 2>&1 | sudo tee $0.zip > /dev/null 2>&1
sudo unzip $0.zip > /dev/null 2>&1
sudo rm -f $0.zip
sudo mkdir -p /usr/share/alsa/cards > install.log 2>&1
sudo cp HdmiLpeAudio.conf /usr/share/alsa/cards > install.log 2>&1
cd ..
sudo rm -rf UCM
[ ${PURGE_UNZIP} ] && sudo apt -y purge unzip > /dev/null 2>&1
echo "Finished Installing UCM Files"


echo "blacklist snd_hdmi_lpe_audio" > /etc/modprobe.d/blacklist_hdmi.conf
echo Cleaming Up
sudo rm -rf sound
sudo rm -rf install.log
sudo rm -rf snd-intel-sst-acpi.ko
sudo rm -rf snd-soc-es8316.ko
sudo rm -rf snd-soc-sst-byt-cht-es8316.ko
echo "Donate -> https://www.paypal.me/shunceybalbacid";
echo "Does Sound Work? If not plug in your Headphones Wait for 10 Seconds To Continue"
timeout 10s speaker-test -t wav -c 6 > install.log 2>&1
while true; do

read -p "Do you want to reboot now? Y/N: " yn
case $yn in
[Yy]* ) reboot;;
[Nn]* ) exit;;
* ) echo ;;
esac
done


Salve com o nome es8316.sh de preferência na pasta de Downloads.

Rode esses comandos no terminal:
cd Downloads
sudo chmod +x es8316.sh
sudo ./es8316.sh

Reinicie a máquina.


3. Re: Conexão com o pulseaudio falhou [RESOLVIDO]

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 15/01/2019 - 16:26h

.
.
.
.
Coloque aí .. o link do artigo que vc usou, qual Linux+versão vc usa e qual a interface ... poste tb a saida do comando 'lspci'.

------------------------------------------| Linux User #621728 |-----------------------------------------

" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"

------------------------------------------| Linux User #621728 |-----------------------------------------



4. Re: Conexão com o pulseaudio falhou [RESOLVIDO]

Péricles Igor
igor.pericles

(usa Linux Mint)

Enviado em 15/01/2019 - 16:30h

Mauriciodez escreveu:

.
.
.
.
Coloque aí .. o link do artigo que vc usou, qual Linux+versão vc usa e qual a interface ... poste tb a saida do comando 'lspci'.

------------------------------------------| Linux User #621728 |-----------------------------------------

" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"

------------------------------------------| Linux User #621728 |-----------------------------------------


Artigo: https://www.vivaolinux.com.br/dica/Fazendo-o-som-funcionar-no-Linux;
Versão+interface: Linux Mint 19.1 “Tessa” Xfce;
Retorno do comando lspci: 00:00.0 Host bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register (rev 36)
00:02.0 VGA compatible controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers (rev 36)
00:03.0 Multimedia controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Imaging Unit (rev 36)
00:0b.0 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller (rev 36)
00:14.0 USB controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller (rev 36)
00:1a.0 Encryption controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine (rev 36)
00:1f.0 ISA bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU (rev 36)






5. Re: Conexão com o pulseaudio falhou [RESOLVIDO]

Péricles Igor
igor.pericles

(usa Linux Mint)

Enviado em 15/01/2019 - 16:59h

Londreslondres escreveu:

Abra um editor de texto. Copie e cole esse conteúdo:

clear
if [ ! "`whoami`" = "root" ]
then
echo "Please run script as root."
exit 1
else echo "( &#865;° &#860;&#662; &#865;°) Script Made By Shuncey Balba ( &#865;° &#860;&#662; &#865;°)"
fi
touch install.log
chmod 777 install.log
echo Downloading Files
p_url="https://raw.githubusercontent.com/dsd/linux/es8316"
files="
sound/soc/codecs/es8316.c
sound/soc/codecs/es8316.h
sound/soc/codecs/Makefile
sound/soc/codecs/Kconfig
sound/soc/intel/Kconfig
sound/soc/intel/boards/Makefile
sound/soc/intel/boards/cht_bsw_es8316.c
sound/soc/intel/boards/bytcht_es8316.c
sound/soc/intel/sst/atom/sst_acpi.c
sound/soc/intel/atom/sst/sst_acpi.c
sound/soc/intel/atom/sst-atom-controls.h
sound/soc/intel/common/sst-acpi.h
sound/soc/intel/common/sst-dsp.h
sound/soc/intel/atom/sst-mfld-platform.h
sound/soc/intel/atom/sst/sst.h
sound/soc/intel/atom/sst-mfld-dsp.h
"
for f in $files
do
echo $f > install.log 2>&1
mkdir -p `dirname $f` > install.log 2>&1
wget $p_url/$f > install.log 2>&1
mv `basename $f` $f > install.log 2>&1
done
rm sound/soc/codecs/Makefile
rm sound/soc/intel/boards/Makefile
echo "snd-soc-es8316-objs := es8316.o
obj-m += snd-soc-es8316.o" >> sound/soc/codecs/Makefile
chmod +x sound/soc/codecs/Makefile

echo "snd-soc-sst-byt-cht-es8316-objs := bytcht_es8316.o
obj-m += snd-soc-sst-byt-cht-es8316.o" >> sound/soc/intel/boards/Makefile
chmod +x sound/soc/intel/boards/Makefile

echo "snd-intel-sst-acpi-objs += sst_acpi.o
obj-m += snd-intel-sst-acpi.o" >> sound/soc/intel/atom/sst/Makefile
chmod +x sound/soc/intel/atom/sst/Makefile

echo Compiling

# ubuntu
C_FLAGS="-C /usr/src/linux-headers-`uname -r`"
# opensuse
# C_FLAGS="-C /usr/src/linux-`uname -r`"
c_dir=`pwd`
for mf in `find $c_dir -type f -name "Makefile"`
do
echo $mf > install.log 2>&1
cd `dirname $mf` > install.log 2>&1
make $C_FLAGS M=`pwd` modules > install.log 2>&1
mv *.ko $c_dir > install.log 2>&1
cd $c_dir > install.log 2>&1
done

echo Inserting snd-intel-sst-acpi.ko to Kernel
if insmod snd-intel-sst-acpi.ko > install.log 2>&1 ; then
printf 'Modules inserted To Kernel Succesfully
'
else
printf 'snd-intel-sst-acpi.ko Already Exists
'
fi
echo Inserting snd-soc-sst-byt-cht-es8316.ko to Kernel
if insmod snd-soc-sst-byt-cht-es8316.ko > install.log 2>&1 ; then
printf 'snd-soc-sst-byt-cht-es8316.ko inserted To Kernel Succesfully
'
else
printf 'snd-soc-sst-byt-cht-es8316.ko Already Exists
'
fi
echo Inserting snd-soc-es8316.ko to Kernel
if insmod snd-soc-es8316.ko > install.log 2>&1 ; then
printf 'snd-soc-es8316.ko inserted To Kernel Succesfully
'
else
printf 'snd-soc-es8316.ko Already Exists
'
fi

echo "Downloading And Extracting UCM files..."
PURGE_UNZIP=false && [ ! $(sudo bash -c "command -v unzip") ] && sudo apt -y install unzip > /dev/null 2>&1 && PURGE_UNZIP=true
sudo rm -rf UCM
sudo mkdir UCM
cd UCM
sudo wget --timeout=10 "https://github.com/plbossart/UCM/archive/master.zip" > /dev/null 2>&1
sudo unzip master.zip > /dev/null 2>&1
sudo rm -f master.zip
echo "Installing UCM Files..."
sudo mkdir -p /usr/share/alsa/ucm
sudo cp -rf UCM-master/* /usr/share/alsa/ucm
sudo cp -rf /usr/share/alsa/ucm/bytcr-rt5651/asound.state /var/lib/alsa
sudo rm -rf UCM-master
sudo mkdir /usr/share/alsa/ucm/bytcht-es8316 > install.log 2>&1
sudo wget --timeout=10 "https://github.com/kernins/linux-chwhi12/raw/master/configs/audio/ucm/bytcht-es8316/HiFi" -O /usr/share/alsa/ucm/bytcht-es8316/HiFi > /dev/null 2>&1
sudo wget --timeout=10 "https://github.com/kernins/linux-chwhi12/raw/master/configs/audio/ucm/bytcht-es8316/bytcht-es8316.conf" -O /usr/share/alsa/ucm/bytcht-es8316/bytcht-es8316.conf > /dev/null 2>&1
# add HdmiLpeAudio.conf
sed '1,/^exit$/d' < ../$0 | base64 -d > install.log 2>&1 | sudo tee $0.zip > /dev/null 2>&1
sudo unzip $0.zip > /dev/null 2>&1
sudo rm -f $0.zip
sudo mkdir -p /usr/share/alsa/cards > install.log 2>&1
sudo cp HdmiLpeAudio.conf /usr/share/alsa/cards > install.log 2>&1
cd ..
sudo rm -rf UCM
[ ${PURGE_UNZIP} ] && sudo apt -y purge unzip > /dev/null 2>&1
echo "Finished Installing UCM Files"


echo "blacklist snd_hdmi_lpe_audio" > /etc/modprobe.d/blacklist_hdmi.conf
echo Cleaming Up
sudo rm -rf sound
sudo rm -rf install.log
sudo rm -rf snd-intel-sst-acpi.ko
sudo rm -rf snd-soc-es8316.ko
sudo rm -rf snd-soc-sst-byt-cht-es8316.ko
echo "Donate -> https://www.paypal.me/shunceybalbacid";
echo "Does Sound Work? If not plug in your Headphones Wait for 10 Seconds To Continue"
timeout 10s speaker-test -t wav -c 6 > install.log 2>&1
while true; do

read -p "Do you want to reboot now? Y/N: " yn
case $yn in
[Yy]* ) reboot;;
[Nn]* ) exit;;
* ) echo ;;
esac
done


Salve com o nome es8316.sh de preferência na pasta de Downloads.

Rode esses comandos no terminal:
cd Downloads
sudo chmod +x es8316.sh
sudo ./es8316.sh

Reinicie a máquina.


Cara, muito obrigado. Ajudou muito!










Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts