• Re: [gentoo-user] Help getting my new loudspeakers working, please!

    From Michael@21:1/5 to All on Sun Jan 26 13:04:44 2025
    On Saturday 25 January 2025 15:28:49 Greenwich Mean Time Alan Mackenzie wrote:
    Hello, Dale.
    [snip ...]

    You're absolutely right. I was missing CONFIG_SND_USB_AUDIO, a setting
    that builds in the USB sound driver. I'm not sure how I worked that out,
    but probably somewhere on my Internet searches the concept USB sound chip came up. It doesn't mean a setup where you plugh the loudspeakers into a
    USB socket; it's to do with the internal communication inside the chip
    set, or something like that.

    So now it "works". My new speakers are fine on my old box, but on the
    new one, an MSI Tomahawk board, there's a constant crackling, and a sound something like somebody playing the bongos added in for good measure. In short, utterly unusable. This seems to have been a problem with this
    make of board for many months, but MSI have failed to fix it. I can see
    my still shiny new machine (from August) going back to its seller as a guarantee case.

    If your MSI Tomahawk MoBo comes with a Realtek alc4080 chip, then this fix may be applicable to solve your problem:

    https://mailman.alsa-project.org/pipermail/alsa-devel/2023-January/210407.html

    HTH
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmeWMuwACgkQseqq9sKV Zxm7xA//Xw65auKQRRc9c6LS1d7MqzIyLJY36TJGu0hknPmFNsG6I7rlkGyaO6DQ N6Vxvn5lnsj2ws9kvlCqTkQDWNCvj7unGDFuo5nSsirqsHiyHZbbgEhjn0DMaD7R f1On0Dc69szkmwiFIRALkYAGnVrQHicIGOtWRgN5eZh5ERx2M/qgSgxNS/jHeLJF 5P+ljKkTPUSJs/7i1S55rvghJ09bVdtEXyNRh/pORwAZjjfGADNUo2Uctp31MOsa PjSqRjHs2cor7KetBRgCanJeDohBhxBB8+iGHl+fadJU5ZfVrLVra/Lqn+V0rYi/ YaQAgtaGzMda83tQDwwUPzgnljEIT/ZJzBYZcv9PPBy/GNu9ka6IksKSfQvtqpc+ RNc/BZUeuWKDpKmOIy89onDkbVO4B2UtJ8J8c3VK6N/KNjFR6duK9AOl8CSI0WfJ TQluRUb7902aBqglLU3dWsfp0TDT2gJQjOq2sOLtb3sAsTbZgZ3fKM0eAxqGjiCT GIBGZxLqhkOyk5TaS+WizX+B1D/oouHRAsREDHCTniEK3Tgd1G4x8WalZI0pxbFl 2VgaB0/bcEn5/Z4wHmq2k1DZY8J+ga40FWX6SOyoHDfQytE+LOmm0E9NBqdm0Af9 E7lVLI4AfmBHtotkh/fZd0Z77BqSPaT2ILv1Hk49XyS0T7KSHvQ=
    =culp
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Mackenzie@21:1/5 to All on Fri Jan 24 21:20:01 2025
    Hello, Gentoo.

    I've finally got around to buying a pair of new loadspeakers for my new
    (as of 2024-08) PC. The experience has not been relaxed and obvious.

    I have connected the speakers up physically. I have made the necessary settings in the kernel configuration, rebuilt and rebooted into it. So
    far, so good.

    Then I attempt to use alsamixer to unmute the speakers and, hopefully get
    some sound out of them. This is where my problems start.

    alsamixer displays just one object, labelled S/PDIF in the middle of the screen. I don't have an S/PDIF connection, just an ordinary audio cable
    with a green 3.5 mm jack plug at each end.

    How do I configure alsamixer to show me appropriate things, such as
    volume settings and so on.

    I've tried following https://wiki.gentoo.org/wiki/ALSA, but it is most unhelpful. It describes in detail a few complicated setups, presumably
    for those who understand the basics and want such a setup. It doesn't
    say how to get a simple configuration, such as my own, working.

    I have a /etc/asound.conf file set up, as suggested in the above doc, as:

    defaults.pcm.!card Generic
    defaults.pcm.!device 0
    defaults.pcm.!ctl Generic

    ..

    Before I spend hours reading documentation, could some kind person
    familiar with these things perhaps give me a tip to getting my speakers working.

    Setting up loudspeakers shouldn't be this difficult.

    Thanks in advance for any help!

    --
    Alan Mackenzie (Nuremberg, Germany).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From karl@aspodata.se@21:1/5 to All on Sat Jan 25 09:10:01 2025
    Alan Mackenzie:
    ...
    Then I attempt to use alsamixer to unmute the speakers and, hopefully get some sound out of them. This is where my problems start.

    alsamixer displays just one object, labelled S/PDIF in the middle of the screen. I don't have an S/PDIF connection, just an ordinary audio cable
    with a green 3.5 mm jack plug at each end.
    ...

    I have:
    # aplay --list-devices
    **** List of PLAYBACK Hardware Devices ****
    card 0: SB [HDA ATI SB], device 0: ALC888 Analog [ALC888 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: SB [HDA ATI SB], device 1: ALC888 Digital [ALC888 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: Generic Digital [Generic Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 2: M1010LT [M Audio Delta 1010LT], device 0: ICE1712 multi [ICE1712 multi]
    Subdevices: 0/1
    Subdevice #0: subdevice #0

    And if I do alsamixer -c 1 I also get just one s/pdif in the middle of
    the screen, the graphics card appearantly have one.

    alsamixer -c 0 shows the motherboard interface,
    alsamizer -c 2 shows the pci one.

    Perhaps you have more than one interface.

    ///

    There is a debug tool /usr/sbin/alsa-info.sh if you install media-sound/alsa-utils

    You can possible get better help at linux-audio-user at
    lists.linuxaudio.org

    Regards,
    /Karl Hammar

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Sat Jan 25 11:30:39 2025
    On Saturday 25 January 2025 08:00:12 Greenwich Mean Time karl@aspodata.se wrote:
    Alan Mackenzie:
    ...

    Then I attempt to use alsamixer to unmute the speakers and, hopefully get some sound out of them. This is where my problems start.

    alsamixer displays just one object, labelled S/PDIF in the middle of the screen. I don't have an S/PDIF connection, just an ordinary audio cable with a green 3.5 mm jack plug at each end.

    ...

    I have:
    # aplay --list-devices
    **** List of PLAYBACK Hardware Devices ****
    card 0: SB [HDA ATI SB], device 0: ALC888 Analog [ALC888 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: SB [HDA ATI SB], device 1: ALC888 Digital [ALC888 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: Generic Digital [Generic Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 2: M1010LT [M Audio Delta 1010LT], device 0: ICE1712 multi [ICE1712 multi] Subdevices: 0/1
    Subdevice #0: subdevice #0

    And if I do alsamixer -c 1 I also get just one s/pdif in the middle of
    the screen, the graphics card appearantly have one.

    alsamixer -c 0 shows the motherboard interface,
    alsamizer -c 2 shows the pci one.

    Perhaps you have more than one interface.

    ///

    There is a debug tool /usr/sbin/alsa-info.sh if you install media-sound/alsa-utils

    You can possible get better help at linux-audio-user at
    lists.linuxaudio.org

    Regards,
    /Karl Hammar

    Assuming kernel drivers for all your devices are configured, either in kernel or as loadable modules, you may have to specify the desired order in which different sound devices are initialised. This is achieved by adding an option in /etc/asound.conf, or ~/.asoundrc, to specify which should be the default card/device, and/or specifying the order in which the devices are initialised by the driver if you only have one sound card, using a sound module option, e.g. this is what I have in /etc/modprobe.d/alsa.conf on a desktop here;

    # Set this to the correct number of cards.
    options snd cards_limit=2

    options snd-hda-intel id=Generic_1 index=0
    options snd-hda-intel id=Generic index=1
    options snd-hda-intel index=1,0

    See this section in the wiki page:

    https://wiki.gentoo.org/wiki/ALSA#Laptops_with_HDMI_audio_output

    To find your cards and devices you can 'cat /proc/asound/cards', run 'aplay - L', or press F2 and F6 in alsamixer.

    Once the cards/devices have been initialised in the desired order you can use your alsamixer or the sound mixer of your desktop GUI to unmute the port/jack you connect your speakers to and adjust their volume.

    You may also want to read this page to make your desktop work with pipewire/ wireplumber:

    https://wiki.gentoo.org/wiki/PipeWire

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmeUy18ACgkQseqq9sKV Zxn84g//bH5XqWiBAoPkyxJ8gZUyhbKC/UWoY5KuGjvFYRhWGHLwzGGI2lBL2k2g pbbp4yZODcME/Dw7UMJWci5qa8fKnDbXffHbdHs8Hpv4YRGvCW5Qae9mcxTtxynK R9pVNgrSTaQN1djhAHVbdOT4L8IgeUXIyscIHki6kuvnKkL9spc7NdNmok5zW+OB F1QQm/EZgTLVogb/UyfcL75/dMGNsDw1zbaw+1JLaymtoJxC/RdOb15PTQVvEiUD F7EKWSEywy+ffMOtEpSLC5KitrR/bnb0TkU3F5ICUDfU1HDFm9I9h6jcotS+jCNl GJWW32yh6DdGJHXgj32+JArMq/rAithAeTXrnnx6jlIdMlzMbOolI6dKWXPYh568 qkTTwnSvuEvLKhRD4CkXRKjQhVLqPXdNdlkISbIW9fMgX8ySM+8pTLfeOmVie/aJ Bc25l/lhqzsK6C8K44s9rHEvhe1pZkl+tCpbUBCbqjd0XlJn2BZcQCpl2asHnCRU BOhDK+bhazL/C6SE4lELAjNoTPswcBpUEzVnaJuvjiSwOnYq+Bo6vij5zqOaPM56 YfsPuSNtgD7kE0USKzFRgeeUTYdm/KrZcD70BKeEB98mfGkSx3YEhe8MYaYe9acG Jnig2XOxwhmA+y+S6SVOQVpji5InXK1DY+U+Ao+bZdUkZXNeKlk=
    =ONwW
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Mackenzie@21:1/5 to karl@aspodata.se on Sat Jan 25 16:50:01 2025
    Hello, Karl.

    On Sat, Jan 25, 2025 at 09:00:12 +0100, karl@aspodata.se wrote:
    Alan Mackenzie:
    ...
    Then I attempt to use alsamixer to unmute the speakers and, hopefully get some sound out of them. This is where my problems start.

    alsamixer displays just one object, labelled S/PDIF in the middle of the screen. I don't have an S/PDIF connection, just an ordinary audio cable with a green 3.5 mm jack plug at each end.
    ...

    I have:
    # aplay --list-devices
    **** List of PLAYBACK Hardware Devices ****
    card 0: SB [HDA ATI SB], device 0: ALC888 Analog [ALC888 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: SB [HDA ATI SB], device 1: ALC888 Digital [ALC888 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: Generic Digital [Generic Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 2: M1010LT [M Audio Delta 1010LT], device 0: ICE1712 multi [ICE1712 multi]
    Subdevices: 0/1
    Subdevice #0: subdevice #0

    And if I do alsamixer -c 1 I also get just one s/pdif in the middle of
    the screen, the graphics card appearantly have one.

    I got them working (sort of) in the end, I was just lacking a USB sound
    driver.

    Just a point, the documentation of all these commands is shockingly bad: alsamixer critically depends on /etc/asound.conf, but doesn't even
    mention it in its man page. It would appear that /etc/asound.conf is
    wholly undocumented anywhere. aplay likewise just says what its options
    do, without saying, for example, what form the "name" following -D has,
    and what its semantics are. Get this wrong and the half error message
    you get is just "file not found".

    Last night I booted up the Gentoo live CD, from around 6 months ago, to
    see if that would give me a clue, via dmesg, what driver I was missing;
    no, that didn't work, it just gave an error message for the sound.

    alsamixer -c 0 shows the motherboard interface,
    alsamizer -c 2 shows the pci one.

    Perhaps you have more than one interface.

    Indeed, something comes out of the HDMI socket, too. That was quite troublesome when I was trying to debug things.

    ///

    There is a debug tool /usr/sbin/alsa-info.sh if you install media-sound/alsa-utils

    You can possible get better help at linux-audio-user at
    lists.linuxaudio.org

    linuxaudio.org didn't actually look too helpful - they're more into
    helping people run music creation programs than configuring sound cards.

    Regards,
    /Karl Hammar

    --
    Alan Mackenzie (Nuremberg, Germany).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Mackenzie@21:1/5 to Dale on Sat Jan 25 16:40:02 2025
    Hello, Dale.

    On Fri, Jan 24, 2025 at 14:53:30 -0600, Dale wrote:
    Alan Mackenzie wrote:
    Hello, Gentoo.

    I've finally got around to buying a pair of new loadspeakers for my new
    (as of 2024-08) PC. The experience has not been relaxed and obvious.

    I have connected the speakers up physically. I have made the necessary settings in the kernel configuration, rebuilt and rebooted into it. So far, so good.

    Then I attempt to use alsamixer to unmute the speakers and, hopefully get some sound out of them. This is where my problems start.

    alsamixer displays just one object, labelled S/PDIF in the middle of the screen. I don't have an S/PDIF connection, just an ordinary audio cable with a green 3.5 mm jack plug at each end.

    How do I configure alsamixer to show me appropriate things, such as
    volume settings and so on.

    I've tried following https://wiki.gentoo.org/wiki/ALSA, but it is most unhelpful. It describes in detail a few complicated setups, presumably
    for those who understand the basics and want such a setup. It doesn't
    say how to get a simple configuration, such as my own, working.

    I have a /etc/asound.conf file set up, as suggested in the above doc, as:

    defaults.pcm.!card Generic
    defaults.pcm.!device 0
    defaults.pcm.!ctl Generic

    ..

    Before I spend hours reading documentation, could some kind person
    familiar with these things perhaps give me a tip to getting my speakers working.

    Setting up loudspeakers shouldn't be this difficult.

    Thanks in advance for any help!


    I have a similar setup.á I made my speakers from a spare set that didn't
    fit my car and wasn't worth sending back.á Made a nice little box for
    them.á My monitor sits on it.á :-Dá Anyway, I use KDE and the new
    pipewire thingy.á To be fair, pipewire does work better, mostly.á Still,
    you have to unmute in alsa, kmix and all that before using pipewire.á

    If the devices are not showing up, either you didn't load the modules if
    you use those or didn't enable the right drivers in the kernel.á
    Otherwise, they should show up.á I don't think there is any magic to
    this.á It never has been for me anyway.á

    You're absolutely right. I was missing CONFIG_SND_USB_AUDIO, a setting
    that builds in the USB sound driver. I'm not sure how I worked that out,
    but probably somewhere on my Internet searches the concept USB sound chip
    came up. It doesn't mean a setup where you plugh the loudspeakers into a
    USB socket; it's to do with the internal communication inside the chip
    set, or something like that.

    So now it "works". My new speakers are fine on my old box, but on the
    new one, an MSI Tomahawk board, there's a constant crackling, and a sound something like somebody playing the bongos added in for good measure. In short, utterly unusable. This seems to have been a problem with this
    make of board for many months, but MSI have failed to fix it. I can see
    my still shiny new machine (from August) going back to its seller as a guarantee case.

    Even if you don't use KDE and pipewire, it should still show up if the
    right drivers are being used.á I'd double or triple check my drivers
    first thing.á Using the command lspci -k might help.á Make sure
    something is loaded then make sure it is the correct drivers.á If
    unsure, booting media from CD/DVD/USB stick and doing a lspci -k there
    should help, if sound works.á I find Knoppix works well with this.á
    Every system that can have sound, has it with Knoppix.á

    Hope that helps.á

    It did, thanks!

    Dale

    :-)á :-)á

    --
    Alan Mackenzie (Nuremberg, Germany).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)