You are not logged in.

#1 2017-03-10 20:17:56

keebler
Member
Registered: 2015-05-20
Posts: 4

[SOLVED] Pulseaudio: missing headphone device

I have an ASRock Beebox (Intel Celeron N3150) which is hooked up to my TV with HDMI and has speakers plugged into the headphone port.  The thing I noticed with the speakers was that they would no longer be recognized by pulse after the Beebox wakes from suspend.  Sometimes restarting the pulse server would fix this but usually I had to reboot to get the speakers.  Recently though, the speakers and missing completely from pulse, even after multiple reboots.

The speakers are still recognized by alsa, as aplay -l shows the device and "aplay -Dplughw:0,0 somewavfile.wav" plays out of the speakers.  Here is the output of aplay -lL:

null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default:CARD=PCH
    HDA Intel PCH, ALC283 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC283 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

It seems slightly worrying that it shows "hdmi:CARD=PCH,DEV=0" as well as "front:CARD=PCH,DEV=0" but I'm not sure what exactly that means.

Running pulseaudio -vvvv doesn't give me any obvious hints.  It opens hw:0,3 (the HDMI device) and then later says that card0 is busy, but it doesn't specifically say it tries hw:0,0:

D: [pulseaudio] alsa-util.c: Trying hw:0,3 with SND_PCM_NO_AUTO_FORMAT ...
D: [pulseaudio] alsa-util.c: Managed to open hw:0,3
I: [pulseaudio] alsa-util.c: Trying to disable ALSA period wakeups, using timers only
D: [pulseaudio] alsa-util.c: Maximum hw buffer size is 23777 ms
D: [pulseaudio] alsa-util.c: Set buffer size first (to 88200 samples), period size second (to 88200 samples).
I: [pulseaudio] alsa-util.c: ALSA period wakeups disabled
I: [pulseaudio] alsa-sink.c: Successfully opened device hw:0,3.

Then after some configuration output for hw:0,3:

I: [pulseaudio] module.c: Loaded "module-alsa-sink" (index: #5; argument: "device=hw:0,3").
D: [pulseaudio] module.c: Checking for existence of '/usr/lib/pulse-10.0/modules/module-udev-detect.so': success
D: [pulseaudio] module-udev-detect.c: /dev/snd/controlC0 is accessible: yes
D: [pulseaudio] module-udev-detect.c: /devices/pci0000:00/0000:00:1b.0/sound/card0 is busy: yes
I: [pulseaudio] module-udev-detect.c: Found 1 cards.
I: [pulseaudio] module.c: Loaded "module-udev-detect" (index: #6; argument: "").

Finally, here's the output of lspci -knn:

00:00.0 Host bridge [0600]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register [8086:2280] (rev 21)
        Subsystem: ASRock Incorporation Device [1849:22b1]
        Kernel driver in use: iosf_mbi_pci
lspci: Unable to load libkmod resources: error -12
00:02.0 VGA compatible controller [0300]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller [8086:22b1] (rev 21)
        Subsystem: ASRock Incorporation Device [1849:22b1]
        Kernel driver in use: i915
00:13.0 SATA controller [0106]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SATA Controller [8086:22a3] (rev 21)
        Subsystem: ASRock Incorporation Device [1849:22a3]
        Kernel driver in use: ahci
00:14.0 USB controller [0c03]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCIController [8086:22b5] (rev 21)
        Subsystem: ASRock Incorporation Device [1849:22b5]
        Kernel driver in use: xhci_hcd
00:1a.0 Encryption controller [1080]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine [8086:2298] (rev 21)
        Subsystem: ASRock Incorporation Device [1849:2298]
        Kernel driver in use: mei_txe
00:1b.0 Audio device [0403]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Definition Audio Controller [8086:2284] (rev 21)
        Subsystem: ASRock Incorporation Device [1849:0283]
        Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1 [8086:22c8] (rev 21)
        Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #2 [8086:22ca] (rev 21)
        Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU [8086:229c] (rev 21)
        Subsystem: ASRock Incorporation Device [1849:229c]
        Kernel driver in use: lpc_ich
00:1f.3 SMBus [0c05]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx SMBus Controller [8086:2292] (rev 21)
        Subsystem: ASRock Incorporation Device [1849:2292]
        Kernel driver in use: i801_smbus
01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter [10ec:8821]
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter [10ec:8821]
        Kernel driver in use: rtl8821ae
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 11)
        Subsystem: ASRock Incorporation Motherboard (one of many) [1849:8168]
        Kernel driver in use: r8168

Any help would be greatly appreciated.

Last edited by keebler (2017-03-11 21:43:52)

Offline

#2 2017-03-10 22:09:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,738

Re: [SOLVED] Pulseaudio: missing headphone device

Install pulseaudio-alsa and then reboot, if it still happens post the output of

sudo fuser -v /dev/snd/*

Offline

#3 2017-03-11 00:30:33

keebler
Member
Registered: 2015-05-20
Posts: 4

Re: [SOLVED] Pulseaudio: missing headphone device

Installing pulseaudio-alsa didn't fix it.

Here's the output of sudo fuser -v /dev/snd/* with nothing running:

                     USER        PID ACCESS COMMAND
/dev/snd/pcmC0D3p:   kylo        668 F...m pulseaudio

And here's the output while aplay is running to the speakers:

                     USER        PID ACCESS COMMAND
/dev/snd/pcmC0D0p:   kylo       1400 F...m aplay
/dev/snd/pcmC0D3p:   kylo        668 F...m pulseaudio

Offline

#4 2017-03-11 01:34:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,738

Re: [SOLVED] Pulseaudio: missing headphone device

nothing unusual there so far what's

pacmd list-cards
pacmd list-sinks
dmesg | grep snd

say after reproducing the issue

Offline

#5 2017-03-11 05:32:39

keebler
Member
Registered: 2015-05-20
Posts: 4

Re: [SOLVED] Pulseaudio: missing headphone device

pacmd list-cards

0 card(s) available.

pacmd list-sinks

1 sink(s) available.
  * index: 0
        name: <alsa_output.hw_0_3>
        driver: <module-alsa-sink.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: RUNNING
        suspend cause:
        priority: 9950
        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: 21.69 ms
        max request: 4 KiB
        max rewind: 344 KiB
        monitor source: 0
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 2
        linked by: 2
        configured latency: 24.99 ms; range is 0.50 .. 2000.00 ms
        module: 5
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "HDMI 0"
                alsa.id = "HDMI 0"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "3"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0x91410000 irq 123"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "2284"
                device.product.name = "Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "hw:0,3"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.description = "Built-in Audio"
                device.icon_name = "audio-card-pci"

dmesg | grep -C 5 snd (for input context)

[    2.591363] mousedev: PS/2 mouse device common for all mice
[    2.682770] input: Logitech Performance MX as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4:1.2/0003:046D:C52B.0005/0003:046D:101A.0006/input/input8
[    2.683351] logitech-hidpp-device 0003:046D:101A.0006: input,hidraw3: USB HID v1.11 Mouse [Logitech Performance MX] on usb-0000:00:14.0-3.4:1
[    2.749889] enp2s0: 0xffffc90000ced000, c0:7c:d1:c0:23:c8, IRQ 119
[    2.815786] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
[    2.843911] snd_hda_intel 0000:00:1b.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    2.843930] [drm] Initialized i915 1.6.0 20161121 for 0000:00:02.0 on minor 0
[    3.078591] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready
[    3.197676] fbcon: inteldrmfb (fb0) is primary device
[    3.299804] Console: switching to colour frame buffer device 480x135
[    3.387523] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[    3.435129] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC283: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:hp
[    3.435134] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.435137] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.435139] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    3.435140] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    3.697547] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[    3.702546] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[    3.702715] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[    3.702841] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[    3.703750] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13

Offline

#6 2017-03-11 10:24:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,738

Re: [SOLVED] Pulseaudio: missing headphone device

You are specifically loading hw: 0,3 manually and you probably disabled automatic detection -- why? what's in your /etc/pulse/default.pa and in any files in ~/.config/pulse if present?

Offline

#7 2017-03-11 16:20:30

keebler
Member
Registered: 2015-05-20
Posts: 4

Re: [SOLVED] Pulseaudio: missing headphone device

You're right, I had this line in /etc/pulse/default.pa:

load-module module-alsa-sink device=hw:0,3

I still had module-udev-detect enabled so maybe there was just a bad interaction that was causing the intermittent discovery.  I commented out the alsa-sink line and now automatic detection works fine.  I don't remember adding that alsa-sink line before but maybe I did when first setting it up for some reason.  Thanks so much for the help!

Offline

Board footer

Powered by FluxBB