Solved No sound in Lenovo Thinkpad T410 - Conexant CX20585

I'm trying to make my Lenovo to work at best with FreeBSD 13, but I cannot get any sound from the internal speakers, while it works via the HDMI external port.

Code:
% uname -a
FreeBSD olivia 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr  9 04:24:09 UTC 2021     root@releng1.nyi.freebsd.org:
/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

% sudo cat /dev/sndstat  
Installed devices:
pcm0: <Conexant CX20585 (Right Analog)> (play/rec) default
pcm1: <Conexant CX20585 (Internal Analog)> (play/rec)
pcm2: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
pcm3: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
No devices installed from userspace.

When I play some audio, either locally or thru a web browser, I can see the audio level peaks thru the volume setting application (KDE Plasma), but even switching to another audio device does not provide any sound, only a little background noise.

I've tried to load the snd_driver module, as explained in the handbook <https://docs.freebsd.org/en/books/handbook/multimedia/#sound-setup>, but the output does not change at all:

Code:
 % sudo kldload snd_driver
% sudo cat /dev/sndstat  
Installed devices:
pcm0: <Conexant CX20585 (Right Analog)> (play/rec) default
pcm1: <Conexant CX20585 (Internal Analog)> (play/rec)
pcm2: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
pcm3: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
No devices installed from userspace.

I've tried to switch to pcm1, by setting in /etc/sysctl.conf the line:

Code:
hw.snd.default_unit=1

and rebooted, but nothing has changed (except that pcm1 now is the default audio device).

The /boot/loader.conf contains:

Code:
sound_enable="YES"
snd_hda_load="YES"

I'm running out of ideas here, so please provide some hint.

I'm sure the audio device is working fine, I've tested with...ehm...another operating system (Linux). I've also noted that in general, the volume peak reported by KDE sound applet is really low, however I confirm no sound at all is audible even with the volume of the speaker at the massimum level.
 
I'm trying to make my Lenovo to work at best with FreeBSD 13, but I cannot get any sound from the internal speakers, while it works via the HDMI external port.

Code:
% uname -a
FreeBSD olivia 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr  9 04:24:09 UTC 2021     root@releng1.nyi.freebsd.org:
/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

% sudo cat /dev/sndstat
Installed devices:
pcm0: <Conexant CX20585 (Right Analog)> (play/rec) default
pcm1: <Conexant CX20585 (Internal Analog)> (play/rec)
pcm2: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
pcm3: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
No devices installed from userspace.

When I play some audio, either locally or thru a web browser, I can see the audio level peaks thru the volume setting application (KDE Plasma), but even switching to another audio device does not provide any sound, only a little background noise.

I've tried to load the snd_driver module, as explained in the handbook <https://docs.freebsd.org/en/books/handbook/multimedia/#sound-setup>, but the output does not change at all:

Code:
 % sudo kldload snd_driver
% sudo cat /dev/sndstat
Installed devices:
pcm0: <Conexant CX20585 (Right Analog)> (play/rec) default
pcm1: <Conexant CX20585 (Internal Analog)> (play/rec)
pcm2: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
pcm3: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
No devices installed from userspace.

I've tried to switch to pcm1, by setting in /etc/sysctl.conf the line:

Code:
hw.snd.default_unit=1

and rebooted, but nothing has changed (except that pcm1 now is the default audio device).

The /boot/loader.conf contains:

Code:
sound_enable="YES"
snd_hda_load="YES"

I'm running out of ideas here, so please provide some hint.

I'm sure the audio device is working fine, I've tested with...ehm...another operating system (Linux). I've also noted that in general, the volume peak reported by KDE sound applet is really low, however I confirm no sound at all is audible even with the volume of the speaker at the massimum level.

> KDE Plasma

Please note when switching to PCM 1 or 2 etc... using sysctl hw.snd.default_unit=2 (while your desktop is running for example) then you need to restart pulseaudio with pulseaudio -k.
 
> KDE Plasma

