Page 2 of 3

Re: Lost sound through speakers

Posted: Thu Dec 22, 2022 10:51 pm
by Metal Mick
Huckleberry Finn wrote: Thu Dec 22, 2022 8:24 pm Let's delete the file we created first:

Code: Select all

sudo rm /etc/modprobe.d/sound.conf
Reboot.

(Now it should return to sof driver.)
Done, and yes sof has returned. Speakers are now being detected, though no sound is coming from them. I checked to make sure nothing was muted.
Does it now show anything different in Alsamixer? (Chip and any others)
Yes: Chip = Intel Alderlake-P HDMI
Card= sof-soundwire
You don't have to uninstall the 6.0. You can (if you like) install any kernel (say 5.15) then boot with it via "Advanced Options" on Grub. Furthermore, yours is currently 6.0.0-4, you can even check the 6.0 and install (which will install at the moment linux-image-6.0.0-6mx-amd64-unsigned_6.0.12-1) and try the sound.
I shall, and report back here.
In the meantime, it may be solved by the upcoming 6.1 (without requiring workarounds...)

Pipewire ... you can try of course, but it won't take Pulseaudio's place. (At this point @AVLinux may give better info :) ). Also, distros like Fedora, Garuda (and many bleeding edge ones) have both Pipewire and kernel 6.0 ootb, still same problem there with the same card. (You can even try them on live session if you like).
I understand.
The reason why I asked the Chip no: We used model=dell as the option (which's generic and works on most Dells). This way we can try a more model-specific option.
Got it. I'll follow your lead.

I tried the latest kernel. No change in terms of output. Card and Chip in alsamixer are unchanged.

Re: Lost sound through speakers

Posted: Fri Dec 23, 2022 12:24 am
by AVLinux
Huckleberry Finn wrote: Thu Dec 22, 2022 8:24 pm
Pipewire ... you can try of course, but it won't take Pulseaudio's place. (At this point @AVLinux may give better info :) ). Also, distros like Fedora, Garuda (and many bleeding edge ones) have both Pipewire and kernel 6.0 ootb, still same problem there with the same card. (You can even try them on live session if you like).
Actually I'm pretty ambivalent about PW currently, I've done some testing with the MX Packages and they work as good as you can expect, but for AV Linux and Pro Audio work a properly set up JACK/Pulse system is still to be preferred as there are some latency compensation and synchronization things to still be figured out in Pipewire.. You'd think I'd be forging ahead but I'm an "if it ain't broke then don't fix it" type... :rolleyes:

Re: Lost sound through speakers

Posted: Fri Dec 23, 2022 4:34 am
by Huckleberry Finn
@Metal Mick Oh, sorry, we forgot something:

It's normal that it shows Chip: Pulseaudio etc.

In both cases you need to first press F6 and select the one that begins with zero: "0 HDA Intel PCH" (or so) (then look at the Chip ).

Also you can post

Code: Select all

aplay -l
(it'll show different outputs with different drivers: sof & snd_hda_intel (before & after the echo command and reboot ... If you don't feel lazy of course :D )

In the meantime, you can remove the previous (unnecessary) kernels with "MX Cleanup" . ('Kernel Removal Tool' below the window, easy to use, just 2 clicks.. for example you can remove the 6...-4 now since you already have a more recent one: -6 )

Re: Lost sound through speakers

