prasanthrangan / hyprdots

// Aesthetic, dynamic and minimal dots for Arch hyprland
GNU General Public License v3.0
7.34k stars 867 forks source link

[Bug]: No sound on headphone jack(s) from Application, internal speakers are working #1236

Closed win5923 closed 7 months ago

win5923 commented 7 months ago

Bug Report

Description

When adjusting the volume using the headphone jack, there is sound, but there is no sound when adjusting through the application. Bluetooth has been tested and is functioning normally, as are the internal speakers.

$ pacman -Qqs pipewire | pacman -Q linux -
linux 6.8.2.arch2-1
gst-plugin-pipewire 1:1.0.4-4
libpipewire 1:1.0.4-4
libwireplumber 0.5.1-1
pipewire 1:1.0.4-4
pipewire-alsa 1:1.0.4-4
pipewire-audio 1:1.0.4-4
pipewire-jack 1:1.0.4-4
pipewire-pulse 1:1.0.4-4
wireplumber 0.5.1-1
$ systemctl --user list-unit-files pipewire\*
UNIT FILE                        STATE    PRESE
T 
pipewire-pulse.service           enabled  enabled
pipewire-session-manager.service alias    -      

pipewire.service                 disabled 
enabled
pipewire-pulse.socket            enabled  enabled
pipewire.socket                  enabled  enabled

5 unit files listed.
$ pactl list sinks
Sink #53
    State: SUSPENDED
    Name: alsa_output.pci-0000_00_1f.3.analog-stereo
    Description: Built-in Audio Analog Stereo
    Driver: PipeWire
    Sample Specification: s32le 2ch 48000Hz
    Channel Map: front-left,front-right
    Owner Module: 4294967295
    Mute: no
    Volume: front-left: 59311 /  91% / -2.60 dB,   front-right: 59311 /  91% / -2.60 dB
           balance 0.00
    Base Volume: 65536 / 100% / 0.00 dB
    Monitor Source: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
    Latency: 0 usec, configured 0 usec
    Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
    Properties:
        alsa.card = "0"
        alsa.card_name = "HDA Intel PCH"
        alsa.class = "generic"
        alsa.device = "0"
        alsa.driver_name = "snd_hda_intel"
        alsa.id = "ALC256 Analog"
        alsa.long_card_name = "HDA Intel PCH at 0x6022188000 irq 212"
        alsa.name = "ALC256 Analog"
        alsa.resolution_bits = "16"
        alsa.subclass = "generic-mix"
        alsa.subdevice = "0"
        alsa.subdevice_name = "subdevice #0"
        api.alsa.card.longname = "HDA Intel PCH at 0x6022188000 irq 212"
        api.alsa.card.name = "HDA Intel PCH"
        api.alsa.path = "front:0"
        api.alsa.pcm.card = "0"
        api.alsa.pcm.stream = "playback"
        audio.channels = "2"
        audio.position = "FL,FR"
        card.profile.device = "7"
        device.api = "alsa"
        device.class = "sound"
        device.id = "49"
        device.profile.description = "Analog Stereo"
        device.profile.name = "analog-stereo"
        device.routes = "2"
        factory.name = "api.alsa.pcm.sink"
        media.class = "Audio/Sink"
        device.description = "Built-in Audio"
        node.name = "alsa_output.pci-0000_00_1f.3.analog-stereo"
        node.nick = "ALC256 Analog"
        node.pause-on-idle = "false"
        object.path = "alsa:pcm:0:front:0:playback"
        priority.driver = "1009"
        priority.session = "1009"
        factory.id = "18"
        clock.quantum-limit = "8192"
        client.id = "45"
        node.driver = "true"
        factory.mode = "merge"
        audio.adapt.follower = ""
        library.name = "audioconvert/libspa-audioconvert"
        object.id = "53"
        object.serial = "53"
        api.acp.auto-port = "false"
        api.alsa.card = "0"
        api.alsa.use-acp = "true"
        api.dbus.ReserveDevice1 = "Audio0"
        api.dbus.ReserveDevice1.Priority = "-20"
        device.bus = "pci"
        device.bus_path = "pci-0000:00:1f.3"
        device.enum.api = "udev"
        device.form_factor = "internal"
        device.icon_name = "audio-card-analog-pci"
        device.name = "alsa_card.pci-0000_00_1f.3"
        device.nick = "HDA Intel PCH"
        device.plugged.usec = "5772197"
        device.product.id = "0x51c8"
        device.product.name = "Alder Lake PCH-P High Definition Audio Controller"
        device.subsystem = "sound"
        sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
        device.vendor.id = "0x8086"
        device.vendor.name = "Intel Corporation"
        device.string = "0"
    Ports:
        analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability group: Legacy 2, availability unknown)
        analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability group: Legacy 3, not available)
    Active Port: analog-output-headphones
    Formats:
        pcm
wpctl status
PipeWire 'pipewire-0' [1.0.4, blocka@archlinux, cookie:2308705921]
 └─ Clients:
        31. WirePlumber                         [1.0.4, blocka@archlinux, pid:789]
        32. pipewire                            [1.0.4, blocka@archlinux, pid:790]
        45. WirePlumber [export]                [1.0.4, blocka@archlinux, pid:789]
        56. xdg-desktop-portal-hyprland         [1.0.4, blocka@archlinux, pid:1474]
        57. waybar                              [1.0.4, blocka@archlinux, pid:894]
        58. waybar                              [1.0.4, blocka@archlinux, pid:894]
        59. Blueman                             [1.0.4, blocka@archlinux, pid:896]
        60. Brave input                         [1.0.4, blocka@archlinux, pid:192]
        67. wpctl                               [1.0.4, blocka@archlinux, pid:59123]