Please note when switching to PCM 1 or 2 using sysctl hw.snd.default_unit=2 (while your desktop is running for example) then you need to restart pulseaudio with pulseaudio -k.

I've rebooted the whole computer, and checked that /dev/sndstat lists pcm1 as default. Yet not sound at all.
However, I've tried to issue pulseaudio -k and the result could lead to some problem:

Code:
% sudo pulseaudio -k
E: [(null)] main.c: Failed to kill daemon: No such process

The package is installed, so I could be missing something to enable it?

Code:
 % pkg info pulseaudio
pulseaudio-14.2_3
Name           : pulseaudio
Version        : 14.2_3
Installed on   : Wed Oct 20 10:19:02 2021 CEST


If I try to kill it as a normal user, I got a slightly different message, that leads to the same error:

Code:
% pulseaudio -k
W: [(null)] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities s
upport.
E: [(null)] main.c: Failed to kill daemon: No such process
 
Hi Luca,

Can you try adding the following settings to your /boot/device.hints file?

Code:
# Speakers and headphones
hint.hdac.0.cad0.nid31.config="as=1 seq=0 device=Speaker"
hint.hdac.0.cad0.nid25.config="as=1 seq=15 device=Headphones"

You will probably need to reboot to get the settings to take effect.
 
/boot/device.hints
Before touching anything there...

Does sound work without PulseAudio? At this point, we don't know if the problem is PulseAudio-specific or system-wide. Set media.cubeb.backend to oss in Firefox about:config (this will make Firefox output sound to OSS directly instead of using PulseAudio) and try to play something from that browser.

Also, check the output of mixer, maybe your internal speakers are just muted or have their volume set too low.
 
Before touching anything there...

Does sound work without PulseAudio? At this point, we don't know if the problem is PulseAudio-specific or system-wide. Set media.cubeb.backend to oss in Firefox about:config (this will make Firefox output sound to OSS directly instead of using PulseAudio) and try to play something from that browser.

Also, check the output of mixer, maybe your internal speakers are just muted or have their volume set too low.

I don't have such setting in my Firefox 93, I've media.cubeb.loggin_level, media.cubeb.sandbox which is boolean, and media.cubeb.output_voice_routing, which is a boolean too. Is the fact that is missing the media.cubeb.backend a symptom of the problem?
 
Hi Luca,

Can you try adding the following settings to your /boot/device.hints file?

Code:
# Speakers and headphones
hint.hdac.0.cad0.nid31.config="as=1 seq=0 device=Speaker"
hint.hdac.0.cad0.nid25.config="as=1 seq=15 device=Headphones"

You will probably need to reboot to get the settings to take effect.

No luck! Even after a reboot, these settings did not change anything.
If that matters, here's the output of mixer, that as far as I understand states the volume level is at its maximum:

Code:
% mixer
Mixer rec      is currently set to 100:100
Mixer monitor  is currently set to  42:42
Recording source: monitor
 
I don't have such setting in my Firefox 93
That's normal, you have to add it manually.
In about:config, type media.cubeb.backend, select "String", click on the "+" symbol, type oss and press Enter.

Code:
% mixer
Mixer rec      is currently set to 100:100
Mixer monitor  is currently set to  42:42
Recording source: monitor
That's interesting: there isn't any output on your current sound unit, only inputs. You won't get any sound with that.
Given that you're still using pcm1 as a default, change it back to pcm0. What does mixer say then?
 
I must have scrwed up the mixer output, by means of doing something nasty on my devices.
Here's what appear after the boot:

Code:
% mixer
Mixer vol      is currently set to  61:61
Mixer pcm      is currently set to 100:100
Mixer rec      is currently set to   0:0
Mixer monitor  is currently set to  42:42
Recording source: monitor
% cat /dev/sndstat
Installed devices:
pcm0: <Conexant CX20585 (Right Analog)> (play/rec)
pcm1: <Conexant CX20585 (Internal Analog)> (play/rec) default
pcm2: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
pcm3: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
No devices installed from userspace.
 
