advancingu / XPS13Linux

Public collection of issues with running Linux on a Dell XPS 13 (2015 edition)
131 stars 3 forks source link

Audio over display port not detected? #24

Closed cboettig closed 9 years ago

cboettig commented 9 years ago

With an external monitor connected over the displayport connection, I still only see "Speakers Built-in Audio" under sound settings. Has anyone else tested this?

Running Ubuntu 15.04 with BIOS A04 on XPS 13 dev edition.

soren121 commented 9 years ago

Are you using PulseAudio? It shows up for me in pavucontrol. I've tested it with an HDMI display and it works fine.

screenshot from 2015-05-28 11-24-12

cboettig commented 9 years ago

Yup. Tried with pavucontrol too but no luck...

On Thu, May 28, 2015, 8:25 AM Nicholas Narsing notifications@github.com wrote:

Are you using PulseAudio? It shows up for me in pavucontrol. I've tested it with an HDMI display and it works fine.

[image: screenshot from 2015-05-28 11-24-12] https://cloud.githubusercontent.com/assets/295939/7863767/27ef9fb8-052c-11e5-82f0-e51ddf884962.png

— Reply to this email directly or view it on GitHub https://github.com/advancingu/XPS13Linux/issues/24#issuecomment-106407798 .

soren121 commented 9 years ago

Can you run pacmd list and attach the output here?

cboettig commented 9 years ago

Thanks, here it is:

$ pacmd list
Memory blocks currently allocated: 1, size: 63.9 KiB.
Memory blocks allocated during the whole lifetime: 8261, size: 20.1 MiB.
Memory blocks imported from other processes: 0, size: 0 B.
Memory blocks exported to other processes: 0, size: 0 B.
Total sample cache size: 0 B.
Default sample spec: s16le 2ch 44100Hz
Default channel map: front-left,front-right
Default sink name: alsa_output.pci-0000_00_1b.0.analog-stereo
Default source name: alsa_input.pci-0000_00_1b.0.analog-stereo
Memory blocks of type POOL: 1 allocated/4083 accumulated.
Memory blocks of type POOL_EXTERNAL: 0 allocated/1025 accumulated.
Memory blocks of type APPENDED: 0 allocated/0 accumulated.
Memory blocks of type USER: 0 allocated/0 accumulated.
Memory blocks of type FIXED: 0 allocated/4178 accumulated.
Memory blocks of type IMPORTED: 0 allocated/0 accumulated.
21 module(s) loaded.
    index: 0
    name: <module-device-restore>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Lennart Poettering"
        module.description = "Automatically restore the volume/mute state of devices"
        module.version = "6.0"
    index: 1
    name: <module-stream-restore>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Lennart Poettering"
        module.description = "Automatically restore the volume/mute/device state of streams"
        module.version = "6.0"
    index: 2
    name: <module-card-restore>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Lennart Poettering"
        module.description = "Automatically restore profile of cards"
        module.version = "6.0"
    index: 3
    name: <module-augment-properties>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Lennart Poettering"
        module.description = "Augment the property sets of streams with additional static information"
        module.version = "6.0"
    index: 4
    name: <module-switch-on-port-available>
    argument: <>
    used: -1
    load once: no
    properties:

    index: 5
    name: <module-udev-detect>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Lennart Poettering"
        module.description = "Detect available audio hardware and load matching drivers"
        module.version = "6.0"
    index: 6
    name: <module-alsa-card>
    argument: <device_id="1" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1">
    used: 0
    load once: no
    properties:
        module.author = "Lennart Poettering"
        module.description = "ALSA Card"
        module.version = "6.0"
    index: 7
    name: <module-bluetooth-policy>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Frédéric Dalleau"
        module.description = "When a bluetooth sink or source is added, load module-loopback"
        module.version = "6.0"
    index: 8
    name: <module-bluetooth-discover>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "João Paulo Rechi Vita"
        module.description = "Detect available Bluetooth daemon and load the corresponding discovery module"
        module.version = "6.0"
    index: 9
    name: <module-bluez4-discover>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "João Paulo Rechi Vita"
        module.description = "Detect available BlueZ 4 Bluetooth audio devices and load BlueZ 4 Bluetooth audio drivers"
        module.version = "6.0"
    index: 10
    name: <module-native-protocol-unix>
    argument: <>
    used: -1
    load once: no
    properties:
        module.author = "Lennart Poettering"
        module.description = "Native protocol (UNIX sockets)"
        module.version = "6.0"
    index: 11
    name: <module-default-device-restore>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Lennart Poettering"
        module.description = "Automatically restore the default sink and source"
        module.version = "6.0"
    index: 12
    name: <module-rescue-streams>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Lennart Poettering"
        module.description = "When a sink/source is removed, try to move its streams to the default sink/source"
        module.version = "6.0"
    index: 13
    name: <module-always-sink>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Colin Guthrie"
        module.description = "Always keeps at least one sink loaded even if it's a null one"
        module.version = "6.0"
    index: 14
    name: <module-intended-roles>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Lennart Poettering"
        module.description = "Automatically set device of streams based on intended roles of devices"
        module.version = "6.0"
    index: 15
    name: <module-suspend-on-idle>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Lennart Poettering"
        module.description = "When a sink/source is idle for too long, suspend it"
        module.version = "6.0"
    index: 16
    name: <module-systemd-login>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Lennart Poettering"
        module.description = "Create a client for each login session of this user"
        module.version = "6.0"
    index: 17
    name: <module-position-event-sounds>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Lennart Poettering"
        module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
        module.version = "6.0"
    index: 18
    name: <module-filter-heuristics>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Colin Guthrie"
        module.description = "Detect when various filters are desirable"
        module.version = "6.0"
    index: 19
    name: <module-filter-apply>
    argument: <>
    used: -1
    load once: yes
    properties:
        module.author = "Colin Guthrie"
        module.description = "Load filter sinks automatically when needed"
        module.version = "6.0"
    index: 20
    name: <module-cli-protocol-unix>
    argument: <>
    used: -1
    load once: no
    properties:
        module.author = "Lennart Poettering"
        module.description = "Command line interface protocol (UNIX sockets)"
        module.version = "6.0"
