Several system beeps on shutdown

Bug #363532 reported by ais523
138
This bug affects 21 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Fix Committed
Undecided
Martin Pitt
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

In Ubuntu Jaunty final beta (I haven't tried with the release candidate yet, and this mostly didn't happen in Intrepid; see below), there are several system beeps when I shut down the system. The number seems random, generally at least 4 and sometimes as many as about 10 (it's hard to count, they often come rapidly); this is particularly annoying due to other bugs such as bug 335189 and bug 301174, but seems to be a separate issue; the problem isn't what the beeps sound like, but because they're happening at all. I'd expect a shutdown to cause no system beeps (and possibly a customizable shutdown sound).

The problem seems to be that shutdown(1), or something that looks very similar based on its effect on a text terminal, is being run multiple times at shutdown for no apparent reason; shutdown(1) emits a single beep when run to cause a shutdown (as a method of alerting people on text-based terminals), and so running it multiple times causes multiple beeps. I'm not sure why it's run multiple times, though (once would be enough to halt the system), or why going via such a noisy program is needed at all.

In Ubuntu Intrepid, this problem only ever came up at shutdown when I had previously been logged in on one of the text terminals (such as via Ctrl-Alt-F1), in addition to the graphical terminal; arguably it's expected behaviour in that circumstance (although the beep sometimes started at the shutdown and didn't stop until the system had finished shutting down, which definitely isn't). However, in Jaunty it also seems to happen if I've done nothing except via the graphical login since the computer was rebooted.

I'm not sure which package the bug's in; gdm seems possible, but it might also quite possibly be somewhere else. (It may be worth comparing a Kubuntu install to see what happens there.)

If there's any more information that would help, please let me know; unfortunately, I'm a little vague on what's causing this, so the bug report is a little vague on the details.

Revision history for this message
Creak (romain-failliot) wrote :

I've got the same bug. But for me there was always one beep at shutdown on Intrepid. I thought it was normal because of the shutdown command, wasn't it?
Now, on Jaunty, it's like 4 beeps in a row... It seems a bit random, but always in this range.

I agree with you for the whole system beep at shutdown. It'd be better to not have any when we're in graphical mode (and why not a nice shutdown sound if some wants it). And if the shutdown is asked from command-line, then maybe a beep if necessary (if it was just for me, I'd disable this one too... It's such an annoying sound!).

FYI, I installed Intrepid from scratch and, later, updated to Jaunty.

Revision history for this message
macstevejb (macstevejb) wrote :

I can confirm this behaviour on Jaunty RC with varying numbers of beeps at reboot or shutdown.

The beeps are coming from my pc speaker NOT through my soundcard.

Used to get just the single beep in Intrepid but these multiple beeps are so annoying in Jaunty.

Arrived at current RC release via updating Intrepid (not a clean install)

Revision history for this message
LGB [Gábor Lénárt] (lgb) wrote :

I can confirm this too. It's quite annoying to hear unwanted beeps from the PC speaker especially when the family would like to sleep and I have to turn off the PC :) It was "just" a single beep just before upstart progress bar appeared, but since a week or so, it's not three beeps, two of them are quite closely in team, and one after a moment. I don't think it's a good idea to bother users with strange system beep sequences at shutdown, they should be avoided, the graphical representation (upstart) is far enough to know the system is about shutting down, and voice feedback can be very annoying (I think PCs should never use the system beeper anyway, maybe just in fatal cases, like BIOS detected POST problems and so on).

Revision history for this message
ais523 (ais523) wrote :

I've now done some testing in various window managers; the problem appears to be related to something related to Gnome, or at least that is included in Ubuntu but not Kubuntu. There are no beeps when shutting down a Kubuntu system directly from a logged-in KDE session; nor when shutting down any system by logging out and then shutting down from the login screen. The beeps only happen when shutting down or rebooting directly from a logged-in Gnome session.

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
exzemat (exzemat) wrote :

I confirm too : single (but long) "beep" before usplash + one message "power down" after usplash.
no probleme if reboot
Jaunty/gnome

Revision history for this message
Nick S (pinkcoons) wrote :

Can confirm this. Investigation into what's calling shutdown shows that ck-system-stop is called several times by init. ck-system-stop is a script which essentially calls /sbin/shutdown (/usr/lib/ConsoleKit/scripts/ck-system-stop). I can't work out why init is calling it many times.

Revision history for this message
Steve (stupendoussteve-deactivatedaccount) wrote :

Is it actually init calling it, or gnome-session? The fast-user-switch applet uses gnome-session to shutdown, and it appears gnome-session uses consolekit to do so. I am tempted to mark gnome-session as the affected package, but will wait for other commentary.

Revision history for this message
Alexis de Lattre (alexis-via) wrote :

I confirm the issue on jaunty final : one strong beep when starting the switch off process. It's very annoying when I switch off my laptop whereas the rest of the family is sleeping !

Revision history for this message
Steve (stupendoussteve-deactivatedaccount) wrote :

Just for fun I shut down the machine from within GDM, never logging in (I did some work over ssh instead). There were no beeps whatsoever.

Can anyone else confirm? If so, I think it's the fast-user-switch, and/or the processes it uses to shut down.

Revision history for this message
ais523 (ais523) wrote :

I can confirm that the beeps only happen when shutting directly from within a GNOME session; shutting down from KDE, or by logging out from the GNOME session and then shutting down from GDM, don't cause any beeps (not even one).

Revision history for this message
Thomas.VS (tvs) wrote :

I can also confirm this. No beeping when I log off before shutting down.
So much nicer without the horrendous beeps that I think I'll keep logging off before shutting down until this problem is resolved.

Revision history for this message
Mike M (hairy-palms-19) wrote :

can confirm here too, dont think its the FUSA though, it happens even with that purged from the system so id reckon its gnome-session

Revision history for this message
Krys_74 (listescp) wrote :

I can confirm it too on a fresh new install of Jaunty on a new hard disk, no update from another version.

Another thing I've noticed is when I get the beeps, the numlock led on the usb keyboard won't switch off even after the shutdown is complete (computer off, only the led on the motherboard still on), while it switches off correctly when I get no beep (by logging off from my gnome session before shuting down).
I don't know if it's related (maybe something that doesn't go well during the shutdown), sorry if it's not and if it's obvious (that's my first contribution on launchpad).

Revision history for this message
linhurst (linhurst) wrote :

I have three different PCs, two with Jaunty and one with Mint Gloria. The first shuts down with no beeps, the second (a Compaq DeskPro) has a single beep and the third (a Dell Optiplex) several beeps. I do not recall the beeps when I was using Hardy. No beeping when I log off first before shutting down so this is what I do (when I remember).

Revision history for this message
linhurst (linhurst) wrote :

Just a correction/extension to the above in case it is relevant:

I have three different PCs, two with Jaunty and one with Mint Gloria (based on Jaunty). The first Jaunty shuts down with no beeps, the second Jaunty (a Compaq DeskPro) and the third Mint Gloria (a Dell Optiplex) both have several beeps and are significantly older models - just ask for more details if helpful. There are different numbers of beeps each time in rapid succession hence the confusion in my previous post (usually between 3 & 5 ish). No beeping on either when I log off first before shutting down.

I do not recall the multiple beeps when I was using Hardy or Intrepid on the same PCs. They do not occur with Live CDs of Intrepid, Hardy or Feisty or AntiX-M8 (all used on the Compaq DeskPro yesterday to explore question #74686).

Revision history for this message
David Siegel (djsiegel-deactivatedaccount) wrote :

Please take a look at bug #290204, which is already confirmed and scheduled to be fixed as part of hundredpapercuts.

Changed in hundredpapercuts:
status: New → Confirmed
Revision history for this message
Bernhard (b.a.koenig) wrote :

This is really a papercut: my suggestion

1) blacklist pcspkr by Ubuntu default
2) add the line "/usr/bin/canberra-gtk-play --file=/usr/share/sounds/ubuntu/stereo/desktop-logout.ogg" to the file /etc/gdm/PostSession/Default (see bug 391117).

Changed in hundredpapercuts:
assignee: nobody → Martin Pitt (pitti)
milestone: none → round-5
status: Confirmed → Fix Committed
Michael Rooney (mrooney)
Changed in ubuntu:
status: Confirmed → Invalid
Revision history for this message
David Tombs (dgtombs) wrote :

Is this really a duplicate of 290204? This bug seems to focus on the _multiple_ beeps, and not just that it beeps at all. It seems these beeps might be an indication of a deeper problem, and I'd hate for the information here to get lost just because we blacklist pcspkr.

Revision history for this message
Julio A. Garcia Lopez (juliosao) wrote :

I have multiple beeps too even in kubuntu withouth gnome installed so i think that is not a duplicate of 290204. I have a desktop computer and a laptop and both beep several times all process are killed.

Revision history for this message
Sciamano (sciamano72) wrote :

I'm having multiple beeps when shutting down or restarting my installation of Kubuntu Karmic.
This is even more strange because it does not happen every time, just every now and then.

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.