The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    How do I turn off the system beep ??

    Discussion in 'Linux Compatibility and Software' started by wearetheborg, Jul 1, 2008.

  1. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
    Its driving me nuts.

    Code:
     # rmmod pcspkr
    ERROR: Module pcspkr does not exist in /proc/modules
    

    And I have it blacklisted in modprob.d

    ???
     
  2. Gintoki

    Gintoki Notebook Prophet

    Reputations:
    2,886
    Messages:
    6,566
    Likes Received:
    0
    Trophy Points:
    205
    System>Preferences>Sound>System Beep tab>Un-tick "Enable System Beep"
     
  3. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
    It was unchecked :(
     
  4. Gintoki

    Gintoki Notebook Prophet

    Reputations:
    2,886
    Messages:
    6,566
    Likes Received:
    0
    Trophy Points:
    205
    Then it's not system beep you're hearing. Although, some applications might still beep even though you have it disabled. Maybe.....
     
  5. jeffsmythe

    jeffsmythe Notebook Geek

    Reputations:
    97
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    15
    how about xset -b ?
     
  6. lemur

    lemur Emperor of Lemurs

    Reputations:
    524
    Messages:
    1,024
    Likes Received:
    0
    Trophy Points:
    55
    Yeah, that can get complicated. On my NAS removing pcspkr solved the problem but I'm running Ubuntu server there, no desktop environment.

    When you have a desktop environment, it can decide to handle the beeps that would normally be handled by pcspkr. So the beep now goes through the desktop environment software and out through ALSA or something.

    Any clue as to what software emits the beep?
     
  7. jasperjones

    jasperjones Notebook Evangelist

    Reputations:
    293
    Messages:
    427
    Likes Received:
    4
    Trophy Points:
    31
    OP, IIRC, you're running SUSE. What did the trick for me was to change the file /etc/inputrc (as root): edit the line saying "set bell-style audible" to "set bell-style none"

    EDIT: I think in addition to that, I also set "setterm -blength 0" in one of the startup files to disable the pc speaker in the terminal.
     
  8. lemur

    lemur Emperor of Lemurs

    Reputations:
    524
    Messages:
    1,024
    Likes Received:
    0
    Trophy Points:
    55
    That takes care of application which use libreadline to parse commands. The most prominent example of this is bash.

    As you say that takes care of the terminal but if an X application decides to ring a bell, you need to tweak other settings.

    Now that I think of it, Open Office is a good example of software that does sometimes ring the bell but is not affected by either /etc/inputrc nor setterm. I use KDE so what I did was go into KDE's settings to set the bell to be visual rather than audible. So when Open Office rings the bell, its window is momentarily displayed in inverted colors. That's something which was developed for deaf users I think but I like to keep my computer silent in class and I still want to be warned if there is a problem so I prefer the visual bell to no bell.
     
  9. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
    Both of the above did not work (Though I did not reboot the system)
    Typing
    Code:
    xset -b b 0 
    worked

    The beeps were coming from
    1.Gnome terminal (shell) - I was able to disable this in the program
    2.xemacs - I was able to disable this by adding
    Code:
     (setq visible-bell t) 
    to init.el
    3.xpdf - this I had not been able to turn off before xset.
    speakers working fine.