1 sink(s) available.
  * index: 0
    name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
    driver: <module-alsa-card.c>
    flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
    state: SUSPENDED
    suspend cause: IDLE 
    priority: 9959
    volume: front-left: 38003 /  58% / -14.20 dB,   front-right: 38003 /  58% / -14.20 dB
            balance 0.00
    base volume: 65536 / 100% / 0.00 dB
    volume steps: 65537
    muted: no
    current latency: 0.00 ms
    max request: 0 KiB
    max rewind: 0 KiB
    monitor source: 0
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
                 Stereo
    used by: 0
    linked by: 0
    configured latency: 0.00 ms; range is 0.50 .. 371.52 ms
    card: 0 <alsa_card.pci-0000_00_1b.0>
    module: 6
    properties:
        alsa.resolution_bits = "16"
        device.api = "alsa"
        device.class = "sound"
        alsa.class = "generic"
        alsa.subclass = "generic-mix"
        alsa.name = "ALC3263 Analog"
        alsa.id = "ALC3263 Analog"
        alsa.subdevice = "0"
        alsa.subdevice_name = "subdevice #0"
        alsa.device = "0"
        alsa.card = "1"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0xf7218000 irq 49"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1b.0"
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "9ca0"
        device.product.name = "Wildcat Point-LP High Definition Audio Controller"
        device.form_factor = "internal"
        device.string = "front:1"
        device.buffering.buffer_size = "65536"
        device.buffering.fragment_size = "32768"
        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 ALC3263"
        alsa.components = "HDA:10ec0288,10280665,00100003"
        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>