Here it is.

Code:
% sysctl dev.hdaa
dev.hdaa.1.init_clear: 0
dev.hdaa.1.reconfig: 0
dev.hdaa.1.gpo_config:  
dev.hdaa.1.gpo_state:  
dev.hdaa.1.gpio_config:  
dev.hdaa.1.gpio_state:  
dev.hdaa.1.gpi_state:  
dev.hdaa.1.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref
dev.hdaa.1.nid7: vendor widget [DISABLED]
     Widget cap: 0x00f00000

dev.hdaa.1.nid6_original: 0x18560030 as=3 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid6_config: 0x18560030 as=3 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid6: pin: Digital-out (Jack) [DISABLED]
     Widget cap: 0x0040778d PWR DIGITAL UNSOL 8CH
        Pin cap: 0x09000094 PDC OUT HDMI DP HBR
     Pin config: 0x18560030 as=3 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
    Pin control: 0x00000040 OUT
     Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
    Connections: 2
          + [DISABLED] <- nid=2 [audio output] (selected)
          + <- nid=3 [audio output]

dev.hdaa.1.nid5_original: 0x18560020 as=2 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid5_config: 0x18560020 as=2 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid5: pin: Digital-out (Jack)
     Widget cap: 0x0040778d PWR DIGITAL UNSOL 8CH
    Association: 1 (0x0001)
        Pin cap: 0x09000094 PDC OUT HDMI DP HBR
     Pin config: 0x18560020 as=2 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
    Pin control: 0x00000040 OUT
     Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
    Connections: 2
          + [DISABLED] <- nid=2 [audio output]
          + <- nid=3 [audio output] (selected)

dev.hdaa.1.nid4_original: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid4_config: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid4: pin: Digital-out (Jack)
     Widget cap: 0x0040778d PWR DIGITAL UNSOL 8CH
    Association: 0 (0x0001)
        Pin cap: 0x09000094 PDC OUT HDMI DP HBR
     Pin config: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
    Pin control: 0x00000040 OUT
     Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
    Connections: 2
          + <- nid=2 [audio output] (selected)
          + [DISABLED] <- nid=3 [audio output]

dev.hdaa.1.nid3: audio output
     Widget cap: 0x00006611 PWR DIGITAL 8CH
    Association: 1 (0x0001)
            OSS: pcm (pcm)
     Stream cap: 0x00000005 AC3 PCM
        PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz

dev.hdaa.1.nid2: audio output
     Widget cap: 0x00006611 PWR DIGITAL 8CH
    Association: 0 (0x0001)
            OSS: pcm (pcm)
     Stream cap: 0x00000005 AC3 PCM
        PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz

dev.hdaa.1.%parent: hdacc1
dev.hdaa.1.%pnpinfo: type=0x01 subsystem=0x17aa21b5
dev.hdaa.1.%location: nid=1
dev.hdaa.1.%driver: hdaa
dev.hdaa.1.%desc: Intel Ibex Peak Audio Function Group
dev.hdaa.0.init_clear: 0
dev.hdaa.0.reconfig: 0
dev.hdaa.0.gpo_config:  
dev.hdaa.0.gpo_state:  
dev.hdaa.0.gpio_config: 0=keep 1=keep 2=keep 3=keep
dev.hdaa.0.gpio_state: 0=disabled 1=disabled 2=disabled 3=disabled
dev.hdaa.0.gpi_state:  
dev.hdaa.0.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref
dev.hdaa.0.nid37: vendor widget [DISABLED]
     Widget cap: 0x00f00000

dev.hdaa.0.nid36: audio mixer [DISABLED]
     Widget cap: 0x0020050b PWR STEREO
      Input amp: 0x80034a4a mute=1 step=74 size=3 offset=74 (-74/0dB)
    Connections: 2
          + [DISABLED] <- nid=16 [audio output]
          + [DISABLED] <- nid=17 [audio output]

