[Bug 698148] New: Halt noise on shutdown ignores system settings
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c0 Summary: Halt noise on shutdown ignores system settings Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: damienradtke@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 When I shut my computer down, the computer's internal speaker (the one that beeps when the computer is first powering up too, NOT the sound speakers) makes a loud noise, even when I attempt to disable it. In /etc/sysconfig/shutdown, I have HALT_SOUND set to "no", which doesn't appear to change anything. This occurs when I shut down or restart my computer, but not when I log off. Reproducible: Always Steps to Reproduce: 1. Boot in to openSUSE 11.4 2. Shutdown or restart the computer, e.g. running "sudo /sbin/shutdown now" in a terminal Actual Results: The computer's internal speaker emits a loud beep, regardless of the HALT_SOUND system setting. Expected Results: When the HALT_SOUND is set to "no", this beep should not occur. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |werner@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c1 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Dr. Werner Fink <werner@novell.com> 2011-06-15 09:06:34 UTC --- I'm not able to reproduce as HALT_SOUND="no" in /etc/sysconfig/shutdown does avoid any noise, compare with less +/HALT_SOUND /etc/init.d/halt and see that exactly nothing causing a noise will be send to the console at reboot nor halt. IMHO your system shows this behaviour ... you may check if the cooling of your CPU is working as you may hear the warning beep of your CPU heat protection guard from the CMOS its self. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c2 --- Comment #2 from Damien Radtke <damienradtke@gmail.com> 2011-06-22 01:45:00 UTC --- I've experienced this problem on two computers, first my laptop and now my desktop. I fixed it on my laptop by opening alsamixer in a terminal and muting "PC Beep", but that option doesn't exist on my desktop. Is there any good way to check CPU temperature, and what values may cause a warning beep? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c3 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #3 from Dr. Werner Fink <werner@novell.com> 2011-06-22 07:09:20 UTC --- If you're able to stop the noise with alsamixer the cause of the noise is not the CMOS overheat alarm but the (onboard) sound card. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c4 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO CC| |werner@novell.com InfoProvider| |damienradtke@gmail.com AssignedTo|werner@novell.com |tiwai@novell.com Severity|Normal |Minor --- Comment #4 from Dr. Werner Fink <werner@novell.com> 2011-06-22 07:17:41 UTC --- Takashi? IMHO something goes wrong here with the sound card setup at halt/reboot. Please could you have a look at this. @Damien: Please run as root the command hwinfo --sound | tee hwinfo.sound and attach the output hwinfo.sound to this bug report. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c5 --- Comment #5 from Takashi Iwai <tiwai@novell.com> 2011-06-22 07:28:05 UTC --- Well, the sound driver itself doesn't make beep tone at shutdown at all. It must be something else. For disabling the kernel beep, try to run "rmmod pcspkr". Some HD-audio drivers provide its own beep, but this could be switched off (to the another beep) via "Beep" mixer switch. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c6 --- Comment #6 from Damien Radtke <damienradtke@gmail.com> 2011-06-28 07:58:56 UTC --- Running "rmmod pcspkr" before shutting down works. I suppose a workaround would be to override 'shutdown' with a script that removes the module and then shuts down? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c7 --- Comment #7 from Damien Radtke <damienradtke@gmail.com> 2011-06-28 08:06:19 UTC --- Scratch that last idea, blacklisting pcspkr fixes it. This doesn't seem like a permanent solution, but at least shutting down isn't as annoying anymore. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c8 --- Comment #8 from Dr. Werner Fink <werner@novell.com> 2011-06-28 08:19:16 UTC --- By any chance ... could it be that your desktop (KDE/KDM or GDM/GNOME) plays a sound file at shutdown? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c9 --- Comment #9 from Takashi Iwai <tiwai@novell.com> 2011-06-28 08:29:37 UTC --- If unloading pcspkr works, it means that no PCM or codec-beep but actually a system beep via keyboard driver. But, I still wonder why HALT_SOUND=no didn't work. Could you double-check? If any, try to edit /etc/init.d/halt script not to issue any beep-related stuff (look for HALT_SOUND there). If you hear still beep at shutdown/halt, it must be from something else. We need to figure out who rings the bell actually. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c10 --- Comment #10 from Damien Radtke <damienradtke@gmail.com> 2011-06-29 01:15:14 UTC --- Here's my /etc/init.d/halt: http://pastebin.com/qraTrTbx There's a couple references to HALT_SOUND around line 218, but I'm not sure what to comment out, or what the values of variables like REDIRECT are. Just wanted to verify which part would be producing the noise before I accidentally break something. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c11 --- Comment #11 from Dr. Werner Fink <werner@novell.com> 2011-06-29 07:13:43 UTC --- Simply insert a line HALT_SOUND=no between line 216 and 217, that is the comment and the test on the variable REDIRECT, the new code looks like [...] # to really flush their buffers before power goes down. HALT_SOUND=no if test -n "$REDIRECT" ; then [...] as you can see from the shell code below the value `no' will not cause any bell on the console. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c12 --- Comment #12 from Damien Radtke <damienradtke@gmail.com> 2011-07-01 04:02:30 UTC --- Adding HALT_SOUND=no has no effect, so that's not what's causing the beep. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c13 --- Comment #13 from Takashi Iwai <tiwai@novell.com> 2011-07-01 06:09:11 UTC --- Do you see at which timing did it beep? You can put some delay (e.g. sleep 5) in the init scripts to see who is the culprit, for example. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c14 --- Comment #14 from Damien Radtke <damienradtke@gmail.com> 2011-07-21 03:47:33 UTC --- Sorry about the delayed response. I tried commenting out the entire block in /etc/init.d/halt that referenced $HALT_SOUND, and then tried adding 'sleep 5' after it. Both times, the halt sound was unaffected. I don't think the problem is in /etc/init.d/halt. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c15 --- Comment #15 from Takashi Iwai <tiwai@novell.com> 2011-07-21 06:32:56 UTC --- Then I guess it's /sbin/shutdown itself show issues the beep. I took a look at the code now, and it broadcasts the warning message beginning with \007. If it's the culprit, I see no option to disable it, so the workaround is to either disable forcibly by removing pcspkr driver or invoking "setterm -b0" to disable the beep. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c16 --- Comment #16 from Damien Radtke <damienradtke@gmail.com> 2011-07-21 06:40:22 UTC --- Does openSUSE use a different shutdown executable than other distros? I don't remember this being a problem for me until I switched to it. The workaround is pretty easy and it doesn't appear to be widespread, but I still want to see if I can't figure out what's going on. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c17 --- Comment #17 from Dr. Werner Fink <werner@novell.com> 2011-07-21 07:54:37 UTC --- (In reply to comment #16) No we do not. Beside this Debian as well Fedorea as well as openSuSE contribute to the upstream project sysvinit at http://savannah.nongnu.org/projects/sysvinit/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c18 --- Comment #18 from Damien Radtke <admin@damienradtke.org> 2011-08-29 19:57:31 UTC --- Another source informed me that the pc speaker shouldn't override an existing sound card, so I'm hoping to look more into this to figure out what's going on. Looking at the source for shutdown.c in sysvinit, I can't tell which part initiates the beep. My best guess is that it comes from wall() inside the warn method, but I'm not at home right now and can't test it. Any idea or source of information on how the speaker is invoked from sysvinit? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c19 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|admin@damienradtke.org | --- Comment #19 from Andreas Jaeger <aj@suse.com> 2011-08-30 07:25:01 UTC --- Information was provided. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c20 --- Comment #20 from Dr. Werner Fink <werner@suse.com> 2011-08-30 09:13:52 UTC --- A beep on a console is simply echo -e '\a' that is the ASCII value for beep also called bell. You may replace \a with \007 (compare with `man ascii'). Please note that I'll not gonna change wall at this point as this is used for messages send boradcast messages to all open tty's like for the command shutdown -h now 'My message' This is common usage and will be not changed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c21 Per Jessen <per@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |per@opensuse.org --- Comment #21 from Per Jessen <per@opensuse.org> 2011-08-30 11:59:54 UTC --- (In reply to comment #20)
A beep on a console is simply
echo -e '\a'
that is the ASCII value for beep also called bell. You may replace \a with \007 (compare with `man ascii').
Or just hit Ctrl-G. Use of 'beep' is surely not the real problem, but when the machine has a regular, working soundcard, it does seem odd that it would produce the beep through the builtin speaker instead. Is there any chance this is because the normal soundcard has been shut down at this point, and sound therefore falls back to the speaker? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c22 --- Comment #22 from Per Jessen <per@opensuse.org> 2011-08-30 12:15:53 UTC --- Just a FYI - on a very plain desktop system with intel 8x0 sound, I have sound coming through both the external speakers AND the builtin speaker. (pcspkr module removed). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c23 --- Comment #23 from Damien Radtke <admin@damienradtke.org> 2011-08-31 16:53:57 UTC --- I'm fairly certain that my computer has also made regular beep noises that only come through the headphones/speakers. The only times the internal speaker is used are 1) while shutting down or restarting 2) when in runlevel 3 It does seem very possible that the soundcard is shutting down before the beep is issued, resulting in a very annoying internal beep instead of a far less annoying speaker one. Is there an easy way to test this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c24 --- Comment #24 from Takashi Iwai <tiwai@suse.com> 2011-09-12 12:10:28 UTC --- The normal beep can be controlled by X server (or the desktop system). That's why you get a different result there. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698148 https://bugzilla.novell.com/show_bug.cgi?id=698148#c25 Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX --- Comment #25 from Takashi Iwai <tiwai@suse.com> 2011-12-20 16:44:50 UTC --- As the beep here is intentional by wall and Linux console gives the beep with it, we won't change this behavior just for this bug report. You can still turn off the beep on console as in comment 15. (And on 12.1, we are moving to systemd, so the situation is a bit different anyway...) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com