Audio
 ├─ Devices:
 │      49. Built-in Audio                      [alsa]
 │  
 ├─ Sinks:
 │      53. Built-in Audio Analog Stereo        [vol: 0.91]
 │  
 ├─ Sources:
 │  *   54. Built-in Audio Analog Stereo        [vol: 1.00]
 │  
 ├─ Filters:
 │  
 └─ Streams:

Video
 ├─ Devices:
 │  
 ├─ Sinks:
 │  
 ├─ Sources:
 │  
 ├─ Filters:
 │  
 └─ Streams:

Settings
 └─ Default Configured Devices:
❯ wpctl status
PipeWire 'pipewire-0' [1.0.4, blocka@archlinux, cookie:2308705921]
 └─ Clients:
        31. WirePlumber                         [1.0.4, blocka@archlinux, pid:789]
        32. pipewire                            [1.0.4, blocka@archlinux, pid:790]
        45. WirePlumber [export]                [1.0.4, blocka@archlinux, pid:789]
        56. xdg-desktop-portal-hyprland         [1.0.4, blocka@archlinux, pid:1474]
        57. waybar                              [1.0.4, blocka@archlinux, pid:894]
        58. waybar                              [1.0.4, blocka@archlinux, pid:894]
        59. Blueman                             [1.0.4, blocka@archlinux, pid:896]
        60. Brave input                         [1.0.4, blocka@archlinux, pid:192]
        67. wpctl                               [1.0.4, blocka@archlinux, pid:59520]

Audio
 ├─ Devices:
 │      49. Built-in Audio                      [alsa]
 │  
 ├─ Sinks:
 │      53. Built-in Audio Analog Stereo        [vol: 0.91]
 │  
 ├─ Sources:
 │  *   54. Built-in Audio Analog Stereo        [vol: 1.00]
 │  
 ├─ Filters:
 │  
 └─ Streams:

Video
 ├─ Devices:
 │  
 ├─ Sinks:
 │  
 ├─ Sources:
 │  
 ├─ Filters:
 │  
 └─ Streams:

Settings
 └─ Default Configured Devices:

[Provide a clear and concise description of the bug.]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected Behavior

[What did you expect to happen?]

Actual Behavior

[What actually happened?]

Screenshots

image image image image

Environment

[Please add any other relevant information about the bug and remove the unnecessary lines.]

e.g.,

flags: (if any)


- Installation Environment: On The Main Hardware
- Other info: [e.g., Display Resolution, Resolution, etc]

### Additional Information

[Add any other information about the problem here. For example, you might include the error message, any recent changes that you made to the project, or any other relevant details.]
Enigma1309 commented 7 months ago

image these packages are also needed for pipewire to work correctly, i also had the somewhat same issue back then i got it working by installing these

alsa-card-profiles
alsa-firmware
alsa-lib
alsa-plugins
alsa-topology-conf
alsa-ucm-conf
alsa-utils
lib32-alsa-lib
lib32-alsa-plugins
pipewire-alsa
win5923 commented 7 months ago

image these packages are also needed for pipewire to work correctly, i also had the somewhat same issue back then i got it working by installing these

alsa-card-profiles
alsa-firmware
alsa-lib
alsa-plugins
alsa-topology-conf
alsa-ucm-conf
alsa-utils
lib32-alsa-lib
lib32-alsa-plugins
pipewire-alsa

I've installed all packages and reboot but still no sound on my headphone. Not sure what the reason is....

Enigma1309 commented 7 months ago

try running alsamixer

win5923 commented 7 months ago

try running alsamixer

image

default card: image

Enigma1309 commented 7 months ago

have you tried checking any other browser/ source of audio?

also try checking the pipewire section of archwiki

win5923 commented 7 months ago

have you tried checking any other browser/ source of audio?

also try checking the pipewire section of archwiki

Yes, I tried firefox,but still got same issue. Only the speaker has audio, but the headphones do not.

win5923 commented 7 months ago

after confiugred the asound.conf, The Alsamixer output:

image

I have tested my bluetooth headphones and it's working.

Enigma1309 commented 7 months ago

ohh i was scratching my head but... it's good if it worked :+1:

but did the jack problem got solved?

win5923 commented 7 months ago

ohh i was scratching my head but... it's good if it worked 👍

but did the jack problem got solved?

not yet. 😢

win5923 commented 7 months ago

I tried the way one from ZeroAnarchy, The problem got sloved! I created a file, then shutdown the system and turn on.

$ cat /etc/modprobe.d/alsa.conf
options snd-hda-intel model=headset-mode

Ref: https://forum.manjaro.org/t/sound-from-speakers-no-sound-from-3-5mm-jack-audio/5343/20

capGoblin commented 5 months ago

If anyone encountered the same problem and the above solution by @win5923 didn't work for you (didn't work for me)

Try this, especially if the output device is labeled as "dummy output":

Answer by anti4r here: https://unix.stackexchange.com/questions/633019/arch-linux-doesnt-recognize-sound-driver-dummy-output

B4E5Y9S3 commented 3 months ago

in ubuntu 24.04 i just uninstalled via sudo apt autoremove pipewire and unmuted headphone in alsamixer it worked for me.