noctalia-shell icon indicating copy to clipboard operation
noctalia-shell copied to clipboard

[BUG] Volume change feedback sound doesn't play

Open YuvrajSinghGitbub opened this issue 5 months ago • 8 comments

Submission checklist

  • [x] I have searched existing issues and confirmed this is not a duplicate.
  • [x] I am using the latest available version of Noctalia.

Bug description

Hello, Since the I have started using the v5 I noticed that when volume is change there is no audio feedback. I have set the audio files in the config correctly too. The notification volume works as expected, just not volume change and brightness change. I first expected that maybe noctalia is not opening the audio files at the installed location so I copied them to ~/.local/share/noctalia. The settings.toml is:

[audio]
enable_sounds = true
notification_sound = "/home/giogio/.local/share/noctalia/assets/sounds/notification.wav"
sound_volume = 0.99999997764825821
volume_change_sound = "/home/giogio/.local/share/noctalia/assets/sounds/volume-change.wav"

[bar]
order = [ "default" ]

    [bar.default]
    capsule = true
    end = [ "tray", "notifications", "network", "volume", "brightness", "battery", "control-center", "session" ]
    margin_edge = 0.0
    margin_ends = 0.0
    padding = 6
    radius = 0
    start = [ "workspaces", "active_window" ]
    thickness = 26

[battery]
warning_threshold = 25

[desktop_widgets]
enabled = false
schema_version = 1
widget_order = []

    [desktop_widgets.grid]
    cell_size = 16
    major_interval = 4
    visible = true

    [desktop_widgets.widget]

[hooks]
battery_low_percent_threshold = 25

[idle]
behavior_order = [ "dim_backlight", "dpms_off", "lock_screen", "suspend" ]
pre_action_fade_seconds = 0.0

    [idle.behavior.dim_backlight]
    action = "command"
    command = "brightnessctl -s set 10%"
    enabled = false
    resume_command = "brightnessctl -r"
    timeout = 150

    [idle.behavior.dpms_off]
    action = "screen_off"
    command = "noctalia:dpms-off"
    enabled = false
    resume_command = "noctalia:dpms-on"
    timeout = 330

    [idle.behavior.lock_screen]
    action = "command"
    command = "noctalia:screen-lock"
    enabled = false
    timeout = 300

    [idle.behavior.suspend]
    action = "command"
    command = "systemctl suspend"
    enabled = false
    timeout = 800

[location]
sunrise = "07:00"
sunset = "20:30"

[lockscreen_widgets]
enabled = true
schema_version = 1
widget_order = [ "lockscreen-login-box@eDP-1", "lockscreen-widget-0000000000000001", "lockscreen-widget-0000000000000002" ]

    [lockscreen_widgets.grid]
    cell_size = 16
    major_interval = 4
    visible = true

    [lockscreen_widgets.widget."lockscreen-login-box@eDP-1"]
    cx = 960.0
    cy = 957.0
    output = "eDP-1"
    rotation = 0.0
    scale = 1.0
    type = "login_box"

    [lockscreen_widgets.widget.lockscreen-widget-0000000000000001]
    cx = 958.0
    cy = 364.0
    output = "eDP-1"
    rotation = 0.0
    scale = 1.6904983520507812
    type = "clock"

    [lockscreen_widgets.widget.lockscreen-widget-0000000000000002]
    cx = 955.52862548828125
    cy = 545.4285888671875
    output = "eDP-1"
    rotation = 0.0
    scale = 0.84285712242126465
    type = "media_player"

[nightlight]
enabled = true
start_time = "19:00"
stop_time = "7:00"
temperature_day = 7600
temperature_night = 5200
use_weather_location = false

[osd]
position = "top_right"

[shell]
corner_radius_scale = 0.5000000074505806
font_family = "FiraCode Nerd Font Propo"
settings_show_advanced = true
show_location = false
telemetry_enabled = false

[system.monitor]
enabled = false

[theme]
builtin = "Catppuccin"
community_palette = "Catppuccin Lavender"
source = "community"

[wallpaper]
directory = "/home/giogio/Pictures/CatppuccineWallpapers/walls-catppuccin-mocha"
enabled = false

    [wallpaper.automation]
    enabled = true
    recursive = false

    [wallpaper.default]
    path = "/home/giogio/Pictures/CatppuccineWallpapers/walls-catppuccin-mocha/aesthetic.jpg"

    [wallpaper.last]
    path = "/home/giogio/Pictures/CatppuccineWallpapers/walls-catppuccin-mocha/aesthetic.jpg"

    [wallpaper.monitors.eDP-1]
    path = "/home/giogio/Pictures/CatppuccineWallpapers/walls-catppuccin-mocha/aesthetic.jpg"

[weather]
enabled = false

Steps to reproduce

noctalia msg volume-up 5

Expected behavior

There should be audio chime that plays when volume keys are pressed

Actual behavior

No audio is heard on volume change

Logs / error output


Noctalia version

586509e6cad6

Compositor

Niri

Distribution

Arch-based

Environment information