Posted: Fri Dec 23, 2022 8:02 am
by Huckleberry Finn
Before you try any of the above (when it's still sof driver) , can you try these simply?
  • Boot with systemd (on Grub select that via 'Advanced Options'), then in a terminal

    Code: Select all

    systemctl --user enable pulseaudio ; systemctl --user start pulseaudio
    try the sound.
  • Boot normally (with the default one as always)
    • Code: Select all

      mv .asoundrc .asoundrc.old
      This will backup the current file (if there is one)
    • Code: Select all

      tee .asoundrc <<!
      defaults.pcm.card 0
      defaults.pcm.device 2
      defaults.ctl.card 0
      !
      This will create a new one with these settings.
    • Logout, login (or reboot if you don't feel lazy) try the sound (speakers).

P.S. Just a normal terminal (Ctrl+Alt+T) . No root, no sudo or su etc...

P.P.S. Hoping not to be confusing: Normally I need to wait for the aplay -l output (with sof driver). So, I wrote the above just guessing (not to lose time/make you wait due to long timezone difference). (Just the card no may be 1 instead of 0). So, in case that doesn't work, try also:

Code: Select all

tee .asoundrc <<!
defaults.pcm.card 1
defaults.pcm.device 2
defaults.ctl.card 1
!
Reboot.

Re: Lost sound through speakers

Posted: Fri Dec 23, 2022 11:27 pm
by Metal Mick
Hi H-F,

I have tried your suggestions, being careful to follow each direction correctly> No sound from the speaker(s).

I was thinking/hoping this might be something that could be quickly resolved, but it seems to be a bit more intractable than I expected.

I am very grateful for all your hard work, and I'd understand if at this time of the year, you find you have family matters of more pressing importance, and you wish to put this on the backburner for a while. I won't be tearing my hair out if you do.

On the other hand, if you want to keep going I'm certainly going to be here as often as I can, following directions.

Re: Lost sound through speakers

Posted: Sat Dec 24, 2022 4:56 am
by Huckleberry Finn
I was really hopeful about the .asoundrc (that it would do it).

The only good thing is that it's not completely dead , you have sound. (In the meantime, if there's no sound from the headphones, too we could simply try another option model=... That would also be good, cause for example I use an old "radio-cassette player" as an amplifier : from headphones to that ... (though there's no problem with the speakers etc.) Whatever, in fact there are many things to try. Just: I know that we are very close to the solution ... )

Normally (just loudly thinking) we would install the latest sof firmware, however it's already 2.2.2 on AHS (MX KDE is also AHS) .. 2.2.3 and 2.3 will be available soon (hopefully).

The only thing you need to remember: Just try to use the most recent kernel as possible as they appear in "MX Package Installer" .. so, have a check whenever you remember.. 6.1.x (or higher later)


So, if you don't feel lazy, let's make it sure for the last time: Ctrl+Alt+T :
  • First let's delete all files we created (though the 1st one was already deleted):

    Code: Select all

    sudo rm /etc/modprobe.d/sound*.conf

    Code: Select all

    rm .asoundrc
    Reboot.
  • Just while you're at it: Alsamixer: press F6 , select the one that begins with 0 , now let's see what it shows for the chip
  • Now,

    Code: Select all

    echo 'options snd-intel-dspcfg dsp_driver=1' | sudo tee /etc/modprobe.d/sound.conf
    Reboot.

    Repeat steps 2 and 3 (shortly, post the outputs in both cases..)

Re: Lost sound through speakers

Posted: Sun Dec 25, 2022 10:51 pm
by Metal Mick
Hi H-F,

sorry to take so long to reply, but it was Christmas day in Australia yesterday, Boxing Day shopping this morning.

Files deleted, and rebooted.

The results of aplay -l:

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sofsoundwire [sof-soundwire], device 0: Jack Out (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sofsoundwire [sof-soundwire], device 2: Speaker (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sofsoundwire [sof-soundwire], device 5: HDMI 1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sofsoundwire [sof-soundwire], device 6: HDMI 2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sofsoundwire [sof-soundwire], device 7: HDMI 3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sofsoundwire [sof-soundwire], device 31: Jack Out DeepBuffer (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
In Alsamixer, selecting option 0 of F6, has Card: HDA Nvidia; Chip: Nvidia GPU 9f HDMI/DP

Followed through to the end of your instructions and rebooting. I'll add the results of your final instructions in a short while.

After reboot

results of aplay -l:

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 13: HDMI 7 [HDMI 7]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 14: HDMI 8 [HDMI 8]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 15: HDMI 9 [HDMI 9]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 16: HDMI 10 [HDMI 10]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 17: HDMI 11 [HDMI 11]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Alsamixer shows HDA Intel PCH for the card, Intel Alderlake-P HDMI for the chip, all for option 0

I hope I've followed your instructions correctly - I presumed that for instructions 2 and 3 you meant those which yielded the results above (aplay -l, and checking back with Alsamixer.

Re: Lost sound through speakers

Posted: Mon Dec 26, 2022 9:16 am
by Huckleberry Finn
At least we know our .asoundrc trial above was correct : card 1 device 2 "for speakers":

card 1: sofsoundwire [sof-soundwire], device 2: Speaker (*) []


Oh, I know this is really frustrating, but, could you just do the same for card 1 (option that begins with 1 : probably it looks like: 1 sof-soundwire ) (and look at "chip") ?
Files deleted, and rebooted.
In Alsamixer, selecting option 0 of F6, has Card: HDA Nvidia; Chip: Nvidia GPU 9f HDMI/DP
_______________________

By the way, (once you post the output for chip name) you can try to use it that way: when no (created) files: select sofsoundwire on "MX Select Sound" and/or in Alsamixer and try (in Alsamixer first F6, select 1 sof-soundwire ... then press F5 (for "all") and play with the bars.)


... Then if still nothing:

Code: Select all

tee .asoundrc <<!
defaults.pcm.card 1
defaults.pcm.device 2
defaults.ctl.card 1
!
or

Code: Select all

tee .asoundrc <<!
defaults.pcm.!card sofsoundwire
defaults.pcm.device 2
defaults.ctl.!card sofsoundwire
!
Reboot.

Re: Lost sound through speakers

Posted: Mon Dec 26, 2022 10:11 am
by Huckleberry Finn
Forgot to say:

Merry Christmas and a Happy New Year to you and your family,

and to all MXers, antiXers, even all Linuxers (even "Windowsers" :biggrin: ) on this opportunity.

Re: Lost sound through speakers

Posted: Mon Dec 26, 2022 6:08 pm
by Metal Mick
Hi H-F,

thank you so much for the wishes re Christmas - that was very kind of you, particularly as you're working your heart out to help me with this.

I am not getting frustrated at all, just curious and interested in what we're doing, and more than a little amazed at the process which I'm sure would not be possible in Windows.

Back to business :wink:

In Alsamixer for Soundcard option 1, the card is HDA Nvidia; the chip is Nvidia GPU 9f HDMI/DP - this is not what you were expecting, so I wonder if I have done something wrong, and it makes the instructions that you've added not ones I can follow.

Each time I make an alteration, I try playing a music file and with varying options in Alsamixer and checking in Pulse Audio Control to see if there's any joy.

I am willing to try the samples of code you've embedded though.

Cheers,

Michael P.