You are not logged in.

#1 2017-03-19 09:12:37

Viv1d-shadows
Member
Registered: 2017-03-19
Posts: 8

No sound output

Hello All,

I am relatively new to Arch Linux and have been enjoying it, but recently there has been no sound coming out from my laptop's speakers.

I guess it started happening after I tried to pair it with my bluetooth headsets but it kept on saying "Connected" but then immediately it would say  "Disconnect"

I cannot post any logs or output of any commands because I unfortuntely do not know where to start.

The audio in Windows works so definitely isn't a hardware issue, and if I try to plug in my earphones those do not work either.

I believe I am using these "Pulseaudio" drivers if it is a good starting point. Reading the wiki I did try "pulseaudio -k && pulseaudio --start" but it did not help.

Please advice an Arch noob to diagnose issue.

Thanks

Offline

#2 2017-03-19 14:55:24

Lysio
Member
Registered: 2017-03-10
Posts: 1

Re: No sound output

Hello,
Which desktop environment do you use?
Are you sure PulseAudio is installed ? (write pacman -Qs pulseaudio in a terminal)
Can you give us the output of "systemctl status pulseaudio" (write it in a terminal) ?

Offline

#3 2017-03-20 09:21:50

Viv1d-shadows
Member
Registered: 2017-03-19
Posts: 8

Re: No sound output

The desktop environment I am using is GNOME (version 3 i think).

Yes pulseaudio is installed:
libpulse 10.0-2
pulseaudio 10.0-2
pulseaudio-alsa 2-3

The output of that command is:
"Unit pulseaudio.service could not be found."

Oh dear sounds like that should of been different.

Interestingly if I suspend the machine and resume it, the audio is back. Plus sometimes after a restart there are no problems but other times, no audio sad

Offline

#4 2017-03-20 09:25:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 5,714

Re: No sound output

Don't worry about the service not found message, the correct invocation would be

systemctl --user status pulseaudio

since pulse is an user service. Should the problem reappear post the output of said status command and

