disable PulseAudio and sound in GDM (GNOME login) on Fedora 12
This builds upon my previous post about disabling PulseAudio in your login in Fedora 12, it is recommended that you read that article first to understand in depth what’s going on in a general sense. GDM in Fedora 12 is built to run PulseAudio (hereafter “PA”) which causes popping on my system, and more importantly makes noise in certain situations that I don’t want; for instance if you backspace over a typed password to the beginning it dongs at you. You cannot uninstall PA, you have to just disable it.
FIRST, using a little knowledge from a previous post about Ubuntu 9.10 Karmic having the same annoyance (sound in GDM) we’ll perform some similar steps. Install gconf-editor if you have not already, and run it as root:
$ su -
# yum install gconf-editor
# gconf-editor &
Inside the tool, navigate to the same key as the Ubuntu post:
…untick the active key in order to disable the sound and exit the editor; this places a config file in the /root/ directory which I’m not entirely sure is needed, but can’t hurt. Now run the below command to place the exact same entry into your systemwide /etc/ configs:
# gconftool-2 –direct –config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory –type Boolean –set /apps/gdm/simple-greeter/settings-manager-plugins/sound/active False
That’s one big long line in case it’s cut off in the blog; it basically just writes the same setting to a file, nothing more. For the curious that is exactly /etc/gconf/gconf.xml.mandatory/apps/gdm/simple-greeter/settings-manager-plugins/sound/%gconf.xml – feel free to poke around.
NEXT, we disable PA from autospawning in the exact same way we did for the user login, GDM runs as a user ‘gdm’ group ‘gdm’ and has a home directory of /var/lib/gdm/ on your system. You’ll need to become root to add the file, then change owership to gdm:gdm when done:
$ su -
# vi /var/lib/gdm/.pulse/client.conf
autospawn = no
daemon-binary = /bin/true
# chown gdm:gdm /var/lib/gdm/.pulse/client.conf
…and presto, all sound is gone and PA never fires up for GDM; it seems on my system to also be faster now to load GDM during a log out/log in and initial startup session but I don’t have concrete evidence of that… yet. Once again, you may need to fully reboot depending on your particular machine’s setup.