dev.hdaa.0.nid35_original: 0x90a601f0 as=15 seq=0 device=Mic conn=Fixed ctype=Digital loc=Internal color=Unknown misc=1
dev.hdaa.0.nid35_config: 0x90a601f0 as=15 seq=0 device=Mic conn=Fixed ctype=Digital loc=Internal color=Unknown misc=1
dev.hdaa.0.nid35: pin: Mic (Fixed)
     Widget cap: 0x0040040b PWR STEREO
    Association: 3 (0x0001)
            OSS: monitor (monitor)
        Pin cap: 0x00000020 IN
     Pin config: 0x90a601f0 as=15 seq=0 device=Mic conn=Fixed ctype=Digital loc=Internal color=Unknown misc=1
    Pin control: 0x00000020 IN
      Input amp: 0x002f0400 mute=0 step=4 size=47 offset=0 (0/48dB)

dev.hdaa.0.nid34_original: 0x40f001f0 as=15 seq=0 device=Other conn=None ctype=Unknown loc=0x00 color=Unknown misc=1
dev.hdaa.0.nid34_config: 0x40f001f0 as=15 seq=0 device=Other conn=None ctype=Unknown loc=0x00 color=Unknown misc=1
dev.hdaa.0.nid34: pin: Other (None) [DISABLED]
     Widget cap: 0x00400781 PWR DIGITAL UNSOL STEREO
        Pin cap: 0x00000010 OUT
     Pin config: 0x40f001f0 as=15 seq=0 device=Other conn=None ctype=Unknown loc=0x00 color=Unknown misc=1
    Pin control: 0x00000000
    Connections: 1
          + <- nid=33 [audio output] [DISABLED]

dev.hdaa.0.nid33: audio output [DISABLED]
     Widget cap: 0x00000611 PWR DIGITAL STEREO
     Stream cap: 0x00000005 AC3 PCM
        PCM cap: 0x000e0160 16 20 24 bits, 44 48 96 KHz

dev.hdaa.0.nid32_original: 0x40f001f0 as=15 seq=0 device=Other conn=None ctype=Unknown loc=0x00 color=Unknown misc=1
dev.hdaa.0.nid32_config: 0x40f001f0 as=15 seq=0 device=Other conn=None ctype=Unknown loc=0x00 color=Unknown misc=1
dev.hdaa.0.nid32: pin: Other (None) [DISABLED]
     Widget cap: 0x00400781 PWR DIGITAL UNSOL STEREO
        Pin cap: 0x00000010 OUT
     Pin config: 0x40f001f0 as=15 seq=0 device=Other conn=None ctype=Unknown loc=0x00 color=Unknown misc=1
    Pin control: 0x00000000
    Connections: 1
          + <- nid=18 [audio output] [DISABLED]

dev.hdaa.0.nid31_original: 0x901701f0 as=15 seq=0 device=Speaker conn=Fixed ctype=Analog loc=Internal color=Unknown misc=1
dev.hdaa.0.nid31_config: 0x901701f0 as=15 seq=0 device=Speaker conn=Fixed ctype=Analog loc=Internal color=Unknown misc=1
dev.hdaa.0.nid31: pin: Speaker (Fixed)
     Widget cap: 0x00400501 PWR STEREO
    Association: 2 (0x0001)
        Pin cap: 0x00000010 OUT
     Pin config: 0x901701f0 as=15 seq=0 device=Speaker conn=Fixed ctype=Analog loc=Internal color=Unknown misc=1
    Pin control: 0x00000040 OUT
    Connections: 2
          + [DISABLED] <- nid=16 [audio output]
          + <- nid=17 [audio output] (selected)

dev.hdaa.0.nid30_original: 0x40f001f0 as=15 seq=0 device=Other conn=None ctype=Unknown loc=0x00 color=Unknown misc=1
dev.hdaa.0.nid30_config: 0x40f001f0 as=15 seq=0 device=Other conn=None ctype=Unknown loc=0x00 color=Unknown misc=1
dev.hdaa.0.nid30: pin: Other (None) [DISABLED]
     Widget cap: 0x00400481 PWR UNSOL STEREO
        Pin cap: 0x00000024 PDC IN
     Pin config: 0x40f001f0 as=15 seq=0 device=Other conn=None ctype=Unknown loc=0x00 color=Unknown misc=1
    Pin control: 0x00000000

