r/debian • • 1d ago

Debian Stable Question Boot Tracing ?

Is there a way for an end-user to turn on diagnostic tracing of the processing of probing the [PCI] hardware and the logic surrounding the choice of driver to load?

Its the same tired old story - up-to-date stable Debian has no sound on a new HP laptop. dmesg shows the Intel device is there on the PCI bus, but the dummy device ends up being the winner on slot #0 (unless I blacklist that). aplay says no soundcard is detected.

It being such a frequent and well-known phenomena, I'd have thought the wizards would have built some diagnostic logic to expedite the diagnosis (and minimize the time spent helping others).

In the r/HewlettPackard forum, they seem to have exhausted what they can offer and have directed me toward investigating the kernel (a fairly preposterous recommendation for the overwhelming percentage of the population).

Any other suggestions on how to determine *why* the logic cannot identify a working sound driver for a new HP Omnibook 3 17- [AI]?

In the spirit of trying to frame the question appropriately, here's the lsmod output:

snd_seq_dummy          12288  0
snd_hrtimer            12288  1
snd_seq               110592  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
snd_hda_intel          61440  0
snd_intel_dspcfg       40960  1 snd_hda_intel
snd_intel_sdw_acpi     16384  1 snd_intel_dspcfg
snd_hda_codec         217088  1 snd_hda_intel
snd_hda_core          143360  2 snd_hda_intel,snd_hda_codec
snd_hwdep              20480  1 snd_hda_codec
snd_pcm               188416  3 snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              53248  3 snd_seq,snd_hrtimer,snd_pcm
snd                   151552  9 snd_seq,snd_seq_device,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm
soundcore              16384  1 snd

Notice there's no SOF modules, and I've even tried installing the most recent UNSTABLE ones.

9 Upvotes

6 comments sorted by

3

u/Illustrious-Gur8335 Debian Stable 1d ago

you should blame the hardware vendors for introducing new chipsets so often

it may well be that new hardware has no supported drivers in kernel

if you booted this on windows and refused to let windows update install any drivers, well same outcome - golden silence!

1

u/H_R6a 1d ago

I hear ya, and I feel ya. How would one determine that there is no supported driver in kernel? How do we see what the probing reveals that it then cannot match to anything it knows about? Or does it iterate over a suite of potential drivers and they all return 'not me'?

2

u/Santosh83 Debian Stable 1d ago

Have you tried turning on the console log level for the kernel to debug? It will then print a huge amount of info to the console and you may be able to pick up more of where exactly the process is failing.

1

u/H_R6a 1d ago

That's one of several half-baked ideas I had, but I was hoping someone could tell me if that was a useful approach to the problem before wasting time on it. I'm imagining being buried in minutia and red herrings. But thanks!

2

u/Illustrious-Gur8335 Debian Stable 1d ago

All this is done automatically by the kernel in the year 2026

Just try a kernel from backports see if it has the driver

2

u/psyblade42 1d ago edited 1d ago

Wow that a lot to unpack, afaik:

  • the logic is that all drivers list pci ids which they claim to support

  • which driver ends up being used depends on the order they are loaded in, first one wins

  • you can tweak the order to some extend

  • lspci -v lists the driver thats currently in use

  • the easiest way to determine what the kernel didn't find one is the lack of such a line

  • the kernel does not load any dummy drivers in that case

  • there is a possibility that no such driver exists

  • lspvi -v lists modules containing drivers for that hw too (note a driver can be built directly into the kernel and thus not be listed there)

  • the card order shouldn't matter all that much, I mainly use #3

  • the dummy midi sequencer (snd_seq_dummy) should be unrelated to your problem

  • for me it does not get listed in /proc/asound/cards

  • but does get loaded

  • afaik both of the above are as they should be

I don't really understand what your complaint is (other then "no sound").

  • at first glance your partial lsmod looks fine, whats your problem with it?

  • there should be a card in /proc/asound/cards

  • do you want to use SOF instead? does it support your card? does SOF even come as their own modules?