Disabling sound in GDM

I often have to turn on my laptop in a situation when I need it to be quiet. It’s easy to disable the login sound in GNOME, but in the new Ubuntu release it became quite hard to disable the GDM startup sound. Previously it was possible to simply use gdmsetup to change the sound, themes, etc. However, in recent versions of GDM (like the one included in Ubuntu 9.10), the window was reduced to a question whether it should log me in automatically or ask for the password. The old configuration file gdm.conf is also gone, replaced with GConf-based configuration. The GDM documentation says, as an example, that sound can be disabled by changing the /apps/gdm/simple-greeter/settings-manager-plugins/sound/active GConf key, so I tried to set it to false, but that didn’t help. I’ve managed to fix it eventually, thanks to a Ubuntu bug, where somebody mentions the /desktop/gnome/sound/event_sounds key.

sudo -u gdm gconftool-2 --set /desktop/gnome/sound/event_sounds --type bool false

I’m still not sure why does it work and why does this key affect GDM, but as long as it’s quiet…


Comments

2 responses to “Disabling sound in GDM”

Leave your response
  1. anon says:

    It works because you are running gconftool-2 as the
    gdm user (-u gdm), which means it’s that user’s gconf
    settings thare are altered. And the gdm login screen
    is run as that user…

  2. Yes, I understand that part. I’m not sure why gdm uses the /desktop/gnome/sound/event_sounds key (which is used for a different purpose by the GNOME desktop) or how should the user know about this.