sudo fuser -v /dev/snd/*

Offline

#5 2017-03-21 08:01:32

Viv1d-shadows
Member
Registered: 2017-03-19
Posts: 8

Re: No sound output

Running the first command gives me:
● pulseaudio.service - Sound Service
   Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor pr
   Active: active (running) since Tue 2017-03-21 18:57:57 AEDT; 1min 8s ago
Main PID: 651 (pulseaudio)
   CGroup: /user.slice/user-1000.slice/user@1000.service/pulseaudio.service
           └─651 /usr/bin/pulseaudio --daemonize=no

Mar 21 18:57:57 archLinux systemd[560]: Starting Sound Service...
Mar 21 18:57:57 archLinux systemd[560]: Started Sound Service.


Second command yields:
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  gdm         497 F.... pulseaudio
                     arch        651 F.... pulseaudio
/dev/snd/pcmC0D0c:   arch        651 F...m pulseaudio
/dev/snd/pcmC0D0p:   arch        651 F...m pulseaudio

Offline

#6 2017-03-21 08:29:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 5,714

Re: No sound output

That all looks correct from the OP I thought pulse wouldn't start but it does,  what's the output of

pacmd list-cards
pacmd list-sinks 
pacmd list-sink-inputs #While playing something

in that case?

Offline

#7 2017-03-22 09:20:06

Viv1d-shadows
Member
Registered: 2017-03-19
Posts: 8

Re: No sound output

Output of pacmd list-cards:

1 card(s) available.
    index: 0
    name: <alsa_card.pci-0000_00_1f.3>
    driver: <module-alsa-card.c>
    owner module: 6
    properties:
        alsa.card = "0"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0xdc320000 irq 282"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1f.3"
        sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "9d71"
        device.form_factor = "internal"
        device.string = "0"
        device.description = "Built-in Audio"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
        output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
        output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
        output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: no)
        output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5460, available: unknown)
        output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 300, available: no)
        output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) Output + Analog Stereo Input (priority 360, available: unknown)
        output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 300, available: no)
        output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI) Output + Analog Stereo Input (priority 360, available: unknown)
        output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5200, available: no)
        output:hdmi-stereo-extra1+input:analog-stereo: Digital Stereo (HDMI 2) Output + Analog Stereo Input (priority 5260, available: unknown)
        output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 100, available: no)
        output:hdmi-surround-extra1+input:analog-stereo: Digital Surround 5.1 (HDMI 2) Output + Analog Stereo Input (priority 160, available: unknown)
        output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 100, available: no)
        output:hdmi-surround71-extra1+input:analog-stereo: Digital Surround 7.1 (HDMI 2) Output + Analog Stereo Input (priority 160, available: unknown)
        output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5200, available: no)
        output:hdmi-stereo-extra2+input:analog-stereo: Digital Stereo (HDMI 3) Output + Analog Stereo Input (priority 5260, available: unknown)
        output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 100, available: no)
        output:hdmi-surround-extra2+input:analog-stereo: Digital Surround 5.1 (HDMI 3) Output + Analog Stereo Input (priority 160, available: unknown)
        output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 100, available: no)
        output:hdmi-surround71-extra2+input:analog-stereo: Digital Surround 7.1 (HDMI 3) Output + Analog Stereo Input (priority 160, available: unknown)
        off: Off (priority 0, available: unknown)
    active profile: <output:analog-stereo+input:analog-stereo>
    sinks:
        alsa_output.pci-0000_00_1f.3.analog-stereo/#0: Built-in Audio Analog Stereo
    sources:
        alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
        alsa_input.pci-0000_00_1f.3.analog-stereo/#1: Built-in Audio Analog Stereo
    ports:
        analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
            properties:
                device.icon_name = "audio-speakers"
        analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-headphones"
        hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        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"

Output of pacmd list-sinks:

1 sink(s) available.
  * index: 0
    name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
    driver: <module-alsa-card.c>
    flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
    state: IDLE
    suspend cause:
    priority: 9959
    volume: front-left: 30148 /  46% / -20.23 dB,   front-right: 30148 /  46% / -20.23 dB
            balance 0.00
    base volume: 65536 / 100% / 0.00 dB
    volume steps: 65537
    muted: no
    current latency: 1673.79 ms
    max request: 344 KiB
    max rewind: 344 KiB
    monitor source: 0
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
                 Stereo
    used by: 0
    linked by: 0
    configured latency: 2000.00 ms; range is 0.50 .. 2000.00 ms
    card: 0 <alsa_card.pci-0000_00_1f.3>
    module: 6
    properties:
        alsa.resolution_bits = "16"
        device.api = "alsa"
        device.class = "sound"
        alsa.class = "generic"
        alsa.subclass = "generic-mix"
        alsa.name = "ALC298 Analog"
        alsa.id = "ALC298 Analog"
        alsa.subdevice = "0"
        alsa.subdevice_name = "subdevice #0"
        alsa.device = "0"
        alsa.card = "0"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0xdc320000 irq 282"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1f.3"
        sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "9d71"
        device.form_factor = "internal"
        device.string = "front:0"
        device.buffering.buffer_size = "352800"
        device.buffering.fragment_size = "176400"
        device.access_mode = "mmap+timer"
        device.profile.name = "analog-stereo"
        device.profile.description = "Analog Stereo"
        device.description = "Built-in Audio Analog Stereo"
        alsa.mixer_name = "Realtek ALC298"
        alsa.components = "HDA:10ec0298,1a586752,00100103 HDA:8086280b,80860101,00100000"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    ports:
        analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
            properties:
                device.icon_name = "audio-speakers"
        analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-headphones"
    active port: <analog-output-speaker>

Output of pacmd list-sink-inputs:

1 sink input(s) available.
    index: 20
    driver: <protocol-native.c>
    flags: START_CORKED
    state: RUNNING
    sink: 0 <alsa_output.pci-0000_00_1f.3.analog-stereo>
    volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
            balance 0.00
    muted: no
    current latency: 46.62 ms
    requested latency: 23.22 ms
    sample spec: float32le 2ch 44100Hz
    channel map: front-left,front-right
                 Stereo
    resample method: copy
    module: 8
    client: 20 <Chromium>
    properties:
        application.icon_name = "chromium-browser"
        media.name = "Playback"
        application.name = "Chromium"
        native-protocol.peer = "UNIX socket client"
        native-protocol.version = "32"
        application.process.id = "4915"
        application.process.user = "arch"
        application.process.host = "archLinux"
        application.process.binary = "chromium"
        window.x11.display = ":0"
        application.language = "en_AU.UTF-8"
        application.process.machine_id = "62df741da5454ce7a35592ef365f79a3"
        application.process.session_id = "c2"
        module-stream-restore.id = "sink-input-by-application-name:Chromium"

At the moment the audio is coming out ok, just puzzled why sometimes it doesn't hmm

Offline

#8 2017-03-22 09:39:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 5,714

Re: No sound output

Use [ code ] tags not [ quote ] tags when pasting command output. Well the output of these does look alright right now as well. Should the problem reappear repost the last 2 of the pacmd commands and the fuser command

Offline

#9 2017-03-22 11:14:09

Viv1d-shadows
Member
Registered: 2017-03-19
Posts: 8

Re: No sound output

The problem has occurred again sad

I am thinking maybe the problem lies with me dualbooting between Windows 10 and Arch. I was playing some audio before restarting and jumping to Arch.

pacmd list-sinks:

1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: IDLE
	suspend cause: 
	priority: 9959
	volume: front-left: 30148 /  46% / -20.23 dB,   front-right: 30148 /  46% / -20.23 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 1569.30 ms
	max request: 344 KiB
	max rewind: 344 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 2000.00 ms; range is 0.50 .. 2000.00 ms
	card: 0 <alsa_card.pci-0000_00_1f.3>
	module: 6
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC298 Analog"
		alsa.id = "ALC298 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xdc320000 irq 282"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "9d71"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "352800"
		device.buffering.fragment_size = "176400"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		alsa.mixer_name = "Realtek ALC298"
		alsa.components = "HDA:10ec0298,1a586752,00100103 HDA:8086280b,80860101,00100000"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker> 

pacmd list-sinks-inputs:

 1 sink input(s) available.
    index: 19
	driver: <protocol-native.c>
	flags: START_CORKED 
	state: RUNNING
	sink: 0 <alsa_output.pci-0000_00_1f.3.analog-stereo>
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	muted: no
	current latency: 55.51 ms
	requested latency: 23.22 ms
	sample spec: float32le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	resample method: copy
	module: 8
	client: 15 <Chromium>
	properties:
		application.icon_name = "chromium-browser"
		media.name = "Playback"
		application.name = "Chromium"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "32"
		application.process.id = "845"
		application.process.user = "arch"
		application.process.host = "archLinux"
		application.process.binary = "chromium"
		window.x11.display = ":0"
		application.language = "en_AU.UTF-8"
		application.process.machine_id = "62df741da5454ce7a35592ef365f79a3"
		application.process.session_id = "c2"
		module-stream-restore.id = "sink-input-by-application-name:Chromium" 

sudo fuser -v /dev/snd/*:

                      USER        PID ACCESS COMMAND
/dev/snd/controlC0:  gdm         396 F.... pulseaudio
                     arch        554 F.... pulseaudio
/dev/snd/pcmC0D0c:   arch        554 F...m pulseaudio
/dev/snd/pcmC0D0p:   arch        554 F...m pulseaudio 

Offline

#10 2017-03-22 11:48:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 5,714

Re: No sound output

Hmmm this all looks correct still, what about

amixer -c0
dmesg | grep snd

the fact that you mention Windows might help a bit, is it somehow possible to limit the possibilities further, i.e. does it only happen after a reboot from within Windows followed by a boot into linux (or the other way around going into Windows and rebooting then works or something along those lines) or/and is it preventable by a full shutdown followed by a cold boot as opposed to choosing the restart option? If one of these others (only happens on reboot from Windows or similar) maybe a BIOS/UEFI update might be helpful

Offline

#11 2017-03-23 11:20:34

Viv1d-shadows
Member
Registered: 2017-03-19
Posts: 8

Re: No sound output

Apparently I don't have a command called "amixer" not sure why as I installed the pulseaudio-alsa package hmm

dmesg | grep snd:

[    1.955954] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    1.983476] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC298: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    1.983477] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    1.983479] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    1.983479] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    1.983480] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    1.983481] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x18
[    1.983482] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12

It appears that restarting straight from Windows might be the issue here. Will do some more testing in the coming days to hopefully sort this out once and for all.

Offline

#12 2017-03-23 11:24:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 5,714

Re: No sound output

amixer is part of alsa-utils (for the future look at pacman's file options in order to find out to what package a certain file or command maps to)

Offline

#13 2017-03-27 04:15:35

Viv1d-shadows
Member
Registered: 2017-03-19
Posts: 8

Re: No sound output

Yep this is certainly looking like an issue when I go straight from Windows 10 to Arch (normal reboot)

Output of amixer -c0:

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 127
  Mono: Playback 100 [79%] [-13.50dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 0 [0%] [-63.50dB] [off]
  Front Right: Playback 0 [0%] [-63.50dB] [off]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%] [0.00dB] [on]
  Front Right: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
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 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 127
  Front Left: Capture 88 [69%] [10.50dB] [off]
  Front Right: Capture 88 [69%] [10.50dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
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]
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'

Offline

#14 2018-03-01 19:45:47

zdavid0123
Member
Registered: 2018-02-26
Posts: 5

Re: No sound output

Try installing the following packages:

 sudo pacman -S alsa-firmware alsa-utils alsa-plugins pulseaudio-alsa pulseaudio 

After I installed them, the sound on my dell xps-13 works fine.

Offline

#15 2018-03-01 20:14:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 5,714

Re: No sound output

Please don't necrobump topics with information that is already present in the thread.

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing.

Offline

Board footer

Powered by FluxBB