Skip to content

Instantly share code, notes, and snippets.

@Nyubis
Last active March 28, 2017 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nyubis/fe6008a43b8448f5a7641bc936d8e5a9 to your computer and use it in GitHub Desktop.
Save Nyubis/fe6008a43b8448f5a7641bc936d8e5a9 to your computer and use it in GitHub Desktop.
Fixing the jarring terminal bell

Fixing the jarring terminal bell

Assuming Cinnamon on Debian Sid, the terminal bell by default is a coarse, jarring sound that startles you whenever it goes off. This sound can be tested with echo -ne 'x07'. By default, Cinnamon's terminal bell is disabled, and it's the system bell you hear. Turning on Cinnamon's bell can be done as such:

  1. Open dconf-editor
  2. Navigate to org.cinnamon.desktop.wm.preferences
  3. Make sure that audible-bell is enabled
  4. Make sure that bell-sound is set to something that sounds pleasant (check /usr/share/sounds/freedesktop/stereo/bell.oga)

At this point, the pleasant sound plays at the same time as the jarring one, the latter completely drowning out the former. Try sudo modprobe -r pcspkr to disable the jarring system sound. If that fixed it, you can make this change permanent by adding a file /etc/modprobe.d/nobeep.conf, containing the following:

# Do not load the 'pcspkr' module on boot.
blacklist pcspkr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment