You are not logged in.

#1 2018-10-25 13:07:28

xutaxkamay
Member
Registered: 2018-10-25
Posts: 1

Black screen after hibernating/wrong pulseaudio output for headphones

Hello dear community.
First of all, sorry, (Arch)linux is kinda new for me, but I've became really a new fan of it and been using it daily.
After searching some days I couldn't figure my problems really, so if you can help me to.. Help me, I would be grateful.
I'll do everything on my side to provide much information I can.
My problems on my MSI GT72S 6QE Dominator Pro G laptop are:

1) Wrong pulseaudio output for headphones:

When I'm plugging my headphones, the output seems to work only on S/PDIF.
Headphones are detected fine, but I always need to go on the audio panel to change to S/PDIF so my headphones can work properly.
Is there a way to set it by default when plugging headphones?
Headphones are also working on Analog Stereo Duplex/Analog Stereo Output if I switch on the element IEC958 from /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf , but the sound is just too loud.
I've tried to play with some things, volume-limit, volume = ignore inside those configurations, also ignore_dB=1 inside the default.pa config inside /etc/pulse but nothing seemed to work properly, for example, speakers would be muted / or not switched to speakers when unplugging headphones.

Here some information that you may need:

pacmd list ->

Memory blocks currently allocated: 6, size: 229.8 KiB.
Memory blocks allocated during the whole lifetime: 602131, size: 417.9 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: 11.5 KiB.
Default sample spec: float32le 2ch 192000Hz
Default channel map: front-left,front-right
Default sink name: alsa_output.pci-0000_00_1f.3.analog-stereo
Default source name: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
Memory blocks of type POOL: 4 allocated/388112 accumulated.
Memory blocks of type POOL_EXTERNAL: 2 allocated/183627 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/183722 accumulated.
Memory blocks of type IMPORTED: 0 allocated/30297 accumulated.
24 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 = "12.2"
    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 = "12.2"
    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 = "12.2"
    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 = "12.2"
    index: 4
        name: <module-switch-on-port-available>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "David Henningsson"
                module.description = "Switches ports and profiles when devices are plugged/unplugged"
                module.version = "12.2"
    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 = "12.2"
    index: 6
        name: <module-alsa-card>
        argument: <device_id="1" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" 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 = "12.2"
    index: 7
        name: <module-alsa-card>
        argument: <device_id="0" name="pci-0000_00_1f.3" card_name="alsa_card.pci-0000_00_1f.3" 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: 2
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "ALSA Card"
                module.version = "12.2"
    index: 8
        name: <module-dbus-protocol>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Tanu Kaskinen"
                module.description = "D-Bus interface"
                module.version = "12.2"
    index: 9
        name: <module-esound-protocol-unix>
        argument: <>
        used: -1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "ESOUND protocol (UNIX sockets)"
                module.version = "12.2"
    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 = "12.2"
    index: 11
        name: <module-gsettings>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Sylvain Baubeau"
                module.description = "GSettings Adapter"
                module.version = "12.2"
    index: 12
        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 = "12.2"
    index: 13
        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 = "12.2"
    index: 14
        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 = "12.2"
    index: 15
        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 = "12.2"
    index: 16
        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 = "12.2"
    index: 17
        name: <module-console-kit>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Create a client for each ConsoleKit session of this user"
                module.version = "12.2"
    index: 18
        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 = "12.2"
    index: 19
        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 = "12.2"
    index: 20
        name: <module-role-cork>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Mute & cork streams with certain roles while others exist"
                module.version = "12.2"
    index: 21
        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 = "12.2"
    index: 22
        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 = "12.2"
    index: 24
        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 = "12.2"
1 sink(s) available.
  * index: 2
        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: (none)
        priority: 9039
        volume: front-left: 15073 /  23% / -38.30 dB,   front-right: 15073 /  23% / -38.30 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 35.95 ms
        max request: 60 KiB
        max rewind: 60 KiB
        monitor source: 2
        sample spec: s32le 2ch 192000Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 1
        configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms
        card: 1 <alsa_card.pci-0000_00_1f.3>
        module: 7
        properties:
                alsa.resolution_bits = "32"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC898 Analog"
                alsa.id = "ALC898 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 0xda120000 irq 142"
                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 = "a170"
                device.product.name = "Sunrise Point-H HD Audio"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "3072000"
                device.buffering.fragment_size = "1536000"
                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 ALC898"
                alsa.components = "HDA:10ec0899,14621180,00100003"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: no)
                        properties:

                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-headphones>
1 source(s) available.
  * index: 2
        name: <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: RUNNING
        suspend cause: (none)
        priority: 1030
        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: 60 KiB
        sample spec: s32le 2ch 192000Hz
        channel map: front-left,front-right
                     Stereo
        used by: 1
        linked by: 1
        configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms
        monitor_of: 2
        card: 1 <alsa_card.pci-0000_00_1f.3>
        module: 7
        properties:
                device.description = "Monitor of Built-in Audio Analog Stereo"
                device.class = "monitor"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xda120000 irq 142"
                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 = "a170"
                device.product.name = "Sunrise Point-H HD Audio"
                device.form_factor = "internal"
                device.string = "0"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
