Beep without sound

Hi. In the beginning I would like to say that I’m new to all of this.
Lately I was reading about bash and I realize that system alarm that should work with “-e \\a” it’s working only in theory because it’s not giving me any sound.
I’ve checked in pulseaudio system sound is set on 100%. I’ve tried also with the beep but it’s the same without a sound. Any ideas how I can fix it?

Interesting…

I was able to successfully get a beep by doing the following on XFCE.

  1. In the Terminal, Edit > Preferences > Advanced > Audbile bell should be checked/enabled
  2. sudo -i
  3. cd /etc/pulse
  4. Backup: cp -a default.pa default.pa.20220918
  5. Add to pulseaudio config: nano default.pa
     # audible bell
     load-sample-lazy x11-bell /usr/share/sounds/freedesktop/stereo/bell.oga
     load-module module-x11-bell sample=x11-bell

source

  1. Get out of sudo: ctrl-d or exit
  2. Restart pulseaudio: pulseaudio -k
  3. I had to also check the audio mixer for default (fallback) Output Device.
  4. Type: echo $'\a' or tput bel

A couple of side notes:

  1. To find out which package supplies the file bell.oga above:
    pacman -Fx /usr/share/sounds/freedesktop/stereo/bell.og

   # confirm package is installed
   pacman -Q sound-theme-freedesktop

   # list all files supplied by package (in case you want a different sound)
   pacman -Ql sound-theme-freedesktop
  1. The bash man page documents $‘\a’.

  2. X11 Bell Events documented at archlinux.

2 Likes

Thank you so much that helps an I can hear it now :heart_eyes:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.