dev.hdaa.0.nid29_original: 0x40f001f0 as=15 seq=0 device=Other conn=None ctype=Unknown loc=0x00 color=Unknown misc=1
dev.hdaa.0.nid29_config: 0x40f001f0 as=15 seq=0 device=Other conn=None ctype=Unknown loc=0x00 color=Unknown misc=1
dev.hdaa.0.nid29: pin: Other (None) [DISABLED]
     Widget cap: 0x00400581 PWR UNSOL STEREO
        Pin cap: 0x00010034 PDC OUT IN EAPD
     Pin config: 0x40f001f0 as=15 seq=0 device=Other conn=None ctype=Unknown loc=0x00 color=Unknown misc=1
    Pin control: 0x00000040 OUT
           EAPD: 0x00000002 EAPD
    Connections: 2
          + <- nid=16 [audio output] (selected)
          + <- nid=17 [audio output]

dev.hdaa.0.nid28_original: 0x612140f0 as=15 seq=0 device=Headphones conn=None ctype=1/8 loc=Ext-Rear color=Green misc=0
dev.hdaa.0.nid28_config: 0x612140f0 as=15 seq=0 device=Headphones conn=None ctype=1/8 loc=Ext-Rear color=Green misc=0
dev.hdaa.0.nid28: pin: Headphones (None) [DISABLED]
     Widget cap: 0x00400581 PWR UNSOL STEREO
        Pin cap: 0x00000014 PDC OUT
     Pin config: 0x612140f0 as=15 seq=0 device=Headphones conn=None ctype=1/8 loc=Ext-Rear color=Green misc=0
    Pin control: 0x00000040 OUT
    Connections: 2
          + <- nid=16 [audio output] (selected)
          + <- nid=17 [audio output]

dev.hdaa.0.nid27_original: 0x04a110f0 as=15 seq=0 device=Mic conn=Jack ctype=1/8 loc=Right color=Black misc=0
dev.hdaa.0.nid27_config: 0x04a110f0 as=15 seq=0 device=Mic conn=Jack ctype=1/8 loc=Right color=Black misc=0
dev.hdaa.0.nid27: pin: Mic (Black Jack)
     Widget cap: 0x00400581 PWR UNSOL STEREO
    Association: 1 (0x0001)
            OSS: mic (mic)
        Pin cap: 0x00011334 PDC OUT IN VREF[ 50 80 HIZ ] EAPD
     Pin config: 0x04a110f0 as=15 seq=0 device=Mic conn=Jack ctype=1/8 loc=Right color=Black misc=0
    Pin control: 0x00000024 IN VREFs
           EAPD: 0x00000002 EAPD
    Connections: 2
          + [DISABLED] <- nid=16 [audio output] (selected)
          + [DISABLED] <- nid=17 [audio output]

dev.hdaa.0.nid26_original: 0x61a190f0 as=15 seq=0 device=Mic conn=None ctype=1/8 loc=Ext-Rear color=Pink misc=0
dev.hdaa.0.nid26_config: 0x61a190f0 as=15 seq=0 device=Mic conn=None ctype=1/8 loc=Ext-Rear color=Pink misc=0
dev.hdaa.0.nid26: pin: Mic (None) [DISABLED]
     Widget cap: 0x00400481 PWR UNSOL STEREO
        Pin cap: 0x00001324 PDC IN VREF[ 50 80 HIZ ]
     Pin config: 0x61a190f0 as=15 seq=0 device=Mic conn=None ctype=1/8 loc=Ext-Rear color=Pink misc=0
    Pin control: 0x00000000

dev.hdaa.0.nid25_original: 0x042110f0 as=15 seq=0 device=Headphones conn=Jack ctype=1/8 loc=Right color=Black misc=0
dev.hdaa.0.nid25_config: 0x042110f0 as=15 seq=0 device=Headphones conn=Jack ctype=1/8 loc=Right color=Black misc=0
dev.hdaa.0.nid25: pin: Headphones (Black Jack)
     Widget cap: 0x00400581 PWR UNSOL STEREO
    Association: 0 (0x0001)
        Pin cap: 0x0000001c PDC HP OUT
     Pin config: 0x042110f0 as=15 seq=0 device=Headphones conn=Jack ctype=1/8 loc=Right color=Black misc=0
    Pin control: 0x000000c0 HP OUT
    Connections: 2
          + <- nid=16 [audio output] (selected)
          + [DISABLED] <- nid=17 [audio output]

dev.hdaa.0.nid24: audio selector [DISABLED]
     Widget cap: 0x0030050d PWR STEREO
     Output amp: 0x00270400 mute=0 step=4 size=39 offset=0 (0/40dB)
    Connections: 4
          + [DISABLED] <- nid=26 [pin: Mic (None)] [DISABLED] (selected)
          + <- nid=27 [pin: Mic (Black Jack)]
          + [DISABLED] <- nid=29 [pin: Other (None)] [DISABLED]
          + [DISABLED] <- nid=30 [pin: Other (None)] [DISABLED]

dev.hdaa.0.nid23: audio selector
     Widget cap: 0x0030050d PWR STEREO
    Association: 1 (0x0001)
            OSS: mic
     Output amp: 0x00270400 mute=0 step=4 size=39 offset=0 (0/40dB)
    Connections: 4
          + [DISABLED] <- nid=26 [pin: Mic (None)] [DISABLED]
          + <- nid=27 [pin: Mic (Black Jack)] (selected)
          + [DISABLED] <- nid=29 [pin: Other (None)] [DISABLED]
          + [DISABLED] <- nid=30 [pin: Other (None)] [DISABLED]

dev.hdaa.0.nid22: audio input [DISABLED]
     Widget cap: 0x00100d1b LRSWAP PWR STEREO
     Stream cap: 0x00000001 PCM
        PCM cap: 0x000e0160 16 20 24 bits, 44 48 96 KHz
      Input amp: 0x8003504a mute=1 step=80 size=3 offset=74 (-74/6dB)
    Connections: 4
          + [DISABLED] <- nid=23 [audio selector] (selected)
          + <- nid=24 [audio selector] [DISABLED]
          + <- nid=35 [pin: Mic (Fixed)]
          + <- nid=36 [audio mixer] [DISABLED]

dev.hdaa.0.nid21: audio input
     Widget cap: 0x00100d1b LRSWAP PWR STEREO
    Association: 3 (0x0001)
     Stream cap: 0x00000001 PCM
        PCM cap: 0x000e0160 16 20 24 bits, 44 48 96 KHz
      Input amp: 0x8003504a mute=1 step=80 size=3 offset=74 (-74/6dB)
    Connections: 4
          + [DISABLED] <- nid=23 [audio selector]
          + [DISABLED] <- nid=24 [audio selector] [DISABLED]
          + <- nid=35 [pin: Mic (Fixed)] (selected)
          + [DISABLED] <- nid=36 [audio mixer] [DISABLED]

dev.hdaa.0.nid20: audio input
     Widget cap: 0x00100d1b LRSWAP PWR STEREO
    Association: 1 (0x0001)
     Stream cap: 0x00000001 PCM
        PCM cap: 0x000e0160 16 20 24 bits, 44 48 96 KHz
      Input amp: 0x8003504a mute=1 step=80 size=3 offset=74 (-74/6dB)
    Connections: 4
          + <- nid=23 [audio selector] (selected)
          + [DISABLED] <- nid=24 [audio selector] [DISABLED]
          + [DISABLED] <- nid=35 [pin: Mic (Fixed)]
          + [DISABLED] <- nid=36 [audio mixer] [DISABLED]

dev.hdaa.0.nid19: beep widget
     Widget cap: 0x0070000c
    Association: -2 (0x0000)
            OSS: speaker (speaker)
     Output amp: 0x000f0707 mute=0 step=7 size=15 offset=7 (-28/0dB)

dev.hdaa.0.nid18: audio output [DISABLED]
     Widget cap: 0x00000611 PWR DIGITAL STEREO
     Stream cap: 0x00000005 AC3 PCM
        PCM cap: 0x000e0160 16 20 24 bits, 44 48 96 KHz

dev.hdaa.0.nid17: audio output
     Widget cap: 0x00000c1d LRSWAP PWR STEREO
    Association: 2 (0x0001)
            OSS: pcm (pcm)
     Stream cap: 0x00000001 PCM
        PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
     Output amp: 0x80034a4a mute=1 step=74 size=3 offset=74 (-74/0dB)

dev.hdaa.0.nid16: audio output
     Widget cap: 0x00000c1d LRSWAP PWR STEREO
    Association: 0 (0x0001)
            OSS: pcm (pcm)
     Stream cap: 0x00000001 PCM
        PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
     Output amp: 0x80034a4a mute=1 step=74 size=3 offset=74 (-74/0dB)

dev.hdaa.0.%parent: hdacc0
dev.hdaa.0.%pnpinfo: type=0x01 subsystem=0x17aa214c
dev.hdaa.0.%location: nid=1
dev.hdaa.0.%driver: hdaa
dev.hdaa.0.%desc: Conexant CX20585 Audio Function Group
dev.hdaa.%parent:

and

Code:
% sysctl dev.hdac
dev.hdac.0.polling: 0
dev.hdac.0.pindump: 0
dev.hdac.0.wake: 0
dev.hdac.0.%parent: pci1
dev.hdac.0.%pnpinfo: vendor=0x8086 device=0x3b56 subvendor=0x17aa subdevice=0x215e class=0x040300
dev.hdac.0.%location: slot=27 function=0 dbsf=pci0:0:27:0 handle=\_SB_.PCI0.HDEF
dev.hdac.0.%driver: hdac
dev.hdac.0.%desc: Intel Ibex Peak HDA Controller
dev.hdac.%parent:

and also, if can help,

Code:
% sysctl dev.hdacc
dev.hdacc.1.%parent: hdac0
dev.hdacc.1.%pnpinfo: vendor=0x8086 device=0x2804 revision=0x00 stepping=0x00
dev.hdacc.1.%location: cad=3
dev.hdacc.1.%driver: hdacc
dev.hdacc.1.%desc: Intel Ibex Peak HDA CODEC
dev.hdacc.0.%parent: hdac0
dev.hdacc.0.%pnpinfo: vendor=0x14f1 device=0x5069 revision=0x03 stepping=0x02
dev.hdacc.0.%location: cad=0
dev.hdacc.0.%driver: hdacc
dev.hdacc.0.%desc: Conexant CX20585 HDA CODEC
dev.hdacc.%parent:

Now, that *DISABLED* in all the devices in the output of dev.hdaa puzzles me, but I don't know how to move forward.
 
Not sure if this was clear or not, however, headphones are working always!
I mean, even if I do
Code:
% doas cat /dev/sndstat
Installed devices:
pcm0: <Conexant CX20585 (Right Analog)> (play/rec)
pcm1: <Conexant CX20585 (Internal Analog)> (play/rec) default
pcm2: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
pcm3: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
No devices installed from userspace.

% sysctl hw.snd.default_unit
hw.snd.default_unit: 1


or select the other pcmi:

Code:
% doas cat /dev/sndstat  
Installed devices:
pcm0: <Conexant CX20585 (Right Analog)> (play/rec) default
pcm1: <Conexant CX20585 (Internal Analog)> (play/rec)
pcm2: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
pcm3: <Intel Ibex Peak (HDMI/DP 8ch)> (play)
No devices installed from userspace.

