You are not logged in.

#1 2018-12-24 09:05:59

charlie_02
Member
Registered: 2018-12-24
Posts: 9

[Solved] [Audio] No sound in neew Arch installation.

Hello everyone,
I just installed Arch and i3 on my laptop computer, and I have no sound at all...
I first tried Alsa and then I added Pulse audio, but it still doesn't work...

The only card that is detected by softwares like vlc is a virtual one.

Here are the most frequently asked command for this kind of issues (my laptop is in French, if you need the results in English, I can translate)

aplay -l:

**** Liste des Périphériques Matériels PLAYBACK ****
carte 0: HDMI [HDA Intel HDMI], périphérique 3: HDMI 0 [HDMI 0]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: HDMI [HDA Intel HDMI], périphérique 7: HDMI 1 [HDMI 1]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: HDMI [HDA Intel HDMI], périphérique 8: HDMI 2 [HDMI 2]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: HDMI [HDA Intel HDMI], périphérique 9: HDMI 3 [HDMI 3]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: HDMI [HDA Intel HDMI], périphérique 10: HDMI 4 [HDMI 4]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 1: PCH [HDA Intel PCH], périphérique 0: ALC236 Analog [ALC236 Analog]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0

hwinfo --sound:

13: PCI 1b.0: 0403 Audio device                                 
  [Created at pci.378]
  Unique ID: u1Nb.ajFckiFstc5
  SysFS ID: /devices/pci0000:00/0000:00:1b.0
  SysFS BusID: 0000:00:1b.0
  Hardware Class: sound
  Model: "Intel Wildcat Point-LP High Definition Audio Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x9ca0 "Wildcat Point-LP High Definition Audio Controller"
  SubVendor: pci 0x17aa "Lenovo"
  SubDevice: pci 0x3823 
  Revision: 0x03
  Driver: "snd_hda_intel"
  Driver Modules: "snd_hda_intel"
  Memory Range: 0xc1214000-0xc1217fff (rw,non-prefetchable)
  IRQ: 49 (408 events)
  Module Alias: "pci:v00008086d00009CA0sv000017AAsd00003823bc04sc03i00"
  Driver Info #0:
    Driver Status: snd_hda_intel is active
    Driver Activation Cmd: "modprobe snd_hda_intel"
  Config Status: cfg=new, avail=yes, need=no, active=unknown

17: PCI 03.0: 0403 Audio device
  [Created at pci.378]
  Unique ID: 3hqH.Wknc7gdwXq2
  SysFS ID: /devices/pci0000:00/0000:00:03.0
  SysFS BusID: 0000:00:03.0
  Hardware Class: sound
  Model: "Intel Broadwell-U Audio Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x160c "Broadwell-U Audio Controller"
  SubVendor: pci 0x17aa "Lenovo"
  SubDevice: pci 0x3823 
  Revision: 0x09
  Driver: "snd_hda_intel"
  Driver Modules: "snd_hda_intel"
  Memory Range: 0xc1210000-0xc1213fff (rw,non-prefetchable)
  IRQ: 52 (178 events)
  Module Alias: "pci:v00008086d0000160Csv000017AAsd00003823bc04sc03i00"
  Driver Info #0:
    Driver Status: snd_hda_intel is active
    Driver Activation Cmd: "modprobe snd_hda_intel"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  

dmesg | grep -i snd:

  Config Status: cfg=new, avail=yes, need=no, active=unknown
[root@lenovo-giacopelli ~]# dmesg | grep -i snd
[    3.662947] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC236: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    3.662952] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.662956] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    3.662958] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    3.662960] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    3.662964] snd_hda_codec_realtek hdaudioC1D0:      Mic=0x19
[    3.662967] snd_hda_codec_realtek hdaudioC1D0:      Internal Mic=0x12
[    4.308374] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])

lsmod:

Module                  Size  Used by
nls_utf8               16384  1
ntfs                  225280  1
ccm                    20480  3
snd_hda_codec_hdmi     57344  1
arc4                   16384  2
intel_rapl             24576  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
joydev                 24576  0
coretemp               16384  0
i915                 2097152  4
mousedev               24576  0
kvm_intel             245760  0
iwlmvm                442368  0
mac80211              925696  1 iwlmvm
ofpart                 16384  0
cmdlinepart            16384  0
intel_spi_platform     16384  0
kvmgt                  28672  0
vfio_mdev              16384  0
mdev                   20480  2 kvmgt,vfio_mdev
intel_spi              20480  1 intel_spi_platform
iwlwifi               344064  1 iwlmvm
vfio_iommu_type1       28672  0
btusb                  53248  0
vfio                   32768  3 kvmgt,vfio_mdev,vfio_iommu_type1
spi_nor                36864  1 intel_spi
btrtl                  16384  1 btusb
uvcvideo              118784  0
kvm                   737280  2 kvmgt,kvm_intel
crct10dif_pclmul       16384  0
btbcm                  16384  1 btusb
mtd                    69632  5 cmdlinepart,intel_spi,ofpart
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
btintel                24576  1 btusb
pcbc                   16384  0
snd_hda_codec_realtek   118784  1
irqbypass              16384  1 kvm
i2c_algo_bit           16384  1 i915
iTCO_wdt               16384  0
nls_iso8859_1          16384  1
iTCO_vendor_support    16384  1 iTCO_wdt
snd_hda_codec_generic    86016  1 snd_hda_codec_realtek
drm_kms_helper        208896  1 i915
nls_cp437              20480  1
videobuf2_vmalloc      16384  1 uvcvideo
bluetooth             655360  5 btrtl,btintel,btbcm,btusb
vfat                   24576  1
videobuf2_memops       16384  1 videobuf2_vmalloc
wmi_bmof               16384  0
aesni_intel           200704  2
snd_hda_intel          45056  1
aes_x86_64             20480  1 aesni_intel
fat                    81920  1 vfat
videobuf2_v4l2         28672  1 uvcvideo
cfg80211              778240  3 iwlmvm,iwlwifi,mac80211
crypto_simd            16384  1 aesni_intel
snd_hda_codec         151552  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
drm                   495616  5 drm_kms_helper,i915
cryptd                 28672  3 crypto_simd,ghash_clmulni_intel,aesni_intel
videobuf2_common       53248  2 videobuf2_v4l2,uvcvideo
glue_helper            16384  1 aesni_intel
intel_cstate           16384  0
videodev              217088  3 videobuf2_v4l2,uvcvideo,videobuf2_common
psmouse               172032  0
snd_hda_core           94208  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
intel_uncore          135168  0
intel_rapl_perf        16384  0
input_leds             16384  0
snd_hwdep              16384  1 snd_hda_codec
pcspkr                 16384  0
i2c_i801               32768  0
r8169                  90112  0
snd_pcm               131072  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
rtsx_usb_ms            20480  0
intel_gtt              24576  1 i915
snd_timer              36864  1 snd_pcm
media                  45056  2 videodev,uvcvideo
ecdh_generic           24576  1 bluetooth
memstick               16384  1 rtsx_usb_ms
lpc_ich                28672  0
libphy                 77824  2 r8169
agpgart                49152  2 intel_gtt,drm
mei_me                 45056  0
ideapad_laptop         36864  0
syscopyarea            16384  1 drm_kms_helper
mei                   114688  1 mei_me
sysfillrect            16384  1 drm_kms_helper
battery                24576  0
snd                    98304  10 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
sysimgblt              16384  1 drm_kms_helper
sparse_keymap          16384  1 ideapad_laptop
evdev                  20480  9
fb_sys_fops            16384  1 drm_kms_helper
rfkill                 28672  6 bluetooth,ideapad_laptop,cfg80211
i2c_hid                24576  0
mac_hid                16384  0
ac                     16384  0
hid                   139264  1 i2c_hid
soundcore              16384  1 snd
wmi                    28672  2 wmi_bmof,ideapad_laptop
pcc_cpufreq            16384  0
ip_tables              28672  0
x_tables               45056  1 ip_tables
ext4                  733184  2
crc32c_generic         16384  0
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  126976  1 ext4
fscrypto               32768  1 ext4
sd_mod                 61440  7
rtsx_usb_sdmmc         28672  0
mmc_core              176128  1 rtsx_usb_sdmmc
rtsx_usb               20480  2 rtsx_usb_sdmmc,rtsx_usb_ms
serio_raw              16384  0
atkbd                  32768  0
libps2                 16384  2 atkbd,psmouse
ahci                   40960  5
libahci                40960  1 ahci
xhci_pci               16384  0
libata                278528  2 libahci,ahci
crc32c_intel           24576  4
ehci_pci               16384  0
xhci_hcd              262144  1 xhci_pci
scsi_mod              253952  2 sd_mod,libata
ehci_hcd               94208  1 ehci_pci
i8042                  32768  1 ideapad_laptop
serio                  28672  6 serio_raw,atkbd,psmouse,i8042

alsamixer (I added additional informations like the version of the kernel and the model of my computer):
https://drive.google.com/open?id=1rAGhV … 0qe8a_80NQ
Thank you for your help!!.

Last edited by charlie_02 (2018-12-26 13:32:13)

Offline

#2 2018-12-24 09:40:31

d_fajardo
Member
Registered: 2017-07-28
Posts: 285

Re: [Solved] [Audio] No sound in neew Arch installation.

Does it show  different cards when you enter F6 in alsamixer?

Online

#3 2018-12-24 10:03:52

charlie_02
Member
Registered: 2018-12-24
Posts: 9

Re: [Solved] [Audio] No sound in neew Arch installation.

Hello, thank you for your help!

Yes, I have: "0  HDA Intel HDMI" and "1  HDA Intel PCH", but neither one works.

Offline

#4 2018-12-24 14:53:48

d_fajardo
Member
Registered: 2017-07-28
Posts: 285

Re: [Solved] [Audio] No sound in neew Arch installation.

And asound.conf?
You can check if testing the speakers -> speaker-test -c 2 - gives you an error message.
My guess is it's between Alsa and Pulse.
What does cat /proc/asound/pcm give you?

Online

#5 2018-12-24 15:09:08

charlie_02
Member
Registered: 2018-12-24
Posts: 9

Re: [Solved] [Audio] No sound in neew Arch installation.

I had an error, but I solved it by changing the default card  (I post the exact code as soon as I am at home) but after I solved it, the speaker-test command works, but the dummy interface is still the only one displayed on pavucontrol.

EDITS: Here is the code that I added to /usr/share/alsa/alsa.conf:

    pcm.!default {
        type hw
        card 1
    }

    ctl.!default {
        type hw
        card 1
    }

And here is the return of cat /proc/asound/pcm:

00-03: HDMI 0 : HDMI 0 : playback 1
00-07: HDMI 1 : HDMI 1 : playback 1
00-08: HDMI 2 : HDMI 2 : playback 1
00-09: HDMI 3 : HDMI 3 : playback 1
00-10: HDMI 4 : HDMI 4 : playback 1
01-00: ALC236 Analog : ALC236 Analog : playback 1 : capture 1

Last edited by charlie_02 (2018-12-24 16:11:45)

Offline

#6 2018-12-24 16:53:28

d_fajardo
Member
Registered: 2017-07-28
Posts: 285

Re: [Solved] [Audio] No sound in neew Arch installation.

pulseaudio-alsa already installed? You probably have to define pulse in your asound.conf
Run aplay -L | grep :CARD output and compare if default and sysdefault cards are the same. The default card is what you use for asound conf.
Try killing pulse momentarily and run the speaker test so we can see if alsa makes an output.
As an example, this is my asound.conf. Mine however is in /etc not in /usr/share/... since I have a system-wide setup. That might have a bearing as well I don't know. My main output is an external DAC

## Use DAC by default
pcm.!default {
    type hw
    card 0
    slave {
        type pulse
        fallback "sysdefault"
        hint {
            show on
            description "Default ALSA Output (currently PulseAudio Sound Server)"
        }
    }
}

ctl.!default {
    type hw 
    card 0
    slave {
        type pulse
        fallback "sysdefault"
    }
}

Online

#7 2018-12-24 17:09:53

d_fajardo
Member
Registered: 2017-07-28
Posts: 285

Re: [Solved] [Audio] No sound in neew Arch installation.

EDITS: Here is the code that I added to /usr/share/alsa/alsa.conf:

What I meant is either ~/.asoundrc  or /etc/asound.conf. You don't need anything to do in alsa.conf and erase everything you've added to that file and create either version of asound.conf.
ALSA
Pulse

Online

#8 2018-12-25 00:43:49

charlie_02
Member
Registered: 2018-12-24
Posts: 9

Re: [Solved] [Audio] No sound in neew Arch installation.

So:

I installed pulseaudio-alsa but no changes, Do I need to do anything (exept restarting)?

Here is the aplay -L | grep :CARD:

hdmi:CARD=HDMI,DEV=0
hdmi:CARD=HDMI,DEV=1
hdmi:CARD=HDMI,DEV=2
hdmi:CARD=HDMI,DEV=3
hdmi:CARD=HDMI,DEV=4
usbstream:CARD=HDMI
sysdefault:CARD=PCH
front:CARD=PCH,DEV=0
surround21:CARD=PCH,DEV=0
surround40:CARD=PCH,DEV=0
surround41:CARD=PCH,DEV=0
surround50:CARD=PCH,DEV=0
surround51:CARD=PCH,DEV=0
surround71:CARD=PCH,DEV=0
usbstream:CARD=PCH

I moved the lines I added in alsa.conf to /etc/asound.conf, and tried your configuration (I changed the card number to 1), but it seems that the slave field is not recognized. Do I need to set it up elsewhere?

The sound still don't work, and I still have the dummy interface. I have two questions:
- Could the fact that I am always forced to do "audiopulse --start" after reboot (either way, pavucontrol does not display anything) be related to my problem?
- I read on the pulseaudio troubleshooting page that if the speake-test works but that I only have dummy interfaces, that could mean that there are problems with polkit (I did not installed It, I don't know if it is required). Could It be the problem and if yes, how to solve it?

Once again thank you for your tie and help!

Last edited by charlie_02 (2018-12-25 00:44:37)

Offline

#9 2018-12-25 10:50:37

d_fajardo
Member
Registered: 2017-07-28
Posts: 285

Re: [Solved] [Audio] No sound in neew Arch installation.

You can try this asound.conf configuration:

# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

and maybe restart. Run alsamixer again and see if ALSA starts using Pulse as default.

To answer your question, you shouldn't start pulse manually. You should have a file pulseaudio.desktop at /etc/xdg/autostart/ that enables it at startup.
And my feeling is yes, polkit might have a bearing on the problem. Can you post the url where that was mentioned?
You can run the debug script alsa-info.sh and check again the module state. Post the output here for everyone to see.
You should really try to make the speaker test work first. Modules seem ok but why doesn't the sound reach your speakers?

Last edited by d_fajardo (2018-12-25 11:58:32)

Online

#10 2018-12-25 11:56:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 6,284

Re: [Solved] [Audio] No sound in neew Arch installation.

How are you starting you environment, logging in? During an active playback attempt what are the outputs of

sudo fuser -v /dev/snd/*
amixer -c1
pacmd list-cards
pacmd list-sinks
pacmd list-sink-inputs

Offline

#11 2018-12-25 15:25:35

charlie_02
Member
Registered: 2018-12-24
Posts: 9

Re: [Solved] [Audio] No sound in neew Arch installation.

If I use your suggestion, I get the error: "ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave" an then it tells me no such file or directory. And if I add the lines about the card, it does not recognize the card field.

When I run alsamixer, I don't see any differences with what it was before. I am supposed to?

I found as you said a pulseaudio.desktop file but if I don't run "pulseaudio --start" manually, pavucontrol does not work.
Here is the link you asked for: https://wiki.archlinux.org/index.php/Pu … t_detected (but I made ome mistakes in my post, If speaker-test works, this is what the wiki advices: https://wiki.archlinux.org/index.php/Ad … #No_output).

And for the alsa-info: https://pastebin.com/9KhcJJDf

EDIT:

V1del wrote:

How are you starting you environment, logging in? During an active playback attempt what are the outputs of

sudo fuser -v /dev/snd/*
amixer -c1
pacmd list-cards
pacmd list-sinks
pacmd list-sink-inputs

For the moment I log in the tty console an then start my environment by running the x server.

fuser -v /dev/snd/*:

                                 UTIL.       PID   ACCÈS  COMMANDE
/dev/snd/controlC0:  paul      2104  F....        pulseaudio

amixer -c1:

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 62 [71%] [-18.75dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 61 [70%] [-19.50dB] [on]
  Front Right: Playback 61 [70%] [-19.50dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 73 [84%] [-10.50dB] [on]
  Front Right: Playback 73 [84%] [-10.50dB] [on]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 39 [62%] [12.00dB] [on]
  Front Right: Capture 39 [62%] [12.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]

pacmd list-cards:

1 card(s) available.
    index: 0
    name: <alsa_card.pci-0000_00_03.0>
    driver: <module-alsa-card.c>
    owner module: 6
    properties:
        alsa.card = "0"
        alsa.card_name = "HDA Intel HDMI"
        alsa.long_card_name = "HDA Intel HDMI at 0xc1210000 irq 52"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:03.0"
        sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "160c"
        device.product.name = "Broadwell-U Audio Controller"
        device.form_factor = "internal"
        device.string = "0"
        device.description = "Audio interne"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        output:hdmi-stereo-extra1: Sortie Digital Stereo (HDMI 2) (priority 5700, available: no)
        output:hdmi-surround-extra1: Sortie Digital Surround 5.1 (HDMI 2) (priority 600, available: no)
        output:hdmi-surround71-extra1: Sortie Digital Surround 7.1 (HDMI 2) (priority 600, available: no)
        output:hdmi-stereo-extra2: Sortie Digital Stereo (HDMI 3) (priority 5700, available: no)
        output:hdmi-surround-extra2: Sortie Digital Surround 5.1 (HDMI 3) (priority 600, available: no)
        output:hdmi-surround71-extra2: Sortie Digital Surround 7.1 (HDMI 3) (priority 600, available: no)
        output:hdmi-stereo-extra3: Sortie Digital Stereo (HDMI 4) (priority 5700, available: no)
        output:hdmi-surround-extra3: Sortie Digital Surround 5.1 (HDMI 4) (priority 600, available: no)
        output:hdmi-surround71-extra3: Sortie Digital Surround 7.1 (HDMI 4) (priority 600, available: no)
        output:hdmi-stereo-extra4: Sortie Digital Stereo (HDMI 5) (priority 5700, available: no)
        output:hdmi-surround-extra4: Sortie Digital Surround 5.1 (HDMI 5) (priority 600, available: no)
        output:hdmi-surround71-extra4: Sortie Digital Surround 7.1 (HDMI 5) (priority 600, available: no)
        off: Éteint (priority 0, available: unknown)
    active profile: <off>
    ports:
        hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"

pacmd list-sinks:

1 sink(s) available.
  * index: 0
    name: <auto_null>
    driver: <module-null-sink.c>
    flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
    state: SUSPENDED
    suspend cause: IDLE
    priority: 1000
    volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
            balance 0,00
    base volume: 65536 / 100% / 0,00 dB
    volume steps: 65537
    muted: no
    current latency: 0,00 ms
    max request: 344 KiB
    max rewind: 344 KiB
    monitor source: 0
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
                 Stéréo
    used by: 0
    linked by: 0
    configured latency: 0,00 ms; range is 0,50 .. 2000,00 ms
    module: 15
    properties:
        device.description = "Sortie factice"
        device.class = "abstract"
        device.icon_name = "audio-card"

pacmd list-sink-inputs:

0 sink input(s) available.

EDIT 2:
For the deleted parts, see This post.

Last edited by charlie_02 (2018-12-25 18:07:07)

Offline

#12 2018-12-25 16:40:46

d_fajardo
Member
Registered: 2017-07-28
Posts: 285

Re: [Solved] [Audio] No sound in neew Arch installation.

Yes sink is null. Any solution V1del?

Online

#13 2018-12-25 17:43:55

charlie_02
Member
Registered: 2018-12-24
Posts: 9

Re: [Solved] [Audio] No sound in neew Arch installation.

Eratum: I did not notice that the video I had lauched on VLC had ended. I post here the true return.

1 sink input(s) available.
    index: 1
	driver: <protocol-native.c>
	flags: START_CORKED FIX_RATE 
	state: RUNNING
	sink: 0 <auto_null>
	volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
	        balance 0,00
	muted: no
	current latency: 384,00 ms
	requested latency: 40,00 ms
	sample spec: float32le 2ch 24000Hz
	channel map: front-left,front-right
	             Stéréo
	resample method: speex-float-1
	module: 10
	client: 1 <VLC media player (LibVLC 3.0.4)>
	properties:
		media.role = "video"
		media.name = "audio stream"
		application.name = "VLC media player (LibVLC 3.0.4)"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "32"
		application.id = "org.VideoLAN.VLC"
		application.version = "3.0.4"
		application.icon_name = "vlc"
		application.language = "fr_FR.UTF-8"
		application.process.id = "2412"
		application.process.user = "paul"
		application.process.host = "lenovo-giacopelli"
		application.process.binary = "vlc"
		window.x11.display = ":1"
		application.process.machine_id = "f2baf977aa404579814f3a21ef3d1d1b"
		application.process.session_id = "3"
		module-stream-restore.id = "sink-input-by-media-role:video"

I'm sorry for the mistake...

Also, the speaker-test now seems to work with pulseaudio: the command runs correctly, but it is redirected to the dummy interface (I have no sound but I have the return on pavucontrol) and alsamixer has now this as default (in addition with HDMI and PCH).

EDIT:
I have  Jack installed (by default) could it be a conflict between pulseaudio an Jack (I don't know if Jack is useful with pulseaudio)

Last edited by charlie_02 (2018-12-25 18:36:50)

Offline

#14 2018-12-25 19:01:48

d_fajardo
Member
Registered: 2017-07-28
Posts: 285

Re: [Solved] [Audio] No sound in neew Arch installation.

That's definitely a progress but- > sink: 0 <auto_null>. Sink still null. You might need to define it in /etc/pulse/default.pa
See this.
But your pacmd list-sinks only list the auto_null sink which I don't quite understand. It should really have an alsa-output as sink so you can define it.
Can you run pacmd list-sinks again while playing something?

Last edited by d_fajardo (2018-12-25 19:25:17)

Online

#15 2018-12-25 19:38:01

charlie_02
Member
Registered: 2018-12-24
Posts: 9

Re: [Solved] [Audio] No sound in neew Arch installation.

Here it is:

1 sink(s) available.
  * index: 0
	name: <auto_null>
	driver: <module-null-sink.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 1000
	volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 30,82 ms
	max request: 6 KiB
	max rewind: 6 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stéréo
	used by: 1
	linked by: 1
	configured latency: 40,00 ms; range is 0,50 .. 2000,00 ms
	module: 15
	properties:
		device.description = "Sortie factice"
		device.class = "abstract"
		device.icon_name = "audio-card"

EDIT:

In case it could help, here is the pulseaudio startup log file.

Last edited by charlie_02 (2018-12-25 21:21:51)

Offline

#16 2018-12-26 09:03:21

d_fajardo
Member
Registered: 2017-07-28
Posts: 285

Re: [Solved] [Audio] No sound in neew Arch installation.

The problem it seems from your log is you don't have a working pcm that's why you only get a null sink.
Can you post the output of alsa-info.sh?

Online

#17 2018-12-26 10:55:50

charlie_02
Member
Registered: 2018-12-24
Posts: 9

Re: [Solved] [Audio] No sound in neew Arch installation.

Here it is.

What do you mean by no working pcm: Do you think that it's a driver problem? Or a configuration problem?

Offline

#18 2018-12-26 11:48:30

d_fajardo
Member
Registered: 2017-07-28
Posts: 285

Re: [Solved] [Audio] No sound in neew Arch installation.

I'm not sure why you are getting this in your log:

(   0.010|   0.000) D: [pulseaudio] alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
(   0.010|   0.000) I: [pulseaudio] alsa-util.c: Error opening PCM device hw:0: No such file or directory

It's the realtec I'm concerned about. In your dmesg, the realtec driver is loaded:

[    3.662947] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC236: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker

This looks to me the driver that talks to your speakers and it is loaded as a module. I'm not sure why it's not kicking in.
According to alsa-info.sh, you have 2 soundcards:

!!Soundcards recognised by ALSA
!!-----------------------------
 
 0 [HDMI           ]: HDA-Intel - HDA Intel HDMI
                      HDA Intel HDMI at 0xc1210000 irq 52
 1 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xc1214000 irq 49

When you play something it uses the HDMI channel (see your pacmd list-cards) and it looks like your speakers are not reading this HDMI output . Try using PCH channel instead because according to aplay -L, that is your Realtec ALC236 card. This should correspond to snd_hda_codec_realtek which drives your speakers. Try this.

Last edited by d_fajardo (2018-12-26 12:47:58)

Online

#19 2018-12-26 13:26:37

charlie_02
Member
Registered: 2018-12-24
Posts: 9

Re: [Solved] [Audio] No sound in neew Arch installation.

I finally found a solution to my problem here.
my old asound.conf contained this in addition to what I added to it (it was here at the beginning and I did not removed it):

defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 7
defaults.timer.card 1

Thank you all for your help and support!

Last edited by charlie_02 (2018-12-26 13:31:13)

Offline

Board footer

Powered by FluxBB