How to disable beep tone in xfce when the delete button is pressed?

39,342

Solution 1

To disable the bell for all X applications:

xset b off 

Solution 2

Go to SETTINGS → SESSION → STARTUP, button ADD, type: name "beep" and in last field type "xset b off".

Solution 3

This Arch Wiki page lists all the options to disable PC speaker (beep) very nicely: https://wiki.archlinux.org/index.php/PC_speaker

For instance, as mentioned by @SauceMcBoss, you can set:

xset -b

(or xset b off) to disable it in Xorg (which will solve your problem). To make the change permanent, add this line to either your .xinitrc or xprofile file.

Or, to disable the PC speaker globally within one session, the pcspkr kernel module can be unloaded with:

rmmod pcspkr

To prevent its loading by udev at boot, you can blacklist it in a .conf file in /etc/modprobe.d/. For instance:

echo "blacklist pcspkr" > /etc/modprobe.d/blacklist.conf

Solution 4

I've tried every single thing in this article, and more, and none of them worked. Sure some disabled the system beep for the terminal application, but all of the OS-related beeps were still on. What finally worked? Finding and renaming the dang sound file (and logging out and back in of my X session). /usr/share/sounds/ubuntu/stereo/bell.ogg I renamed the above to "bell2.ogg".

Now I can use my computer without wanting to flip my desk over.

Who the hell thought a super loud beep every time you pressed a key was a good idea? It's like some sort of weird psychological torture.

Note, this will probably revert itself if the ubuntu-sounds package requires an upgrade, and you'll need to re-move the file off.

Share:
39,342

Related videos on Youtube

DScript
Author by

DScript

Updated on September 18, 2022

Comments

  • DScript
    DScript almost 2 years

    I newly installed xfce on Arch Linux. xfce makes a beep noise every time I press the delete button or backspace, which is really annoying. How can I disable this?

    I tried un-commenting set bell-style none, but that didn't work.

    • David Braverman
      David Braverman almost 9 years
      Did you reload ~/.inputrc after uncommenting set bell-style none (reload command: bind -f ~/.inputrc)? If yes, then try one of the mentioned methods. E.g. by unloading pcspkr module: rmmod pcspkr or by xset b off.
  • Sauce McBoss
    Sauce McBoss almost 9 years
  • math
    math about 6 years
    This works fine. Although after rebooting I have to redo it. Is there a way to permanently disable it?
  • prosoitos
    prosoitos over 5 years
    @math You can add it to your .xinitrc file
  • Alcamtar
    Alcamtar about 4 years
    In Settings -> Session and Startup there is no "Startup" section. There is a Settings -> Session and Startup -> Application Autostart -> Add button... is that what you are referring to?
  • Balázs Börcsök
    Balázs Börcsök over 2 years
    If you are using a preinstalled XFCE instance you can add it in Session and Startup as well.