You are not logged in.

#1 2023-03-30 10:51:52

barnd3
Member
Registered: 2023-02-07
Posts: 121

notifications sound

Hello,
I have the "freedesktop" system sound set, on a new installation the notifications sound still worked wonderfully, only suddenly it no longer works.
Does anyone know advice?

my system:

inxi -b
System:
  Host: I-NET Kernel: 6.1.21-1-lts arch: x86_64 bits: 64 Desktop: Xfce
    v: 4.18.1 Distro: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: Z170-DELUXE v: Rev 1.xx
    serial: <superuser required> UEFI: American Megatrends v: 3801
    date: 03/14/2018
CPU:
  Info: quad core Intel Core i7-6700K [MT MCP] speed (MHz): avg: 912
    min/max: 800/4001
Graphics:
  Device-1: NVIDIA TU104 [GeForce RTX 2070 SUPER] driver: nvidia v: 530.41.03
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1 driver: X:
    loaded: nvidia gpu: nvidia resolution: 2560x1440
  API: OpenGL v: 4.6.0 NVIDIA 530.41.03 renderer: NVIDIA GeForce RTX 2070
    SUPER/PCIe/SSE2
Network:
  Device-1: Broadcom NetXtreme BCM5751 Gigabit Ethernet PCI Express
    driver: tg3
Drives:
  Local Storage: total: 3.21 TiB used: 432.49 GiB (13.1%)
Info:
  Processes: 318 Uptime: 3m Memory: 31.28 GiB used: 2.28 GiB (7.3%) Shell: Zsh
  inxi: 3.3.25

Offline

#2 2023-03-30 11:33:28

toz
Member
Registered: 2011-10-28
Posts: 497

Re: notifications sound

For xfce4-notifyd to issue a sound during a notification, the following need to be in place or enabled:

  • xfce4-notifyd is your notification provider

  • libcanberra installed

  • canberra-gtk-module loaded ("env | grep GTK_MODULES")

  • event and feedback sounds enabled (Settings Manager > Appearance > Settings)

  • sound theme set ("xfconf-query -c xsettings -p /Net/SoundThemeName")

  • the system sound volume turned up

  • the notification sender sending a sound hint:

    notify-send -i xfce4-logo -h "string:sound-name:bell" test test

Can you confirm the above?

Offline

#3 2023-03-30 13:36:56

barnd3
Member
Registered: 2023-02-07
Posts: 121

Re: notifications sound

xfce4-notifyd is my notification provider
libcanberra is installed
env | grep GTK_MODULES = "GTK_MODULES=canberra-gtk-module:canberra-gtk-module"
event and feedback sounds is enabled
xfconf-query -c xsettings -p /Net/SoundThemeName = default
the system sounds volume is 100%
bei

notify-send -i xfce4-logo -h "string:sound-name:bell" test test

a sound is heard,

Edit:
funny white was yes at the beginning a sound to hear, with normal popups

Last edited by barnd3 (2023-03-30 13:42:47)

Offline

#4 2023-03-30 15:12:32

toz
Member
Registered: 2011-10-28
Posts: 497

Re: notifications sound

barnd3 wrote:

a sound is heard,

Then it does work properly. Why do you say it doesn't? Is it a specific program that has stopped sending sound notifications?

Offline

#5 2023-03-30 16:16:40

barnd3
Member
Registered: 2023-02-07
Posts: 121

Re: notifications sound

I actually thought that the system notifications had an audible signal.
Also the program "streamlink-twitch-gui", sends notifications, which can no longer be heard.

Edit:
Also, I have set 5 sec for notifications, but the display takes much longer.

Last edited by barnd3 (2023-03-30 16:31:21)

Offline

#6 2023-03-30 16:59:47

toz
Member
Registered: 2011-10-28
Posts: 497

Re: notifications sound

If you run the following command:

dbus-monitor --session interface=org.freedesktop.Notifications

...you can monitor the traffic going to the notification service.

Using my notify send command above, you get:

method call time=1680195217.257794 sender=:1.165 -> destination=:1.39 serial=6 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=GetServerInformation
method call time=1680195217.258256 sender=:1.165 -> destination=:1.39 serial=7 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=GetServerInformation
method call time=1680195217.258694 sender=:1.165 -> destination=:1.39 serial=8 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
   string "notify-send"
   uint32 0
   string "xfce4-logo"
   string "test"
   string "test"
   array [
   ]
   array [
      dict entry(
         string "sound-name"
         variant             string "bell"
      )
      dict entry(
         string "urgency"
         variant             byte 1
      )
      dict entry(
         string "sender-pid"
         variant             int64 16018
      )
   ]
   int32 -1

Note the presence of the "sound-name" hint.

With streamlink-twitch-gui and the test notification, I get:

method call time=1680195067.946808 sender=:1.148 -> destination=org.freedesktop.Notifications serial=19 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
   string "Streamlink Twitch GUI"
   uint32 0
   string "file:///tmp/.io.nwjs.6rosTw"
   string "Streamlink Twitch GUI"
   string "This is a test notification"
   array [
      string "default"
      string "Activate"
   ]
   array [
      dict entry(
         string "urgency"
         variant             uint32 1
      )
      dict entry(
         string "desktop-entry"
         variant             string "chromium-browser"
      )
      dict entry(
         string "image_path"
         variant             string "/tmp/.io.nwjs.hMq4lU"
      )
      dict entry(
         string "image-path"
         variant             string "/tmp/.io.nwjs.hMq4lU"
      )
   ]
   int32 25000

Note that the sound hint is not sent.

I'm not a user of streamtwitch-link-gui, but there are some other Notification settings available to look at. Perhaps you can try them to see if any send a sound hint that xfce4-notifyd can process.

Also, I have set 5 sec for notifications, but the display takes much longer.

The last value in the output above is the duration time in milliseconds that the application sets for the notification.

Offline

#7 2023-03-30 17:11:53

barnd3
Member
Registered: 2023-02-07
Posts: 121

Re: notifications sound

with the test message from "streamlink-twich-gui" i receive

string "Streamlink Twitch GUI"
   uint32 0
   string "file:///tmp/.io.nwjs.HoPX67"
   string "Streamlink Twitch GUI"
   string "Dies ist eine Test-Benachrichtigung"
   array [
      string "default"
      string "Activate"
   ]
   array [
      dict entry(
         string "urgency"
         variant             uint32 1
      )
      dict entry(
         string "desktop-entry"
         variant             string "nw"
      )
      dict entry(
         string "image_path"
         variant             string "/tmp/.io.nwjs.Xus1QF"
      )
      dict entry(
         string "image-path"
         variant             string "/tmp/.io.nwjs.Xus1QF"
      )
   ]
   int32 25000
signal time=1680196054.109108 sender=:1.44 -> destination=(null destination) serial=96 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=NotificationClosed
   uint32 10
   uint32 1

Edit:
i thought that, a sound notification when i activate the event sounds, regardless of the station.

Last edited by barnd3 (2023-03-30 17:22:18)

Offline

#8 2023-03-30 18:20:12

toz
Member
Registered: 2011-10-28
Posts: 497

Re: notifications sound

barnd3 wrote:

i thought that, a sound notification when i activate the event sounds, regardless of the station.

Not that I'm aware of with xfce4-notifyd - it only started supporting sound events as of version 0.7.0 - released early this year. Assuming GTK still supports them, libcanberra also only supports a smaller subset of sound events:

/*
   We generate these sounds:

   dialog-error
   dialog-warning
   dialog-information
   dialog-question
   window-new
   window-close
   window-minimized
   window-unminimized
   window-maximized
   window-unmaximized
   notebook-tab-changed
   dialog-ok
   dialog-cancel
   item-selected
   link-pressed
   link-released
   button-pressed
   button-released
   menu-click
   button-toggle-on
   button-toggle-off
   menu-popup
   menu-popdown
   menu-replace
   tooltip-popup
   tooltip-popdown
   drag-start
   drag-accept
   drag-fail
   expander-toggle-on
   expander-toggle-off

   TODO:
   scroll-xxx
   window-switch
   window-resize-xxx
   window-move-xxx

*/

Also, the default freedesktop sound theme isn't optimized to make use of this set of events. The Smooth sound theme provides much better coverage.

Offline

Board footer

Powered by FluxBB