libasound2 not working after update - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Hardware - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=6) +--- Forum: Sound (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=23) +--- Thread: libasound2 not working after update (/showthread.php?tid=7763) |
Re: libasound2 not working after update - j8a - 05-17-2021 Hi [member=7109]Moltke[/member] , I will try these in a few days, we have experienced a covid case at work and I can not go to the office right now. I will contact you as soon as I can go back to work, I hope it will be soon. Fortunately, I am all right and so my colleagues. Regards Re: libasound2 not working after update - Moltke - 05-17-2021 (05-17-2021, 01:53 PM)j8a link Wrote: Hi [member=7109]Moltke[/member] , Sure, no problem. Glad you're Ok, take care. By the way, I see you're from Argentina? You can also post in the Spanish sub-forum https://www.freecinema2022.gq/forums/spanish/ Re: libasound2 not working after update - j8a - 05-26-2021 Hi, [member=7109]Moltke[/member] , The ouptput of the pactl info command is the following_ pactl info Error en la conexión: Conexión negada pa_context_connect() falló: Conexión negada I include also, the output of these other terminal commands, which could help ournalctl --user -xe | grep pulseaudio.service may 14 13:34:04 jochoa-pc systemd[2234]: pulseaudio.service: Succeeded. may 14 14:28:51 jochoa-pc systemd[2260]: pulseaudio.service: Succeeded. may 14 15:49:50 jochoa-pc systemd[2864]: pulseaudio.service: Succeeded. may 14 16:25:35 jochoa-pc systemd[1024]: pulseaudio.service: Succeeded. may 26 09:33:39 jochoa-pc systemd[2070]: pulseaudio.service: Succeeded. may 26 09:33:44 jochoa-pc systemd[2070]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE may 26 09:33:44 jochoa-pc systemd[2070]: pulseaudio.service: Failed with result 'exit-code'. may 26 09:33:44 jochoa-pc systemd[2070]: pulseaudio.service: Scheduled restart job, restart counter is at 1. may 26 09:33:44 jochoa-pc systemd[2070]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE may 26 09:33:44 jochoa-pc systemd[2070]: pulseaudio.service: Failed with result 'exit-code'. may 26 09:33:44 jochoa-pc systemd[2070]: pulseaudio.service: Scheduled restart job, restart counter is at 2. may 26 09:33:44 jochoa-pc systemd[2070]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE may 26 09:33:44 jochoa-pc systemd[2070]: pulseaudio.service: Failed with result 'exit-code'. may 26 09:33:45 jochoa-pc systemd[2070]: pulseaudio.service: Scheduled restart job, restart counter is at 3. may 26 09:33:45 jochoa-pc systemd[2070]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE may 26 09:33:45 jochoa-pc systemd[2070]: pulseaudio.service: Failed with result 'exit-code'. may 26 09:33:45 jochoa-pc systemd[2070]: pulseaudio.service: Scheduled restart job, restart counter is at 4. may 26 09:33:45 jochoa-pc systemd[2070]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE may 26 09:33:45 jochoa-pc systemd[2070]: pulseaudio.service: Failed with result 'exit-code'. may 26 09:33:45 jochoa-pc systemd[2070]: pulseaudio.service: Scheduled restart job, restart counter is at 5. may 26 09:33:45 jochoa-pc systemd[2070]: pulseaudio.service: Start request repeated too quickly. may 26 09:33:45 jochoa-pc systemd[2070]: pulseaudio.service: Failed with result 'exit-code'. may 26 09:34:20 jochoa-pc systemd[2070]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE may 26 09:34:20 jochoa-pc systemd[2070]: pulseaudio.service: Failed with result 'exit-code'. may 26 09:34:20 jochoa-pc systemd[2070]: pulseaudio.service: Scheduled restart job, restart counter is at 1. may 26 09:34:20 jochoa-pc systemd[2070]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE may 26 09:34:20 jochoa-pc systemd[2070]: pulseaudio.service: Failed with result 'exit-code'. may 26 09:34:20 jochoa-pc systemd[2070]: pulseaudio.service: Scheduled restart job, restart counter is at 2. may 26 09:34:20 jochoa-pc systemd[2070]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE may 26 09:34:20 jochoa-pc systemd[2070]: pulseaudio.service: Failed with result 'exit-code'. may 26 09:34:21 jochoa-pc systemd[2070]: pulseaudio.service: Scheduled restart job, restart counter is at 3. may 26 09:34:21 jochoa-pc systemd[2070]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE may 26 09:34:21 jochoa-pc systemd[2070]: pulseaudio.service: Failed with result 'exit-code'. may 26 09:34:21 jochoa-pc systemd[2070]: pulseaudio.service: Scheduled restart job, restart counter is at 4. may 26 09:34:21 jochoa-pc systemd[2070]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE may 26 09:34:21 jochoa-pc systemd[2070]: pulseaudio.service: Failed with result 'exit-code'. may 26 09:34:21 jochoa-pc systemd[2070]: pulseaudio.service: Scheduled restart job, restart counter is at 5. may 26 09:34:21 jochoa-pc systemd[2070]: pulseaudio.service: Start request repeated too quickly. may 26 09:34:21 jochoa-pc systemd[2070]: pulseaudio.service: Failed with result 'exit-code'. And, () falló: Conexión negada jochoa ~ 1 pulseaudio -vvv I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operación no permitida I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operación no permitida D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us. D: [pulseaudio] core-util.c: RealtimeKit worked. I: [pulseaudio] core-util.c: Successfully gained nice level -11. I: [pulseaudio] main.c: This is PulseAudio 13.99.1 D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/pulseaudio-iKJeff/pulseaudio-13.99.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto D: [pulseaudio] main.c: Running on host: Linux x86_64 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021 D: [pulseaudio] main.c: Found 8 CPUs. I: [pulseaudio] main.c: Page size is 4096 bytes D: [pulseaudio] main.c: Compiled with Valgrind support: no D: [pulseaudio] main.c: Running in valgrind mode: no D: [pulseaudio] main.c: Running in VM: no D: [pulseaudio] main.c: Running from build tree: no D: [pulseaudio] main.c: Optimized build: yes D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled. I: [pulseaudio] main.c: Machine ID is 55b959beaf3c4e8c885de71ed85401c1. I: [pulseaudio] main.c: Session ID is c1. I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse. I: [pulseaudio] main.c: Using state directory /home/jochoa/.config/pulse. I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-13.99.1/modules. I: [pulseaudio] main.c: Running in system mode: no E: [pulseaudio] pid.c: Daemon already running. E: [pulseaudio] main.c: Ha fallado pa_pid_file_create(). I have ~.asoundrc as this cat .asoundrc pcm.!default { type hw card 0 } ctl.!default { type hw card 0 } At last, when I tried to enable autosparm.service the answer is: systemctl enable pulseaudio-enable-autospawn.service Synchronizing state of pulseaudio-enable-autospawn.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable pulseaudio-enable-autospawn Failed to enable unit: Unit file /lib/systemd/system/pulseaudio-enable-autospawn.service is masked. Where could be any problem? Regards Re: libasound2 not working after update - TheDead - 05-26-2021 Saw thread was marked solved and was curious... but it's not :-S Got two ideas : 1. Try to install the Hardware Enablement pack. 2. Turning off the audio card in BIOS, booting once, then turning back on and rebooting. Pretty sure this procedure would be useless but... trying stuff in Linux Re: libasound2 not working after update - j8a - 05-26-2021 Hi [member=6733]TheDead[/member], I unmark the post now, I though it will have no responses but [member=7109]Moltke[/member] asked me a question about this and now you too. I installed HWE support and the output from the terminal command line is the following: hwe-support-status --verbose Your Hardware Enablement Stack (HWE) is supported until abril 2025 I rebooted and disabled the sound from the BIOS. Afterwards, I reboot and enabled it. In both cases the sound is still missing, the output I wrote are the same. It is a weird problem. The only thing is changed is that now, the output of pactl info is the following. pactl info Cadena de servidor: /run/user/1000/pulse/native Versión de protocolo de biblioteca: 33 Versión de protocolo de servidor: 33 Es local: sí Índice de cliente: 33 Tamaño de grupo: 65472 Nombre de usuario: jochoa Nombre del equipo: jochoa-pc Nombre del servidor: pulseaudio Versión del servidor: 13.99.1 Especificación de muestra por defecto: s16le 2ch 44100Hz Mapa de canal por defecto: front-left,front-right Destino por defecto: alsa_output.pci-0000_00_05.0.analog-stereo Fuente por defecto: alsa_input.usb-KYE_Systems_Corp._FaceCam_VGA-02.mono-fallback Cookie: 4084:51ac Regards, Re: libasound2 not working after update - Moltke - 05-26-2021 (05-26-2021, 01:54 PM)j8a link Wrote: Hi [member=6733]TheDead[/member], According to pactl info pulseaudio is enabled and up, which means you should be getting sound, aren't you? If you don't, try renaming your ~/.asoundrc to ~/.asoundrc.bak, restart pulseaudio Code: pulseaudio --check Code: pulseaudio --start Re: libasound2 not working after update - j8a - 05-26-2021 Hi [member=7109]Moltke[/member] , I tried both commands and I recieved no output on the console. I also move the .asoundrc to .asoundr.bak and restart pulseaudio, but still not sound. Then, I open a terminal command while I was playing a sound track on VLC and I excecuted the following commands: aplay -Ll default Playback/recording through the PulseAudio sound server surround21 2.1 Surround output to Front and Subwoofer speakers surround40 4.0 Surround output to Front and Rear speakers surround41 4.1 Surround output to Front, Rear and Subwoofer speakers surround50 5.0 Surround output to Front, Center and Rear speakers surround51 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers null Discard all samples (playback) or generate zero samples (capture) samplerate Rate Converter Plugin Using Samplerate Library speexrate Rate Converter Plugin Using Speex Resampler jack JACK Audio Connection Kit oss Open Sound System pulse PulseAudio Sound Server upmix Plugin for channel upmix (4,6,8) vdownmix Plugin for channel downmix (stereo) with a simple spacialization sysdefault:CARD=NVidia HDA NVidia, ALC887-VD Analog Default Audio Device front:CARD=NVidia,DEV=0 HDA NVidia, ALC887-VD Analog Front speakers surround21:CARD=NVidia,DEV=0 HDA NVidia, ALC887-VD Analog 2.1 Surround output to Front and Subwoofer speakers surround40:CARD=NVidia,DEV=0 HDA NVidia, ALC887-VD Analog 4.0 Surround output to Front and Rear speakers surround41:CARD=NVidia,DEV=0 HDA NVidia, ALC887-VD Analog 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=NVidia,DEV=0 HDA NVidia, ALC887-VD Analog 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=NVidia,DEV=0 HDA NVidia, ALC887-VD Analog 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=NVidia,DEV=0 HDA NVidia, ALC887-VD Analog 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers dmix:CARD=NVidia,DEV=0 HDA NVidia, ALC887-VD Analog Direct sample mixing device dsnoop:CARD=NVidia,DEV=0 HDA NVidia, ALC887-VD Analog Direct sample snooping device hw:CARD=NVidia,DEV=0 HDA NVidia, ALC887-VD Analog Direct hardware device without any conversions plughw:CARD=NVidia,DEV=0 HDA NVidia, ALC887-VD Analog Hardware device with all software conversions usbstream:CARD=NVidia HDA NVidia USB Stream Output **** Lista de PLAYBACK dispositivos hardware **** tarjeta 0: NVidia [HDA NVidia], dispositivo 0: ALC887-VD Analog [ALC887-VD Analog] Subdispositivos: 0/1 Subdispositivo #0: subdevice #0 ----------------- fuser -v /dev/snd/* USUARIO ORDEN DE ACCESO PID /dev/snd/controlC0: jochoa 2826 F.... pulseaudio /dev/snd/pcmC0D0p: jochoa 2826 F...m pulseaudio --------------- pacmd list-cards 1 card(s) available. index: 0 name: <alsa_card.pci-0000_00_05.0> driver: <module-alsa-card.c> owner module: 7 properties: alsa.card = "0" alsa.card_name = "HDA NVidia" alsa.long_card_name = "HDA NVidia at 0xefdf8000 irq 21" alsa.driver_name = "snd_hda_intel" device.bus_path = "pci-0000:00:05.0" sysfs.path = "/devices/pci0000:00/0000:00:05.0/sound/card0" device.bus = "pci" device.vendor.id = "10de" device.vendor.name = "NVIDIA Corporation" device.product.id = "03f0" device.product.name = "MCP61 High Definition Audio" device.form_factor = "internal" device.string = "0" device.description = "Audio Interno" module-udev-detect.discovered = "1" device.icon_name = "audio-card-pci" profiles: input:analog-stereo: Entrada Estéreo analógico (priority 65, available: no) output:analog-stereo: Salida Estéreo analógico (priority 6500, available: unknown) output:analog-stereo+input:analog-stereo: Estéreo Analógico Dúplex (priority 6565, available: no) off: Apagado (priority 0, available: unknown) active profile: <output:analog-stereo> sinks: alsa_output.pci-0000_00_05.0.analog-stereo/#0: Audio Interno Estéreo analógico sources: alsa_output.pci-0000_00_05.0.analog-stereo.monitor/#0: Monitor of Audio Interno Estéreo analógico ports: analog-input-front-mic: Micrófono frontal (priority 8500, latency offset 0 usec, available: no) properties: device.icon_name = "audio-input-microphone" analog-input-rear-mic: Micrófono trasero (priority 8200, latency offset 0 usec, available: no) properties: device.icon_name = "audio-input-microphone" analog-input-linein: Línea de entrada (priority 8100, latency offset 0 usec, available: no) properties: analog-output-lineout: Línea de salida (priority 9000, latency offset 0 usec, available: no) properties: analog-output-speaker: Altavoces (priority 10000, latency offset 0 usec, available: unknown) properties: device.icon_name = "audio-speakers" analog-output-headphones: Auriculares (priority 9900, latency offset 0 usec, available: no) properties: device.icon_name = "audio-headphones" jochoa ~ pacmd list-sinks 1 sink(s) available. * index: 0 name: <alsa_output.pci-0000_00_05.0.analog-stereo> driver: <module-alsa-card.c> flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY state: RUNNING suspend cause: (none) priority: 9039 volume: front-left: 65035 / 99% / -0,20 dB, front-right: 65035 / 99% / -0,20 dB balance 0,00 base volume: 65536 / 100% / 0,00 dB volume steps: 65537 muted: no current latency: 39,54 ms max request: 6 KiB max rewind: 6 KiB monitor source: 0 sample spec: s16le 2ch 44100Hz channel map: front-left,front-right Estéreo used by: 1 linked by: 1 configured latency: 40,00 ms; range is 0,50 .. 1999,82 ms card: 0 <alsa_card.pci-0000_00_05.0> module: 7 properties: alsa.resolution_bits = "16" device.api = "alsa" device.class = "sound" alsa.class = "generic" alsa.subclass = "generic-mix" alsa.name = "ALC887-VD Analog" alsa.id = "ALC887-VD Analog" alsa.subdevice = "0" alsa.subdevice_name = "subdevice #0" alsa.device = "0" alsa.card = "0" alsa.card_name = "HDA NVidia" alsa.long_card_name = "HDA NVidia at 0xefdf8000 irq 21" alsa.driver_name = "snd_hda_intel" device.bus_path = "pci-0000:00:05.0" sysfs.path = "/devices/pci0000:00/0000:00:05.0/sound/card0" device.bus = "pci" device.vendor.id = "10de" device.vendor.name = "NVIDIA Corporation" device.product.id = "03f0" device.product.name = "MCP61 High Definition Audio" device.form_factor = "internal" device.string = "front:0" device.buffering.buffer_size = "352768" device.buffering.fragment_size = "176384" device.access_mode = "mmap+timer" device.profile.name = "analog-stereo" device.profile.description = "Estéreo analógico" device.description = "Audio Interno Estéreo analógico" module-udev-detect.discovered = "1" device.icon_name = "audio-card-pci" ports: analog-output-lineout: Línea de salida (priority 9000, latency offset 0 usec, available: no) properties: analog-output-speaker: Altavoces (priority 10000, latency offset 0 usec, available: unknown) properties: device.icon_name = "audio-speakers" analog-output-headphones: Auriculares (priority 9900, latency offset 0 usec, available: no) properties: device.icon_name = "audio-headphones" active port: <analog-output-speaker> ------------------ pacmd list-sink-inputs 1 sink input(s) available. index: 26 driver: <protocol-native.c> flags: START_CORKED FIX_RATE state: RUNNING sink: 0 <alsa_output.pci-0000_00_05.0.analog-stereo> volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB balance 0,00 muted: no current latency: 1166,23 ms requested latency: 40,00 ms sample spec: float32le 2ch 44100Hz channel map: front-left,front-right Estéreo resample method: copy module: 11 client: 27 <VLC media player (LibVLC 3.0.9.2)> properties: media.role = "video" media.name = "audio stream" application.name = "VLC media player (LibVLC 3.0.9.2)" native-protocol.peer = "UNIX socket client" native-protocol.version = "33" application.id = "org.VideoLAN.VLC" application.version = "3.0.9.2" application.icon_name = "vlc" application.language = "es_ES.UTF-8" application.process.id = "4433" application.process.user = "jochoa" application.process.host = "jochoa-pc" application.process.binary = "vlc" window.x11.display = ":0" application.process.machine_id = "55b959beaf3c4e8c885de71ed85401c1" application.process.session_id = "c1" module-stream-restore.id = "sink-input-by-media-role:video" ------------------- The more curious thing is that when i run in a terminal the command: inxi -Aaaz Audio: Device-1: NVIDIA MCP61 High Definition Audio vendor: ASRock driver: snd_hda_intel v: kernel bus ID: 00:05.0 chip ID: 10de:03f0 Sound Server: ALSA v: k5.8.0-53-generic It sounds that pulseAudio is not available, although when I start pulseaudio ps ax | grep pulse 2494 ? S<sl 0:02 /usr/bin/pulseaudio --daemonize=no --log-target=journal 2685 ? Sl 0:01 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libpulseaudio-plugin.so 19 14680075 pulseaudio Complemento de PulseAudio Ajustar el volumen del sistema de sonido de PulseAudio 11341 ? S<l 0:00 pulseaudio --start 11770 pts/0 S+ 0:00 grep pulse I could still not see where the problem is. Regards Re: libasound2 not working after update - Moltke - 05-26-2021 I'm quite not sure, because you didn't use BBcode and read all that is a bit messy, but it seems that the audio device might be not the right one, make sure that pulse is using the right device. If you've set this via configuration files, undo that, reboot and let pulseaudio to choose the audio device to use. Re: libasound2 not working after update - TheDead - 05-27-2021 I think Moltke could be on to something... 1.Original post said: snd_hda_codec_generic,snd_hda_codec_realtek 2. Audio device: NVIDIA Corporation MCP61 High Definition Audio (rev a2) Subsystem: ASRock Incorporation MCP61 High Definition Audio ...but them it says : Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel 3. Then recently: Destino por defecto: alsa_output.pci-0000_00_05.0.analog-stereo Fuente por defecto: alsa_input.usb-KYE_Systems_Corp._FaceCam_VGA-02.mono-fallback 4. Then last : sysdefault:CARD=NVidia HDA NVidia, ALC887-VD Analog Refering the the Widnows world, sound output goes trough different "channels/outputs" so the chipset and output could display differently. But from in all I see HDA Generic, Realtek, Intel then nVidia. Maybe the output tries to go to a USB device (webcam, headphone, cellular, mp3 player, illuminating rock ). Point 3. mentions a webcam (?), so I would disconnect it and anything USB other than mouse and keyboard if possible and reboot. I'm still a Linux noob so I can't "decode" all those logs myself. Maybe it's time to boot a live Linux USB key and check with that. Re: libasound2 not working after update - j8a - 06-07-2021 Hi [member=7109]Moltke[/member] and [member=6733]TheDead[/member] , I finally bought a sound and microphone USB which is suitable for Linux and the result is the following: After a coulple of weeks I hear the sound again!! :wave I updated the BIOS, read to many post in order to have a clue on what has happend to the onboard audio card and I sourrendered. :imsorry Thank you for your time and patience. Regards, |