Build from source (default installation path)
Kernel: Linux 7.0.11-1-cachyos
Audio:
  Device-1: NVIDIA driver: snd_hda_intel
  Device-2: Advanced Micro Devices [AMD] Audio Coprocessor
    driver: snd_pci_acp3x
  Device-3: Advanced Micro Devices [AMD] Ryzen HD Audio
    driver: snd_hda_intel
  API: ALSA v: k7.0.11-1-cachyos status: kernel-api
  Server-1: PipeWire v: 1.6.6 status: active

Additional context

No response

YuvrajSinghGitbub avatar Jun 08 '26 18:06 YuvrajSinghGitbub

Arch linux+niri-git-26.04.36.g49fc611+noctalia-git-5.0.0.r4707.g088b45a8b Same issue here, but for both volume changes and notifications.

Using the standard default config (enable_sounds = true with empty sound paths to use bundled files), neither volume_change_sound nor notification_sound produces any audio.

[audio]
enable_overdrive     = false  # allow volume sliders above 100% (up to 150%)
enable_sounds        = true  # master toggle for UI sounds
sound_volume         = 0.5    # global sound volume (0.0 - 1.0)
volume_change_sound  = ""     # empty = bundled default sounds/volume-change.wav
notification_sound   = ""     # empty = bundled default sounds/notification.wav

edited: Custom WAV sound effects set by the user are also not working.

ffs-akl avatar Jul 22 '26 15:07 ffs-akl

Just double-checked my setup and wanted to clarify the exact behavior:

  1. Notification Sounds: These are actually working now (the default 50% volume was just too quiet to hear initially).
  2. Volume Adjustment Sound Effect: This is STILL missing entirely, even when the volume is set to 100%.

So the volume slider/adjustment sound issue persists.

Key Findings:

  • When audio routes properly through EasyEffects (like playing sound via ChromiumorAmberol), the volume is plenty loud thanks to AutoGain.
  • However, the notification sound effect seems to bypass the main PipeWire/PulseAudio audio sink entirely. Because it bypasses EasyEffects, AutoGain is never applied, making it unamplified and completely inaudible on my setup.
Image

ffs-akl avatar Jul 23 '26 14:07 ffs-akl

Also experiencing this on CachyOS Hyprland.

jon-munoz avatar Aug 24 '26 16:08 jon-munoz

@YuvrajSinghGitbub Hello, do you have the issue on the latest 5.3 version still? Can you check and report back. Thanks

AdityaKr015 avatar Oct 17 '26 06:10 AdityaKr015

Same thing is happening to me, using Fedora 44 + PipeWire 1.6.9 and the latest 5.3 version. No system sounds are working, not even notifications (all other sounds are good).

[audio]
enable_notification_sounds = true
enable_overdrive = false
enable_power_sounds = true
enable_screenshot_sounds = true
enable_sounds = true
enable_volume_sounds = true
sound_theme = "freedesktop"
sound_volume = 0.5

if i change sound_volume to 1, same thing happens.

I tested the freedesktop and ocean themes, as well as a custom WAV theme. Noctalia logs confirm that the sound files load successfully.

Playing the same files with pw-play works correctly.

~$ notify-send -u critical "test" "Sounds" ~$ pw-play /usr/share/sounds/freedesktop/stereo/message-new-instant.oga the first one correctly sends the notification, but no sound reproduce. the second one i can hear perfectly.

Bloodcasterjavier avatar Oct 20 '26 14:10 Bloodcasterjavier

Noctalia plays its UI sounds as a PipeWire stream with media.role=Notification. WirePlumber stores one shared volume/mute/output entry for all Notification-role streams (the "System Sounds" slider in pavucontrol, GNOME and KDE). Plain pw-play uses role Music, so it skips that entry, which is why it works for you.

Please run these and post the output:

  1. Same file, both roles. Does only the second one stay silent?
    f=/usr/share/sounds/freedesktop/stereo/audio-volume-change.oga
    pw-play "$f"
    pw-play --media-role=Notification "$f"
    
  2. The saved state for the Notification role (look for "mute":true, a volume near 0, or a "target"):
    grep -i 'media.role:Notification' ~/.local/state/wireplumber/stream-properties
    
  3. Where the stream actually goes. Run pw-top (or pavucontrol, Playback tab, "Show: All streams") in one terminal, and noctalia msg volume-up 5 in another. Does a noctalia-sound node appear, and on which device?
  4. wpctl status

If step 1 confirms it, raise "System Sounds" in pavucontrol, or remove that line from stream-properties and run systemctl --user restart wireplumber.

ItsLemmy avatar Oct 20 '26 19:10 ItsLemmy

That was it! I had mute=true in the Notification role in Wireplumber. It's fixed now, thanks! But why was mute=true in the first place? I have Fedora KDE, maybe there i muted notifications and it got saved. And now that i'm using Noctalia, i had no system sounds?

Bloodcasterjavier avatar Oct 20 '26 19:10 Bloodcasterjavier

Yeah, you muted it as some point in KDE or pavucontrol / pwvucontrol or any other software.

ItsLemmy avatar Oct 20 '26 20:10 ItsLemmy