Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Testing - Bookworm] [SOLVED] [Sound] No audio input or output devices detected

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
User avatar
quixote
Posts: 118
Joined: 2009-10-15 02:51
Location: Dreaming of alpacas
Been thanked: 1 time

[Testing - Bookworm] [SOLVED] [Sound] No audio input or output devices detected

#1 Post by quixote »

I just upgraded to bookworm from bullseye (now at 6.0.0-5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.10-1 (2022-11-26) x86_64) and generally very impressed. Noticeably faster and smoother and so far everything works very well except...

For some reason it does not see the audio at all. Nothing. At least using the gui sound config. I followed the commands at https://wiki.debian.org/PipeWire#Debian ... 2FUnstable re pipewire.

But when I ran

Code: Select all

LANG=C pactl info | grep '^Server Name'
I just get an error message:

Code: Select all

Connection failure: Connection refused
pa_context_connect() failed: Connection refused 
I tried masking pulseaudio as per https://wiki.debian.org/PulseAudio#Stop ... or_a_while, but all I get is

Code: Select all

Failed to connect to bus: No medium found
I'm stumped. Sound works fine booted into my old install of bullseye. I keep two root partitions and only upgrade one....
Last edited by quixote on 2022-12-06 02:10, edited 1 time in total.

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: [Testing - Bookworm] [Sound] No audio input or output devices detected

#2 Post by sunrat »

Need hardware details. Install inxi and show

Code: Select all

inxi -ACSxxz
also

Code: Select all

aplay -l
Pipewire is still new software in Debian. It has just been introduced for Testing Bookworm so there may be issues, and there a several topics here about problems with Tiger Lake and other CPUs and kernel 6.0.x . You can search to see the conversations but no definitive solutions have been found yet.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2065
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: [Testing - Bookworm] [Sound] No audio input or output devices detected

#3 Post by FreewheelinFrank »

Apologies if these are obvious and you did them but...

Did you do this as user not root?

Did you Install the pipewire-pulse package, and reboot?

User avatar
quixote
Posts: 118
Joined: 2009-10-15 02:51
Location: Dreaming of alpacas
Been thanked: 1 time

Re: [Testing - Bookworm] [Sound] No audio input or output devices detected

#4 Post by quixote »

Yes, running as root. (Well, sudo. I know that can make a difference sometimes, but not in this case, I think?). Yes, installed pipewire-pulse & rebooted.

I do understand that bookworm is frontier-ish. Still, it's nice out here :D , except for the occasional bugs and creepy crawlies. (I started out with ubuntu in 2005, switched to Debian around 2009.) I apply the updates daily and suspect the problem will go away at some point. But it would be nice to know what I can do besides curse at the gui. I can only follow instructions for CLI, usually.

result of $sudo inxi -ACSxxz :

Code: Select all

 System:
  Kernel: 6.0.0-5-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    Console: pty pts/1 wm: kwin_x11 DM: SDDM Distro: Debian GNU/Linux
    bookworm/sid
CPU:
  Info: dual core model: Intel Core i7-7500U bits: 64 type: MT MCP
    arch: Amber/Kaby Lake note: check rev: 9 cache: L1: 128 KiB L2: 512 KiB
    L3: 4 MiB
  Speed (MHz): avg: 1400 high: 2900 min/max: 400/3500 cores: 1: 900 2: 902
    3: 2900 4: 900 bogomips: 23199
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo ThinkPad X1 Carbon
    5th Gen driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:9d71
  Sound API: ALSA v: k6.0.0-5-amd64 running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.61 running: yes
result of aplay -l (as user):

Code: Select all

**** List of PLAYBACK Hardware Devices ****
ALSA lib conf.c:4004:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so (/lib/x86_64-linux-gnu/libsndfile.so.1: undefined symbol: lame_encode_buffer_interleaved_int)
ALSA lib control.c:1528:(snd_ctl_open_noupdate) Invalid CTL hw:0
aplay: device_list:284: control open (0): No such file or directory

User avatar
el_koraco
Posts: 242
Joined: 2011-10-20 11:49
Has thanked: 3 times
Been thanked: 8 times

Re: [Testing - Bookworm] [Sound] No audio input or output devices detected

#5 Post by el_koraco »

quixote wrote: 2022-12-02 19:18 Yes, running as root. (Well, sudo. I know that can make a difference sometimes, but not in this case, I think?). Yes, installed pipewire-pulse & rebooted.