6 client(s) logged in.
    index: 0
        driver: <module-systemd-login.c>
        owner module: 18
        properties:
                application.name = "Login Session 1"
                systemd-login.session = "1"
    index: 1
        driver: <protocol-native.c>
        owner module: 10
        properties:
                application.name = "libcanberra"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.version = "0.30"
                application.id = "org.freedesktop.libcanberra"
                application.process.id = "771"
                application.process.user = "kamay"
                application.process.host = "archlinux"
                application.process.binary = "plasmashell"
                application.language = "en_US.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "7ce75882fe414a4d9958f200d5ad68fc"
                application.process.session_id = "1"
    index: 2
        driver: <protocol-native.c>
        owner module: 10
        properties:
                application.name = "PulseAudio Volume Control"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.id = "org.PulseAudio.pavucontrol"
                application.icon_name = "audio-card"
                application.version = "3.0"
                application.process.id = "2976"
                application.process.user = "kamay"
                application.process.host = "archlinux"
                application.process.binary = "pavucontrol"
                application.language = "en_US.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "7ce75882fe414a4d9958f200d5ad68fc"
                application.process.session_id = "1"
    index: 3
        driver: <protocol-native.c>
        owner module: 10
        properties:
                application.name = "QPulse"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.process.id = "771"
                application.process.user = "kamay"
                application.process.host = "archlinux"
                application.process.binary = "plasmashell"
                application.language = "en_US.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "7ce75882fe414a4d9958f200d5ad68fc"
                application.process.session_id = "1"
    index: 4
        driver: <protocol-native.c>
        owner module: 10
        properties:
                application.name = "Chrome input"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.process.id = "3835"
                application.process.user = "kamay"
                application.process.host = "archlinux"
                application.process.binary = "chrome"
                application.language = "en_US.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "7ce75882fe414a4d9958f200d5ad68fc"
                application.process.session_id = "1"
    index: 16
        driver: <cli.c>
        owner module: 24
        properties:
                application.name = "UNIX socket client"
2 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_01_00.1>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "1"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xdc080000 irq 17"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "0fbb"
                device.product.name = "GM204 High Definition Audio Controller"
                device.string = "1"
                device.description = "GM204 High Definition Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
                output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
                output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
                output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
                output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
                off: Off (priority 0, available: unknown)
        active profile: <off>
        ports:
                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"
    index: 1
        name: <alsa_card.pci-0000_00_1f.3>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xda120000 irq 142"
                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 = "a170"
                device.product.name = "Sunrise Point-H HD Audio"
                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 65, available: unknown)
                output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
                output:analog-surround-40: Analog Surround 4.0 Output (priority 1200, available: no)
                output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 1265, available: unknown)
                output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)
                output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 5565, available: unknown)
                off: Off (priority 0, available: unknown)
        active profile: <output:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1f.3.analog-stereo/#2: Built-in Audio Analog Stereo
        sources:
                alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#2: Monitor of 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-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
                        properties:

                analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: no)
                        properties:

                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-headphones"
                iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:

0 sink input(s) available.
1 source output(s) available.
    index: 12
        driver: <protocol-native.c>
        flags: DONT_MOVE 
        state: RUNNING
        source: 2 <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
        volume: mono: 65536 / 100% / 0.00 dB
                balance 0.00
        muted: no
        current latency: 20.69 ms
        requested latency: 40.00 ms
        sample spec: float32le 1ch 25Hz
        channel map: mono
                     Mono
        resample method: peaks
        owner module: 10
        client: 2 <PulseAudio Volume Control>
        properties:
                media.name = "Peak detect"
                application.name = "PulseAudio Volume Control"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.id = "org.PulseAudio.pavucontrol"
                application.icon_name = "audio-card"
                application.version = "3.0"
                application.process.id = "2976"
                application.process.user = "kamay"
                application.process.host = "archlinux"
                application.process.binary = "pavucontrol"
                application.language = "en_US.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "7ce75882fe414a4d9958f200d5ad68fc"
                application.process.session_id = "1"
                module-stream-restore.id = "source-output-by-application-id:org.PulseAudio.pavucontrol"
1 cache entrie(s) available.
    name: <audio-volume-change>
        index: 0
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        length: 11776
        duration: 0.1 s
        volume: n/a
                balance 0.00
        lazy: no
        filename: <n/a>
        properties:
                media.role = "event"
                event.id = "audio-volume-change"
                event.description = "Volume Control Feedback Sound"
                media.name = "audio-volume-change"
                media.filename = "/usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"
                application.name = "libcanberra"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.version = "0.30"
                application.id = "org.freedesktop.libcanberra"
                application.process.id = "771"
                application.process.user = "kamay"
                application.process.host = "archlinux"
                application.process.binary = "plasmashell"
                application.language = "en_US.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "7ce75882fe414a4d9958f200d5ad68fc"
                application.process.session_id = "1"

2) Black screen after hibernating, I didn't try much on this, I've just discovered it recently.

Thanks for your answers in advance everyone.

Last edited by xutaxkamay (2018-10-25 13:11:13)

Offline

Board footer

Powered by FluxBB