Note that I was addicted to beeping with printf ("\ a \ n");
on Linux.
--OS: Linux Mint 18.1 (Maybe it's the same for Ubuntu) --USB connection of speakers on desktop PC
--I want to beep with printf ("\ a \ n")
in C or ʻecho -e" \ a "` in the shell
--Uncomment the following line in /etc/pulse/default.pa. (The lines are a little apart, so search by bell)
load-sample-lazy x11-bell /usr/share/sounds/freedesktop/stereo/bell.oga
load-module module-x11-bell sample=x11-bell
--Restart once or run pulseaudio --kill; pulseaudio --start
It rang. If you change the file path at bell.oga above, you can make your favorite sound a beep. There are various beep samples under / usr / share / sounds /.
When I search, I often get the explanation to do the following, but it was unnecessary in my environment.
--Comment out blacklist pcspkr in /etc/modprobe.d/blacklist.conf (Run sudo modprobe pcspkr if it's temporary)
end
Recommended Posts