2 source(s) available.
    index: 0
    name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
    driver: <module-alsa-card.c>
    flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
    state: SUSPENDED
    suspend cause: IDLE 
    priority: 1950
    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 rewind: 0 KiB
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
                 Stereo
    used by: 0
    linked by: 0
    configured latency: 0.00 ms; range is 0.50 .. 371.52 ms
    monitor_of: 0
    card: 0 <alsa_card.pci-0000_00_1b.0>
    module: 6
    properties:
        device.description = "Monitor of Built-in Audio Analog Stereo"
        device.class = "monitor"
        alsa.card = "1"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0xf7218000 irq 49"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1b.0"
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "9ca0"
        device.product.name = "Wildcat Point-LP High Definition Audio Controller"
        device.form_factor = "internal"
        device.string = "1"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
  * index: 1
    name: <alsa_input.pci-0000_00_1b.0.analog-stereo>
    driver: <module-alsa-card.c>
    flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
    state: SUSPENDED
    suspend cause: IDLE 
    priority: 9959
    volume: front-left: 10537 /  16% / -47.63 dB,   front-right: 10537 /  16% / -47.63 dB
            balance 0.00
    base volume: 6554 /  10% / -60.00 dB
    volume steps: 65537
    muted: no
    current latency: 0.00 ms
    max rewind: 0 KiB
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
                 Stereo
    used by: 0
    linked by: 0
    configured latency: 0.00 ms; range is 0.50 .. 371.52 ms
    card: 0 <alsa_card.pci-0000_00_1b.0>
    module: 6
    properties:
        alsa.resolution_bits = "16"
        device.api = "alsa"
        device.class = "sound"
        alsa.class = "generic"
        alsa.subclass = "generic-mix"
        alsa.name = "ALC3263 Analog"
        alsa.id = "ALC3263 Analog"
        alsa.subdevice = "0"
        alsa.subdevice_name = "subdevice #0"
        alsa.device = "0"
        alsa.card = "1"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0xf7218000 irq 49"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1b.0"
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "9ca0"
        device.product.name = "Wildcat Point-LP High Definition Audio Controller"
        device.form_factor = "internal"
        device.string = "front:1"
        device.buffering.buffer_size = "65536"
        device.buffering.fragment_size = "32768"
        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 ALC3263"
        alsa.components = "HDA:10ec0288,10280665,00100003"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    ports:
        analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-input-headphone-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-input-headset-mic: Headset Microphone (priority 8700, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-input-microphone"
    active port: <analog-input-internal-mic>
6 client(s) logged in.
    index: 0
    driver: <module-systemd-login.c>
    owner module: 16
    properties:
        application.name = "Login Session c2"
        systemd-login.session = "c2"
    index: 1
    driver: <protocol-native.c>
    owner module: 10
    properties:
        application.name = "Firefox"
        native-protocol.peer = "UNIX socket client"
        native-protocol.version = "30"
        application.icon_name = "firefox"
        application.version = "38.0"
        application.process.id = "3241"
        application.process.user = "cboettig"
        application.process.host = "xps"
        application.process.binary = "firefox"
        window.x11.display = ":0"
        application.language = "en_US.UTF-8"
        application.process.machine_id = "916c2df1197c4d9d83877ee5fb78d57f"
        application.process.session_id = "c2"
    index: 2
    driver: <protocol-native.c>
    owner module: 10
    properties:
        application.name = "Ubuntu Audio Settings"
        native-protocol.peer = "UNIX socket client"
        native-protocol.version = "30"
        application.id = "com.canonical.settings.sound"
        application.icon_name = "multimedia-volume-control"
        application.version = "0.1"
        application.process.id = "1645"
        application.process.user = "cboettig"
        application.process.host = "xps"
        application.process.binary = "indicator-sound-service"
        application.language = "en_US.UTF-8"
        window.x11.display = ":0"
        application.process.machine_id = "916c2df1197c4d9d83877ee5fb78d57f"
        application.process.session_id = "c2"
    index: 4
    driver: <protocol-native.c>
    owner module: 10
    properties:
        application.name = "GNOME Volume Control Media Keys"
        native-protocol.peer = "UNIX socket client"
        native-protocol.version = "30"
        application.id = "org.gnome.VolumeControl"
        application.icon_name = "multimedia-volume-control"
        application.version = "1.0"
        application.process.id = "1504"
        application.process.user = "cboettig"
        application.process.host = "xps"
        application.process.binary = "unity-settings-daemon"
        application.language = "en_US.UTF-8"
        window.x11.display = ":0"
        application.process.machine_id = "916c2df1197c4d9d83877ee5fb78d57f"
        application.process.session_id = "c2"
    index: 10
    driver: <protocol-native.c>
    owner module: 10
    properties:
        application.name = "unity-settings-daemon"
        native-protocol.peer = "UNIX socket client"
        native-protocol.version = "30"
        window.x11.display = ":0"
        window.x11.screen = "0"
        application.process.id = "1504"
        application.process.user = "cboettig"
        application.process.host = "xps"
        application.process.binary = "unity-settings-daemon"
        application.language = "en_US.UTF-8"
        application.process.machine_id = "916c2df1197c4d9d83877ee5fb78d57f"
        application.process.session_id = "c2"
    index: 11
    driver: <cli.c>
    owner module: 20
    properties:
        application.name = "UNIX socket client"
1 card(s) available.
    index: 0
    name: <alsa_card.pci-0000_00_1b.0>
    driver: <module-alsa-card.c>
    owner module: 6
    properties:
        alsa.card = "1"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0xf7218000 irq 49"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1b.0"
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "9ca0"
        device.product.name = "Wildcat Point-LP High Definition Audio Controller"
        device.form_factor = "internal"
        device.string = "1"
        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)
        off: Off (priority 0, available: unknown)
    active profile: <output:analog-stereo+input:analog-stereo>
    sinks:
        alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Built-in Audio Analog Stereo
    sources:
        alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
        alsa_input.pci-0000_00_1b.0.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-headphone-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-input-headset-mic: Headset 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"
0 sink input(s) available.
0 source output(s) available.
0 cache entrie(s) available.
soren121 commented 9 years ago

That's strange. ALSA isn't recognizing the digital sound card.

Let's do a sanity check first to make sure the hardware isn't faulty. lspci -v should list two audio devices: " Intel Corporation Broadwell-U Audio Controller" and "Intel Corporation Wildcat Point-LP High Definition Audio Controller". Both devices should be using the _snd_hdaintel kernel module.

If that's all correct, refer to this wiki page and see if any of the suggestions work for you: https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture/Troubleshooting

cboettig commented 9 years ago

Yup, both of those devices are listed and are using sdn_hda_intel. Looking at the wiki now...

On Thu, May 28, 2015 at 9:39 AM Nicholas Narsing notifications@github.com wrote:

That's strange. ALSA isn't recognizing the digital sound card.

Let's do a sanity check first to make sure the hardware isn't faulty. lspci -v should list two audio devices: " Intel Corporation Broadwell-U Audio Controller" and "Intel Corporation Wildcat Point-LP High Definition Audio Controller". Both devices should be using the snd_hda_intel kernel module.

If that's all correct, refer to this wiki page and see if any of the suggestions work for you: https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture/Troubleshooting

— Reply to this email directly or view it on GitHub https://github.com/advancingu/XPS13Linux/issues/24#issuecomment-106474019 .

cboettig commented 9 years ago

Not sure where to start there. I note that aplay -l doesn't list the displayport either. Strangely, alsamixer fails to run (even as root); gives the error cannot open mixer: No such file or directory

On Thu, May 28, 2015 at 9:43 AM Carl Boettiger cboettig@gmail.com wrote:

Yup, both of those devices are listed and are using sdn_hda_intel. Looking at the wiki now...

On Thu, May 28, 2015 at 9:39 AM Nicholas Narsing notifications@github.com wrote:

That's strange. ALSA isn't recognizing the digital sound card.

Let's do a sanity check first to make sure the hardware isn't faulty. lspci -v should list two audio devices: " Intel Corporation Broadwell-U Audio Controller" and "Intel Corporation Wildcat Point-LP High Definition Audio Controller". Both devices should be using the snd_hda_intel kernel module.

If that's all correct, refer to this wiki page and see if any of the suggestions work for you: https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture/Troubleshooting

— Reply to this email directly or view it on GitHub https://github.com/advancingu/XPS13Linux/issues/24#issuecomment-106474019 .

soren121 commented 9 years ago

Maybe something borked your ALSA config.

  1. Check what sound modules ALSA loaded: cat /proc/asound/modules. It should have only loaded _snd_hdaintel twice.
  2. Try this: http://askubuntu.com/a/294845/56905
cboettig commented 9 years ago

Hm, looks like maybe it is loaded only once?

$ cat /proc/asound/modules
 1 snd_hda_intel

I've tried that askubuntu answer already. alsamixer is in my path, but gives that error above. Neither of the conf files ~/.asoundrc or /etc/asound.conf exist, and purge and reinstall didn't help either.

It's weird because sound and microphone are working perfectly through the laptop speakers, it's just that the displayport speakers aren't being recognized.

cboettig commented 9 years ago

Hmm, after installing a recent set of kernel updates pushed to Ubuntu 15.04, alsamixer now runs as expected and I can see the displayport monitor sound in my sound devices. Yay, all fixed I guess.