sound dummy output 21.04

Bug #1939205 reported by Override
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

no more sound device /output since dist upgrade from 20.10 to 21.04

tried both official ubuntu kernel 5.11.0.26 and newer 5.13.8-051308-generic

alsa log:

http://alsa-project.org/db/?f=07dfaad1d5d30948449dc36f0caaf39c99145cce

lsb_release -rd
Description: Ubuntu 21.04
Release: 21.04

apt-cache policy pkgname
N: Unable to locate package pkgname

 ubuntu-bug linux: package not installed

cat /proc/version_signature > version.log
cat: /proc/version_signature: No such file or directory

sudo lspci -vnvn > lspci-vnvn.log
pcilib: sysfs_read_vpd: read failed: Input/output error

be descriptive in helping as im a newbie to linux troubleshoot :)
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu65.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: Unity:Unity7:ubuntu
DistroRelease: Ubuntu 21.04
InstallationDate: Installed on 2013-05-11 (3025 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
Package: linux (not installed)
RebootRequiredPkgs:
 linux-image-5.11.0-31-generic
 linux-base
Tags: hirsute
Uname: Linux 5.13.9-051309-generic x86_64
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: Upgraded to hirsute on 2021-07-19 (34 days ago)
UserGroups: adm audio cdrom dip lpadmin netdev plugdev pulse pulse-access sambashare sudo video
_MarkForUpload: True

Revision history for this message
Hui Wang (hui.wang) wrote :

If you plug a headphone to the Front Headphone Jack or Lineout Jack, could you see a output device?

Revision history for this message
Override (farbauti-19) wrote :

negative, and i dont know how to compile kernels or build sound modules into them...

last time i had to configure sndcard was in rhat 10 yrs ago in a curse snd menu and my soundblaster worked right away

Revision history for this message
Hui Wang (hui.wang) wrote :

OK, please plug a headphone, and run $pa-info > pa-info.txt and upload the pa-info.txt.

thx.

Revision history for this message
Override (farbauti-19) wrote :

pa-info > pa-info.txt
lsof: WARNING: can't stat() tracefs file system /sys/kernel/debug/tracing
      Output information may be incomplete.
dmesg: read kernel buffer failed: Operation not permitted

sudo pa-info > pa-info.txt
[sudo] password for laura:
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
lsof: WARNING: can't stat() fuse.portal file system /run/user/1000/doc
      Output information may be incomplete.

Revision history for this message
Raish khaitu (dragneel101) wrote (last edit ):

The solution that worked for me ():

the solution that worked for me was to compile the kernal using following steps:
cloned the repo: https://github.com/thesofproject/linux.git

and run following commands

```
sudo apt install build-essential libssl-dev ccache bison flex libelf-dev dwarves
sudo apt-get build-dep linux-image-`uname -r` #(the running kernel)
```

and after that go inside the repo folder and

copy over current cofig: cp /boot/config-$(uname -r) .config
Removed/commented from .config file --> #CONFIG_SYSTEM_TRUSTED_KEYS
sudo make menuconfig
sudo make clean
sudo make deb-pkg LOCALVERSION=-custom KDEB_PKGVERSION=$(make kernelversion)-1
cd ..
install the kernal using : sudo dpkg -i linux*

Revision history for this message
Override (farbauti-19) wrote :

Raish khaitu you lost me at "cloned the repo" .... noob here ;)

Revision history for this message
Hui Wang (hui.wang) wrote :

@Raish,

This is a different machine, the fix of #1935850 doesn't work on this machine.

@Override,
Looks the alsa driver already worked (detect the headphone):
 control.40 {
  iface CARD
  name 'Front Headphone Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }

Please run $pacmd list > pacmd-list.txt and upload pacmd-list.txt. Please don't add sudo when running this command.

Revision history for this message
Override (farbauti-19) wrote :

$ pacmd list > pacmd-list.txt
laura@livingroom:~$

Revision history for this message
Override (farbauti-19) wrote :

just installed kernel 5.13.9-051309-generic

didnt fix issue - still dummy output n no sound

Revision history for this message
Hui Wang (hui.wang) wrote :

According to the log of #8, the pulseaudio fails to detect/initialize the sound card:
0 card(s) available.
2 sink input(s) available.
    index: 3
 driver: <protocol-native.c>
 flags:
 state: RUNNING

Is the ubuntu you installed the stock ubuntu 21.04? From the log you provided, the kernel and audio driver worked well, but the pulseaudio had some problem.

Could you debug the pulseaudio to find why there is no valid sound card in the PA?

Revision history for this message
Override (farbauti-19) wrote :

not sure what you mean by stock, it was the 21.04 pushed from dist-upgrade with the 5.11.0.26 kernel

how do i "debug" pulseaudio and the "pa" exactly ? :)

Revision history for this message
Hui Wang (hui.wang) wrote :

The stock ubuntu means the official version: https://iso.mirrors.ustc.edu.cn/ubuntu-releases/21.04/ubuntu-21.04-desktop-amd64.iso

And could you please run 21.04 from installation usb stick (not install from usb stick, just try ubuntu from usb stick) and check if the audio works or not?

To debug pulseaudio:

 edit /lib/systemd/user/pulseaudio.service
 do the change in this file as below:
  #ExecStart=/usr/bin/pulseaudio --daemonize=no --log-target=journal
  ExecStart=/usr/bin/pulseaudio --daemonize=no -vvvv --log-target=file:/home/$user/a.txt

 reboot
 upload the a.txt

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1939205

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Override (farbauti-19) wrote :

will not create the a.txt file ...

