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.
- In the Terminal, Edit > Preferences > Advanced > Audbile bell should be checked/enabled
-
sudo -i
cd /etc/pulse
- Backup:
cp -a default.pa default.pa.20220918
- 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
- Get out of sudo: ctrl-d or exit
- Restart pulseaudio:
pulseaudio -k
- I had to also check the audio mixer for default (fallback) Output Device.
- Type:
echo $'\a'
ortput bel
A couple of side notes:
- 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
-
The bash man page documents $‘\a’.
-
X11 Bell Events documented at archlinux.
2 Likes
Thank you so much that helps an I can hear it now
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.