% sysctl hw.snd.default_unit
hw.snd.default_unit: 0

the headphones are always the only one method to listen to audio. I've understood why pcmi0 is named right analog and that is because the headphones plug is on the right side of the Lenovo.
I've done the above tests editing /etc/sysctl.conf and placing the default_unito to either zero or one, and then rebooted.

The I did another experiment: I played a local mp4, so to bypass the browser.
This time, no matter how I set the pcmi, no sound at all, and also no peak in the volume controller. Even headphones were not working. Can this provide some information?
 
I also use T410, only after i add this to /etc/sysctl.conf the sound is working:
hw.snd.default_unit=1

By default FreeBSD is using the first available sound device reported.
 
I also use T410, only after i add this to /etc/sysctl.conf the sound is working:
hw.snd.default_unit=1

I've already tried this many times, withous any luck. Is there a chance I'm missing something else, like codecs or so, because as I wrote I'm unable to listen (even in the headphones) to a local mp3.
 
"When I play some audio, either locally or thru a web browser, I can see the audio level peaks thru the volume setting application (KDE Plasma), but even switching to another audio device does not provide any sound, only a little background noise."

Going to ask something stupid, but since you see the output are you sure you havent touched any buttons on the unit itself? Like "audio mute" or something that is hindering volume out?

A bit weird since ayleid96 have the same laptop and gets sound output.
 
"When I play some audio, either locally or thru a web browser, I can see the audio level peaks thru the volume setting application (KDE Plasma), but even switching to another audio device does not provide any sound, only a little background noise."

Going to ask something stupid, but since you see the output are you sure you havent touched any buttons on the unit itself? Like "audio mute" or something that is hindering volume out?

A bit weird since ayleid96 have the same laptop and gets sound output.


First of all, the hardware mute led was turned off, so I was sure it was not a problem of the hardware muting button.
However, just as a last resort, I tried to piush the keyboard volume increase button, that displayed "Volume 99%" on the screen, and suddenly the speakers start to play both web and local audio tracks.
I cannot explain, because now pushing the hardware mjute button turns on the red led on the keyboard and mutes the speakers, and I double checked that the outputs were not (software) muted.
Just in case, this is my current configuration:


Code:
% sysctl hw.snd.default_auto hw.snd.default_unit
hw.snd.default_auto: 0
hw.snd.default_unit: 1

So far, this is solved, thank you all for the help!
 
Hi, I go the other way:

bobo@foo:~ $ pkg search alsa
alsa-lib-1.2.2 ALSA compatibility library
alsa-plugins-1.2.2_2 ALSA compatibility library plugins
alsa-seq-server-1.0.0 ALSA MIDI sequencer server
alsa-sndio-0.2_1 ALSA PCM sndio plugin
alsa-utils-1.2.2 ALSA compatibility utilities
balsa-2.5.1_5 Mail reader for the GNOME desktop
libdssialsacompat-1.0.8a_2 Alsa compatibility library to build DSSI
linux-c7-alsa-lib-1.1.8 Advanced Linux Sound Architecture libraries (Linux CentOS 7.9.2009)
linux-c7-alsa-lib-devel-1.1.8 Advanced Linux Sound Architecture headers (Linux CentOS 7.9.2009)
linux-c7-alsa-plugins-oss-1.1.6_3 OSS plugin for ALSA (Linux CentOS 7.9.2009)
linux-c7-alsa-plugins-pulseaudio-1.1.6_1 PulseAudio plugin for ALSA (Linux CentOS 7.9.2009)
linux-c7-alsa-utils-1.1.8 Advanced Linux Sound Architecture utilities (Linux CentOS 7.9.2009)
zita-alsa-pcmi-0.3.2 Easy access to ALSA PCM devices

bobo@foo:~ $ sudo pkg ins -y alsa-lib alsa-utils alsa-plugins

$alsamixer

Unmute with letter m, press Esc to get out, reboot.
 
Back
Top