tags: added: apport-collected
description: updated
Revision history for this message
Override (farbauti-19) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Override (farbauti-19) wrote : ProcEnviron.txt

apport information

Revision history for this message
Override (farbauti-19) wrote :

will not allow me to change bug status to confirmed

Revision history for this message
Override (farbauti-19) wrote :

also, as of this morning when i open "sound" it doesnt show "dummy output" as a sound card either under output tab... its all blank

when i open "pulse audio volume control" it says it fails to connect to pulseaudio...

how can we force-uninstall pulseaudio completely and reinstall it so it detects and init my soundcard?

Revision history for this message
Override (farbauti-19) wrote :

i have also tried the fol workarounds this morning:

sudo dpkg --purge --force-depends pulseaudio alsa-base alsa-utils
sudo apt install pulseaudio alsa-base alsa-utils

no joy... except now it says dummy output again and "pulse audio volume control" connects to pulseaudio...

then i've tried sudo apt install --reinstall pulseaudio ....

still stuck with no snd or sndcard :(

Override (farbauti-19)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Override (farbauti-19) wrote :

Hui Wang: when booting from https://iso.mirrors.ustc.edu.cn/ubuntu-releases/21.04/ubuntu-21.04-desktop-amd64.iso, the livecd was able to produce sound and detected a soundcard of type "HDMI/DisplayPort Audio built-in"

However still no sound with current system..

Revision history for this message
Override (farbauti-19) wrote :

Hui Wang: when i wrote

#ExecStart=/usr/bin/pulseaudio --daemonize=no --log-target=journal
ExecStart=/usr/bin/pulseaudio --daemonize=no -vvvv --log-target=
file:/home/$user/a.txt

as root (wouldnt let me as user) and rebooted, it did not create the a.txt file

however it grayed out the volume icon in the top right and also removed the "dummy output" under sound settings.

Revision history for this message
Hui Wang (hui.wang) wrote :

Please don't use root, change to use a normal user account.

It changes to gray because the pulseaudio isn't running.

Revision history for this message
Override (farbauti-19) wrote :

Hui Wang: when booting from https://iso.mirrors.ustc.edu.cn/ubuntu-releases/21.04/ubuntu-21.04-desktop-amd64.iso, the livecd was able to produce sound and detected a soundcard of type "HDMI/DisplayPort Audio built-in"

However when i reboot into my installed system there is still no sound with it..

what else can i do to fix this? is there a way to boot from live and somehow "overwrite" just the faulty kernel/subsound system?

Revision history for this message
Override (farbauti-19) wrote :

it refuses to create the log file, tried both as user and sudo

user:

laura@livingroom:~$ pulseaudio --kill && pulseaudio --start -vvvv --log-target=file:~/pulseaudio.txt
E: [pulseaudio] log.c: Failed to open target file '~/pulseaudio.txt'.
D: [pulseaudio] conf-parser.c: Parsing configuration file '/etc/pulse/client.conf'
D: [pulseaudio] conf-parser.c: Failed to open configuration file '/etc/pulse/client.conf.d/01-enable-autospawn.conf': No such file or directory
I: [pulseaudio] main.c: Daemon startup successful.

sudo:

sudo pulseaudio --kill && pulseaudio --start -vvvv --log-target=file:~/pulseaudio.txt
[sudo] password for laura:
E: [pulseaudio] main.c: Failed to kill daemon: No such process
laura@livingroom:~$

Revision history for this message
Override (farbauti-19) wrote :

laura@livingroom:~$ pulseaudio --kill && pulseaudio --start -vvvv --log-target=[file:~/pulseaudio.txt]file:~/pulseaudio.txt
E: [pulseaudio] log.c: Invalid log target.
E: [pulseaudio] cmdline.c: Invalid log target: use either 'syslog', 'journal', 'stderr' or 'auto' or a valid file name 'file:<path>', 'newfile:<path>'.
E: [pulseaudio] main.c: Failed to parse command line.
laura@livingroom:~$ pulseaudio --kill && pulseaudio --start -vvvv --log-target=[file:~/pulseaudio.txt]file:~/pulseaudio.txt
E: [pulseaudio] log.c: Invalid log target.
E: [pulseaudio] cmdline.c: Invalid log target: use either 'syslog', 'journal', 'stderr' or 'auto' or a valid file name 'file:<path>', 'newfile:<path>'.
E: [pulseaudio] main.c: Failed to parse command line.
laura@livingroom:~$ pulseaudio --kill && pulseaudio --start -vvvv --log-target=[file:~/pulseaudio.txt]file:~/pulseaudio.txt
E: [pulseaudio] main.c: Failed to kill daemon: No such process
laura@livingroom:~$ pulseaudio --kill && pulseaudio --start -vvvv --log-target=[file:~/pulseaudio.txt]file:~/pulseaudio.txt
E: [pulseaudio] main.c: Failed to kill daemon: No such process
laura@livingroom:~$ pulseaudio --kill && pulseaudio --start -vvvv --log-target=[file:~/pulseaudio.txt]file:~/pulseaudio.txt
E: [pulseaudio] main.c: Failed to kill daemon: No such process
laura@livingroom:~$ pulseaudio --kill && pulseaudio --start -vvvv --log-target=[file:~/pulseaudio.txt]file:~/pulseaudio.txt
E: [pulseaudio] main.c: Failed to kill daemon: No such process
laura@livingroom:~$ pulseaudio --kill && pulseaudio --start -vvvv --log-target=[file:~/pulseaudio.txt]file:~/pulseaudio.txt
E: [pulseaudio] main.c: Failed to kill daemon: No such process

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.