Have you tried that patch? It returns "TRUE" in the case where the key is set to nothing which makes the sound play... -- Login sound cannot be turned off https://launchpad.net/bugs/3517