I do understand that bookworm is frontier-ish. Still, it's nice out here :D , except for the occasional bugs and creepy crawlies. (I started out with ubuntu in 2005, switched to Debian around 2009.) I apply the updates daily and suspect the problem will go away at some point. But it would be nice to know what I can do besides curse at the gui. I can only follow instructions for CLI, usually.
You have to apply the commands as user, not root. Pipewire runs as a user service, like pulseaudio.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2065
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: [Testing - Bookworm] [Sound] No audio input or output devices detected

#6 Post by FreewheelinFrank »

For

Code: Select all

Intel Sunrise Point-LP HD Audio
Install

Code: Select all

firmware-sof-signed
and make sure

Code: Select all

alsa-ucm-conf
is installed (it should be), then reboot.

If that doesn't work, force the legacy driver with

Code: Select all

options snd-intel-dspcfg dsp_driver=1
https://bbs.archlinux.org/viewtopic.php?id=265211

Addendum:

If sound still doesn't work, try disabling automute in alsamixer as described here:

https://askubuntu.com/questions/1129013 ... p-hd-audio

User avatar
quixote
Posts: 118
Joined: 2009-10-15 02:51
Location: Dreaming of alpacas
Been thanked: 1 time

Re: [Testing - Bookworm] [Sound] No audio input or output devices detected

#7 Post by quixote »

Thank you all!

I should have installed as user? Nobody tells me anything :P ! I'm sure if I go back and look, there'll be a "$" before the command, not a "#" :redface:

Anyway, I'll re-try and try your suggestions, Frank, and be back.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2065
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: [Testing - Bookworm] [Sound] No audio input or output devices detected

#8 Post by FreewheelinFrank »

quixote wrote: 2022-12-03 17:46 Thank you all!

I should have installed as user? Nobody tells me anything :P ! I'm sure if I go back and look, there'll be a "$" before the command, not a "#" :redface:

Anyway, I'll re-try and try your suggestions, Frank, and be back.
Not installed as user, run the command in your first post as user. It doesn't work as root.

Code: Select all

$ LANG=C pactl info | grep '^Server Name'
Server Name: PulseAudio (on PipeWire 0.3.61)

Code: Select all

# LANG=C pactl info | grep '^Server Name'
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: [Testing - Bookworm] [Sound] No audio input or output devices detected

#9 Post by craigevil »

The inxi command that was posted should show something like this"
Sound API: ALSA v: k5.15.80-v8+ running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.61 running: yes
Had the same thing happen yesterday, check that all of the right pipewire packages are installed.
That said I think what fixed it for me was removing "pipewire-alsa".

User avatar
quixote
Posts: 118
Joined: 2009-10-15 02:51
Location: Dreaming of alpacas
Been thanked: 1 time

Re: [Testing - Bookworm] [Sound] No audio input or output devices detected

#10 Post by quixote »

W00T. Success. Unfortunately, I was getting frustrated so I was kind of throwing commands at the system and I'm not sure which one(s) solved it. I'll try to retrace here, but I'm not sure I have it exactly right.

I installed

Code: Select all

firmware-sof-signed

Code: Select all

alsa-ucm-conf
was already installed.

(Edited to add: I should mention that the reason I didn't have firmware-sof-signed already is that it's a "non-free" package, and my /etc/apt/sources.list didn't have that before. Changed it to:

Code: Select all

deb http://ftp.nz.debian.org/debian/ testing main contrib non-free
)

Nothing changed, so I tried to revert the options line as per the archlinux post, but it wasn't clear to me where that options line went. Presumably into /etc/modprobe.d/inteldsp.conf ? But that file wasn't already in /etc/modprobe.d, so I created it and put the line in, but that didn't help.

When I reviewed the pipewire instructions, I noticed a paragraph talking about installing

Code: Select all

pipewire-audio-client-libraries
, but that gave me an error about being unable to install the pipewire-alsa dependency because of held packages. But I don't have any held packages, which showhold confirmed. So I tried to install using aptitude instead.

Code: Select all

sudo aptitude install pipewire-audio-client-libraries
That actually installed after pulling in about five dependencies and deleting about three pulseaudio files it disliked. Felt a bit nervous telling it to go ahead....

Then ran as user:

Code: Select all

$ systemctl --user --now enable wireplumber.service
and rebooted ...

and suddenly had sound! :mrgreen: :D :o :mrgreen:

Thanks so much for your help!

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: [Testing - Bookworm] [Sound] No audio input or output devices detected

#11 Post by sunrat »

quixote wrote: 2022-12-06 02:09...installing

Code: Select all

pipewire-audio-client-libraries
, but that gave me an error about being unable to install the pipewire-alsa dependency because of held packages. But I don't have any held packages, which showhold confirmed. So I tried to install using aptitude instead.

Code: Select all

sudo aptitude install pipewire-audio-client-libraries
That actually installed after pulling in about five dependencies and deleting about three pulseaudio files it disliked. Felt a bit nervous telling it to go ahead....
It would be interesting to know exactly which package/s were causing the install to fail.

pipewire-audio-client-libraries is a transitional package that just installs pipewire-alsa and pipewire-jack, both of which should only be needed if you are running applications with direct ALSA or JACK outputs. Normally pipewire-pulse would cover most desktop applications.

I suspect installing the sof firmware and activating wireplumber were the golden steps here. :wink:
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
quixote
Posts: 118
Joined: 2009-10-15 02:51
Location: Dreaming of alpacas
Been thanked: 1 time

Re: [Testing - Bookworm] [SOLVED] [Sound] No audio input or output devices detected

#12 Post by quixote »

"I suspect installing the sof firmware and activating wireplumber were the golden steps here."

Indeed. I bet you're right.

As to what the files actually were, I closed the terminal before I made notes, and I don't know where you look up a possible log file. I'll be glad to look if you can point me in the right direction.

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: [Testing - Bookworm] [SOLVED] [Sound] No audio input or output devices detected

#13 Post by sunrat »

quixote wrote: 2022-12-07 03:42As to what the files actually were, I closed the terminal before I made notes, and I don't know where you look up a possible log file. I'll be glad to look if you can point me in the right direction.
/var/log/apt/ contains history logs which record what has been installed, but probably not held packages or error info.
Terminals record command history you can search with grep like:

Code: Select all

history |grep whatever
but again, won't record error messages.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

barlafuss
Posts: 24
Joined: 2007-11-11 17:49
Location: Milan

Re: [Testing - Bookworm] [SOLVED] [Sound] No audio input or output devices detected

#14 Post by barlafuss »

interesting, need to switch to pipewire on laptop, soon or later ...

Following.

User avatar
quixote
Posts: 118
Joined: 2009-10-15 02:51
Location: Dreaming of alpacas
Been thanked: 1 time

Re: [Testing - Bookworm] [SOLVED] [Sound] No audio input or output devices detected

#15 Post by quixote »

sunrat, I tried the history command, but that didn't record any uninstall or remove commands. Bit puzzled. Maybe I did that part within synaptic, once I knew which packages to look for? The moral of the story is for me to take proper notes! I've been telling myself that for 20 years.

var/log/apt contains logs only of system upgrades. So that doesn't seem useful either.

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: [Testing - Bookworm] [SOLVED] [Sound] No audio input or output devices detected

#16 Post by sunrat »

@quixote apt log and history don't log Synaptic AFAIK.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2065
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: [Testing - Bookworm] [SOLVED] [Sound] No audio input or output devices detected

#17 Post by FreewheelinFrank »

Synaptic has a history log.

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: [Testing - Bookworm] [SOLVED] [Sound] No audio input or output devices detected

#18 Post by sunrat »

FreewheelinFrank wrote: 2022-12-13 00:08 Synaptic has a history log.
I know you can see it in Synaptic GUI under File > History, but it saves its history in /root/.synaptic/log/ , not in /var/log/apt/
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2065
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: [Testing - Bookworm] [SOLVED] [Sound] No audio input or output devices detected

#19 Post by FreewheelinFrank »

sunrat wrote: 2022-12-13 00:50
FreewheelinFrank wrote: 2022-12-13 00:08 Synaptic has a history log.
I know you can see it in Synaptic GUI under File > History, but it saves its history in /root/.synaptic/log/ , not in /var/log/apt/
quixote is looking for packages they removed with Synaptic, and doesn't appear to have looked in Synaptic history, which is why I mentioned it.

beowulf_deb
Posts: 1
Joined: 2023-06-16 23:36

Re: [Testing - Bookworm] [SOLVED] [Sound] No audio input or output devices detected

#20 Post by beowulf_deb »

I had the same issue and fixed it like this:

Code: Select all

sudo apt install wireplumber
systemctl --user --now enable wireplumber.service

Post Reply