Login sound cannot be turned off

Bug #3517 reported by Jonas Christian
68
Affects Status Importance Assigned to Milestone
gnome-session
Fix Released
Medium
gnome-session (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs
libgnome (Ubuntu)
Invalid
Medium
Ubuntu Desktop Bugs

Bug Description

The login sound cannot be turned off by the "Audio" control panel. It only stops when editing the system wide defaults in /etc/sound.

I need to use my laptop in the library and people will kill me, if it emits any kind of sound. In order to turn off all sounds, I used the "audio" control panel of Gnome. Still, even after removing all sound events, the "login" sound kept playing on startup. Only for this value it seems that Gnome uses the default from /etc/sound/events/gnome-2.soundlist, if it's not set in ~/.gnome2/sound/events/gnome-2.soundlist.

Once I removed the value for "file=" in /etc/sound/events/gnome-2.soundlist I could login in silence. I could reproduce this bug on my desktop machine.

I'm not a Linux newbie by any standard and use the German version of Ubuntu 5.10, installed from an CD image. I'm quite happy with it and seeing how Ubuntu improved from the 5.04 version, I'm very excited to see the next one.

description: updated
summary: + The login sound cannot be turned off by the "Audio" control panel. It
+ only stops when editing the system wide defaults in /etc/sound.
Changed in gnome-desktop:
assignee: nobody → motu
assignee: motu → gnome
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. It has already been opened: https://bugzilla.ubuntu.com/show_bug.cgi?id=9840

Changed in gnome-session:
assignee: nobody → gnome
Revision history for this message
Danilo Piazzalunga (danilopiazza) wrote :

This bug has been fixed years ago in the Red Hat distribution, using this patch:

https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=72564

Upstream wonders if it is too semplicistic, but this patch should disable the fallback to the default login sound.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for pointing the patch. Upstream has a point with his comment though

Changed in gnome-session:
assignee: gnome → desktop-bugs
Changed in libgnome:
assignee: gnome → desktop-bugs
Revision history for this message
Scott Robinson (scott-ubuntu) wrote :

This occurs in dapper.

Changed in gnome-session:
status: Unconfirmed → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Setting the milestone to dapper, not sure if we want to change it but we will consider both options before dapper

Revision history for this message
Scott Robinson (scott-ubuntu) wrote :

Please strongly consider changing it. I too am annoyingly bitten by this bug.

Revision history for this message
Scott Robinson (scott-ubuntu) wrote :

The bug isn't in libgnome.

Changed in libgnome:
status: Unconfirmed → Rejected
Changed in gnome-session:
status: Unconfirmed → Confirmed
Revision history for this message
Scott Robinson (scott-ubuntu) wrote : Improved startup sound patch.

The following test cases have been accounted for in this patch:

 Default login sound.
 No sound.
 Different sound.
 Different sound, not found absolute filename.
 Different sound, not found relative filename.

In the file not found conditions, the default login sound is played. In the other conditions, the expected behavior occurs.

Revision history for this message
asdf (asdf123123-deactivatedaccount-deactivatedaccount) wrote :

https://lists.ubuntu.com/archives/ubuntu-devel/2006-April/017360.html

unfortunately i have to confirm that this problem is still existing in dapper beta.

Revision history for this message
Sebastien Bacher (seb128) wrote :

This upload fixes the issue:

 gnome-session (2.14.1-0ubuntu4) dapper; urgency=low
 .
   * debian/patches/11_session_dialog.patch:
     - use "Sus_pend" label instead of "Sl_eep" (Ubuntu: #34152)
   * debian/patches/14_fix_session_delete_edit.patch:
     - upstream patch, allow to delete or edit a session (Ubuntu: #36738)
   * debian/patches/15_no_login_sound_possible.patch:
     - patch by Scott Robinson <email address hidden>
     - allow to use not login sound (Ubuntu: #3517)

Changed in gnome-session:
status: Confirmed → Fix Released
Revision history for this message
Scott Robinson (scott-ubuntu) wrote :

Yay! Thanks!

Revision history for this message
Sebastien Bacher (seb128) wrote :

the patch is broken as pointed by bug #43424, the default config has not startup sound with the patch but it should. If anybody wants to debug that he's welcome other way I'm going to drop the change with the next upload

Revision history for this message
Scott Robinson (scott-ubuntu) wrote : Round two of the nosound patch.

Ok, give this a whirl. The issue was a result of my mis-understanding the case of a lacking gnome-2.soundlist.

Fortunately, this makes for a simpler patch. The no-sound case can only occur if it's actually specified.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Have you tried that patch? It returns "TRUE" in the case where the key is set to nothing which makes the sound play...

Revision history for this message
Sebastien Bacher (seb128) wrote :

the patch from redhat doesn't work neither, it seems to be good only if the default system is for "no login sound"

Revision history for this message
Sebastien Bacher (seb128) wrote : patched used by the new package

I've used that patch with the new package, it works fine on my box. An other way would be to modify load_login_sample_from() to return an int and make a case for "key with no value" then

Revision history for this message
Scott Robinson (scott-ubuntu) wrote :

Are you sure about that sequence? Returning TRUE with no load should cause nothing to play. At least, that is what happens here.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Have you changed your /etc/sound/events/gnome-2.soundlist?

returning TRUE will lead to have gnome_triggers_vdo called for "gnome-2 login" which plays the sound defined by /etc/sound/events/gnome-2.soundlist on my box. I've done a small example calling gnome_triggers_vdo and the sound is played too.

Changed in gnome-session:
status: Confirmed → In Progress
Changed in gnome-session:
status: In Progress → Fix Released
Changed in gnome-session:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.