Results 1 to 8 of 8

Thread: can't silence gtk audible alerts in kde4

  1. #1
    Join Date
    Jan 2005
    Location
    Brussels
    Beans
    103
    Distro
    Kubuntu 10.04 Lucid Lynx

    can't silence gtk audible alerts in kde4

    In KDE4, whenever I use a a GTK application, such as audacious, firefox etc, it produces audible notifications when I do things like open a file dialogue. This happens irrespective of the settings chosen in Gnome (via gnome-panel).

    I have another problem which may have some bearing on this. Regardless of the settings in KDE for displaying GTK widgets, GTK applications, with the exception of Thunderbird and Firefox, all appear in that really ugly blocky default appearance during each session until I open whichever Gnome tool it is for changing these settings. Firefox and Thunderbird look OK apart from messed up scroll bars, despite my having checked the box in KDE to fix this. However no fiddling with the settings gets rid of those awful audible notifications.

    Does anyone know how I can kill those alerts?

    Many thanks in advance.

  2. #2
    Join Date
    Jun 2006
    Beans
    596
    Distro
    Kubuntu

    Re: can't silence gtk audible alerts in kde4

    is this a native kubuntu install, or have you installed kde over ubuntu?

    if the noise you are hearing is coming from your internal pc speaker, then you can disable it completely by unloading the pcspkr driver.
    Code:
    sudo modprobe -r pcspkr
    you can also edit your /etc/modprobe.d/blacklist.conf to make this change permanent (ie. don't even load the driver module when booting). just add this line:
    Code:
    blacklist pcspkr

  3. #3
    Join Date
    Jan 2005
    Location
    Brussels
    Beans
    103
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: can't silence gtk audible alerts in kde4

    Thanks very much for replying, I really appreciate it.

    Quote Originally Posted by krazyd View Post
    is this a native kubuntu install, or have you installed kde over ubuntu?
    It's KDE over Vanilla Ubuntu.


    Quote Originally Posted by krazyd View Post
    if the noise you are hearing is coming from your internal pc speaker, then you can disable it completely by unloading the pcspkr driver.
    The sounds are the standard Gnome alert samples (the conga roll etc) coming through the primary sound device (laptop speakers/headphone jack). I have PulseAudio running, so I assume they are routed through that.

  4. #4
    Join Date
    Sep 2009
    Beans
    4

    Re: can't silence gtk audible alerts in kde4

    I started the session with Gnome and turned off all notifications with the preferences there and it fixed the Firefox notifications.

    Ecllipse however is still doing annoying notifications, can't figure out what's different about that. Maybe that it runs on Java.

  5. #5
    Join Date
    Sep 2009
    Beans
    4

    Re: can't silence gtk audible alerts in kde4

    Quote Originally Posted by Francis Upton View Post
    I started the session with Gnome and turned off all notifications with the preferences there and it fixed the Firefox notifications.

    Ecllipse however is still doing annoying notifications, can't figure out what's different about that. Maybe that it runs on Java.
    Um, actually not, the firefox sounds are still there, so this did not really have any effect.

    I'm Ubuntu + KDE, not kubuntu. Does this make a difference? And should I just switch in hopes that life for me will improve?

  6. #6
    Join Date
    Jun 2006
    Beans
    596
    Distro
    Kubuntu

    Re: can't silence gtk audible alerts in kde4

    try a kubuntu live cd and see if you have the issue..

  7. #7
    Join Date
    Feb 2009
    Location
    Netherlands
    Beans
    784

    Re: can't silence gtk audible alerts in kde4

    For both the sound and ugly theme you can run 'gnome-settings-daemon' to use gnome settings (it will use your gnome theme and sound preferences). If you don't want to run an extra process:

    1. for the sound issue try this: in /etc/X11/Xsession.d/ there should be something like 52-libcanberra-gtk-module_add-to-gtk-modules. (Re)move that.
    2. for the themes: either install and use lxappearance if you want easy or create a file named .gtkrc-2.0 yourself (with the dot to make it hidden) in your home folder with your favourite text-editor and make it look like this:

    Code:
    gtk-theme-name="Whatevertheme"
    gtk-icon-theme-name="Whatevericons"
    gtk-font-name="Sans 10"
    gtk-toolbar-style=2
    include "$HOME/.gtkrc-2.0.mine"
    Use the exact theme names. The 'include' part is for if you want to make specific changes in your theme; it's like changing the gtkrc inside the theme folder. Not necessary.

    Edit: I found that for the sound issue you can add the line
    gtk-enable-event-sounds= 0
    to ~/.gtkrc-2.0 (and maybe also the line gtk-error-bell=0 ).
    Last edited by VCoolio; October 16th, 2009 at 12:32 PM.

  8. #8
    Join Date
    Oct 2005
    Beans
    29

    Re: can't silence gtk audible alerts in kde4


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •