* [gentoo-user] Can I suppress the bleep when shutting down?
@ 2015-10-20 16:10 Alan Mackenzie
2015-10-20 16:20 ` Alec Ten Harmsel
` (3 more replies)
0 siblings, 4 replies; 22+ messages in thread
From: Alan Mackenzie @ 2015-10-20 16:10 UTC (permalink / raw
To: gentoo-user
Hello, Gentoo.
Every time I shut down my gentoo system with "shutdown -h now", it beeps
at me. This is becoming steadily more irritating as the months go by.
Just what is this beep supposed to be telling me? I _know_ I'm shutting
the machine down.
Can anybody here tell me how to disable this <beep>ing annoyance?
Many thanks in advance!
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-20 16:10 [gentoo-user] Can I suppress the bleep when shutting down? Alan Mackenzie
@ 2015-10-20 16:20 ` Alec Ten Harmsel
2015-10-20 16:27 ` wabenbau
` (2 subsequent siblings)
3 siblings, 0 replies; 22+ messages in thread
From: Alec Ten Harmsel @ 2015-10-20 16:20 UTC (permalink / raw
To: gentoo-user
On 2015-10-20 12:10, Alan Mackenzie wrote:
> Hello, Gentoo.
>
> Every time I shut down my gentoo system with "shutdown -h now", it beeps
> at me. This is becoming steadily more irritating as the months go by.
> Just what is this beep supposed to be telling me? I _know_ I'm shutting
> the machine down.
Eh, you may not know. What if someone is SSH'd in and shuts it down?
Anyways, disabling this is always the first thing I do when I boot
ArchLinux.
>
> Can anybody here tell me how to disable this <beep>ing annoyance?
I am unfortunately on a Windows box and do not have access to Linux at
the moment, but there is a kernel module - pcspkr - that causes this.
You can remove this from your kernel config to prevent it from ever
happening again. It is also possible to blacklist it, but I'm not sure
how to do that since I only build in modules for my kernels that I may
need/are useful.
To test right now, you can 'rmmod pcspkr' and try shutting down.
Alec
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-20 16:10 [gentoo-user] Can I suppress the bleep when shutting down? Alan Mackenzie
2015-10-20 16:20 ` Alec Ten Harmsel
@ 2015-10-20 16:27 ` wabenbau
2015-10-20 16:44 ` Alan Mackenzie
2015-10-20 17:22 ` Alan McKinnon
2015-10-21 17:10 ` Lee
3 siblings, 1 reply; 22+ messages in thread
From: wabenbau @ 2015-10-20 16:27 UTC (permalink / raw
To: gentoo-user
Alan Mackenzie <acm@muc.de> wrote:
> Hello, Gentoo.
>
> Every time I shut down my gentoo system with "shutdown -h now", it
> beeps at me. This is becoming steadily more irritating as the months
> go by. Just what is this beep supposed to be telling me? I _know_
> I'm shutting the machine down.
>
> Can anybody here tell me how to disable this <beep>ing annoyance?
>
> Many thanks in advance!
>
IIRC you must disable CONFIG_INPUT_PCSPKR in the Kernel config.
--
Regards
wabe
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-20 16:27 ` wabenbau
@ 2015-10-20 16:44 ` Alan Mackenzie
2015-10-20 17:22 ` Matthias Gerstner
0 siblings, 1 reply; 22+ messages in thread
From: Alan Mackenzie @ 2015-10-20 16:44 UTC (permalink / raw
To: gentoo-user
Hello, Wabe.
On Tue, Oct 20, 2015 at 06:27:04PM +0200, wabenbau@gmail.com wrote:
> Alan Mackenzie <acm@muc.de> wrote:
> > Every time I shut down my gentoo system with "shutdown -h now", it
> > beeps at me. This is becoming steadily more irritating as the months
> > go by. Just what is this beep supposed to be telling me? I _know_
> > I'm shutting the machine down.
> > Can anybody here tell me how to disable this <beep>ing annoyance?
> > Many thanks in advance!
> IIRC you must disable CONFIG_INPUT_PCSPKR in the Kernel config.
No, no, no! I don't want to disable my loudspeaker! For example, I get
beeps through my ssh connection with my ISP telling me that new mail has
arrived.
I simply want to disable that one particular beeping at shutdown time.
(OK, I want to disable the beeping when I click to exit XFCE too, but
I've sent that question to an XFCE list.)
> --
> Regards
> wabe
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-20 16:10 [gentoo-user] Can I suppress the bleep when shutting down? Alan Mackenzie
2015-10-20 16:20 ` Alec Ten Harmsel
2015-10-20 16:27 ` wabenbau
@ 2015-10-20 17:22 ` Alan McKinnon
2015-10-20 18:27 ` Alan Mackenzie
2015-10-21 9:03 ` [gentoo-user] " Peter Humphrey
2015-10-21 17:10 ` Lee
3 siblings, 2 replies; 22+ messages in thread
From: Alan McKinnon @ 2015-10-20 17:22 UTC (permalink / raw
To: gentoo-user
On 20/10/2015 18:10, Alan Mackenzie wrote:
> Hello, Gentoo.
>
> Every time I shut down my gentoo system with "shutdown -h now", it beeps
> at me. This is becoming steadily more irritating as the months go by.
> Just what is this beep supposed to be telling me? I _know_ I'm shutting
> the machine down.
>
> Can anybody here tell me how to disable this <beep>ing annoyance?
>
> Many thanks in advance!
>
Where is the beep coming from?
Real speakers (like where music comes out) - check Alerts &
Notifications or similar in your DE.
That silly monotone speaker that can only make bing noises and has been
in pc's since the first one?
Is this happening inside a DE session, or from a virtual console?
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-20 16:44 ` Alan Mackenzie
@ 2015-10-20 17:22 ` Matthias Gerstner
2015-10-20 17:57 ` Marc Joliet
` (2 more replies)
0 siblings, 3 replies; 22+ messages in thread
From: Matthias Gerstner @ 2015-10-20 17:22 UTC (permalink / raw
To: Alan Mackenzie; +Cc: gentoo-user@lists.gentoo.org
[-- Attachment #1: Type: text/plain, Size: 1752 bytes --]
Hi Alan,
> I simply want to disable that one particular beeping at shutdown time.
well this topic made me curious where the beep is coming from.
It does originate from the shutdown command itself which is part of the
sys-apps/sysvinit package. In this package's source you find can a file
"src/dowall.c", where you will in turn find a function "wall(...)".
This is the function where the warning messages will be produced that
show up in the terminal and the message is produced like this:
snprintf(line, sizeof(line),
"\007\r\nBroadcast message from %s@%s %s(%s):\r\n\r\n",
user, hostname, tty, date);
The "\007" is the beep you're getting. It's a bell character that you
can produce manually by doing this, too:
echo -e "\007"
Unfortunately the bell character is hard coded into the warning message.
Also there seems to be no way to suppress the warning message.
But you could still try is to disable the interpretation of the bell
character by your terminal. Then you could make an alias or wrapper
around the original shutdown command that does this.
According to Arch Linux docs here:
https://wiki.archlinux.org/index.php/Disable_PC_speaker_beep
You can locally disable the bell in the terminal by calling "setterm
-blength 0". But this doesn't work with my terminals. Says it's
unsupported.
Then you can put this in your ~/.inputrc: "set bell-style none". This
works for me. Then, however, all terminals stop beeping. The pcspkr is
still loaded though and can be used.
As you only want to stop the beep only during shutdown you might also be
able to call "xset -b", disabling the bell on the X-server (globally?).
This is not persistent across reboots and you won't have any beeps until
the machine shuts down.
Regards
Matthias
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-20 17:22 ` Matthias Gerstner
@ 2015-10-20 17:57 ` Marc Joliet
2015-10-20 18:48 ` Alan McKinnon
2015-10-20 18:01 ` [gentoo-user] " »Q«
2015-10-20 18:20 ` [gentoo-user] " Alan Mackenzie
2 siblings, 1 reply; 22+ messages in thread
From: Marc Joliet @ 2015-10-20 17:57 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]
On Tuesday 20 October 2015 19:22:48 Matthias Gerstner wrote:
>Hi Alan,
>
>> I simply want to disable that one particular beeping at shutdown time.
>
>well this topic made me curious where the beep is coming from.
>
>It does originate from the shutdown command itself which is part of the
>sys-apps/sysvinit package. In this package's source you find can a file
>"src/dowall.c", where you will in turn find a function "wall(...)".
>
>This is the function where the warning messages will be produced that
>show up in the terminal and the message is produced like this:
>
>snprintf(line, sizeof(line),
> "\007\r\nBroadcast message from %s@%s %s(%s):\r\n\r\n",
> user, hostname, tty, date);
>
>The "\007" is the beep you're getting. It's a bell character that you
>can produce manually by doing this, too:
>
>echo -e "\007"
>
>Unfortunately the bell character is hard coded into the warning message.
>Also there seems to be no way to suppress the warning message.
[...]
If it's caused by the call to wall(), then maybe the --no-wall option to
shutdown will help?
>Regards
>
>Matthias
HTH
--
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* [gentoo-user] Re: Can I suppress the bleep when shutting down?
2015-10-20 17:22 ` Matthias Gerstner
2015-10-20 17:57 ` Marc Joliet
@ 2015-10-20 18:01 ` »Q«
2015-10-20 18:20 ` [gentoo-user] " Alan Mackenzie
2 siblings, 0 replies; 22+ messages in thread
From: »Q« @ 2015-10-20 18:01 UTC (permalink / raw
To: gentoo-user
On Tue, 20 Oct 2015 19:22:48 +0200
Matthias Gerstner <Matthias.Gerstner@ncp-e.com> wrote:
> It does originate from the shutdown command itself which is part of
> the sys-apps/sysvinit package. In this package's source you find can
> a file "src/dowall.c", where you will in turn find a function
> "wall(...)".
>
> This is the function where the warning messages will be produced that
> show up in the terminal and the message is produced like this:
>
> snprintf(line, sizeof(line),
> "\007\r\nBroadcast message from %s@%s %s(%s):\r\n\r\n",
> user, hostname, tty, date);
>
> The "\007" is the beep you're getting. It's a bell character that you
> can produce manually by doing this, too:
To add one more suggestion to your very good ones (which I've snipped),
there is a very small patch to remove the \007 at
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614893#20>.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-20 17:22 ` Matthias Gerstner
2015-10-20 17:57 ` Marc Joliet
2015-10-20 18:01 ` [gentoo-user] " »Q«
@ 2015-10-20 18:20 ` Alan Mackenzie
2 siblings, 0 replies; 22+ messages in thread
From: Alan Mackenzie @ 2015-10-20 18:20 UTC (permalink / raw
To: Matthias Gerstner; +Cc: gentoo-user@lists.gentoo.org
Hello, Matthias.
On Tue, Oct 20, 2015 at 07:22:48PM +0200, Matthias Gerstner wrote:
> Hi Alan,
> > I simply want to disable that one particular beeping at shutdown time.
> well this topic made me curious where the beep is coming from.
> It does originate from the shutdown command itself which is part of the
> sys-apps/sysvinit package. In this package's source you find can a file
> "src/dowall.c", where you will in turn find a function "wall(...)".
> This is the function where the warning messages will be produced that
> show up in the terminal and the message is produced like this:
> snprintf(line, sizeof(line),
> "\007\r\nBroadcast message from %s@%s %s(%s):\r\n\r\n",
> user, hostname, tty, date);
> The "\007" is the beep you're getting. It's a bell character that you
> can produce manually by doing this, too:
> echo -e "\007"
> Unfortunately the bell character is hard coded into the warning message.
> Also there seems to be no way to suppress the warning message.
> But you could still try is to disable the interpretation of the bell
> character by your terminal. Then you could make an alias or wrapper
> around the original shutdown command that does this.
> According to Arch Linux docs here:
> https://wiki.archlinux.org/index.php/Disable_PC_speaker_beep
> You can locally disable the bell in the terminal by calling "setterm
> -blength 0". But this doesn't work with my terminals. Says it's
> unsupported.
> Then you can put this in your ~/.inputrc: "set bell-style none". This
> works for me. Then, however, all terminals stop beeping. The pcspkr is
> still loaded though and can be used.
> As you only want to stop the beep only during shutdown you might also be
> able to call "xset -b", disabling the bell on the X-server (globally?).
> This is not persistent across reboots and you won't have any beeps until
> the machine shuts down.
Hey, that's brilliant! Thank you very much indeed! That is an answer
much more complete than I could have expected.
Probably the most satisfactory way for me to make it work the way I want
is to build my own version of shutdown, removing the offending \007 from
that sprintf format string..... and then to watch out for new versions
of sys-apps/sysvinit. The package appears to be relatively stable.
> Regards
> Matthias
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-20 17:22 ` Alan McKinnon
@ 2015-10-20 18:27 ` Alan Mackenzie
2015-10-20 19:03 ` [gentoo-user] " James
2015-10-21 9:03 ` [gentoo-user] " Peter Humphrey
1 sibling, 1 reply; 22+ messages in thread
From: Alan Mackenzie @ 2015-10-20 18:27 UTC (permalink / raw
To: gentoo-user
Hello, Alan.
On Tue, Oct 20, 2015 at 07:22:12PM +0200, Alan McKinnon wrote:
> On 20/10/2015 18:10, Alan Mackenzie wrote:
> > Hello, Gentoo.
> > Every time I shut down my gentoo system with "shutdown -h now", it beeps
> > at me. This is becoming steadily more irritating as the months go by.
> > Just what is this beep supposed to be telling me? I _know_ I'm shutting
> > the machine down.
> > Can anybody here tell me how to disable this <beep>ing annoyance?
> > Many thanks in advance!
> Where is the beep coming from?
The beep speaker in my PC case.
> Real speakers (like where music comes out) - check Alerts &
> Notifications or similar in your DE.
I use XFCE. I get a similar beep on exiting XFCE, and I've sent a
similar request to an XFCE list asking how I can disable that beep.
> That silly monotone speaker that can only make bing noises and has been
> in pc's since the first one?
Yes, that one! After spending all the time I did trying to get my
kernel to drive it, I now want to suppress it (sometimes).
> Is this happening inside a DE session, or from a virtual console?
From a virtual console. Matthias has tracked it down for me, and it is
hard coded in one of the C files building shutdown itself. I think I'm
going to edit the source and rebuild it without the bleep.
> --
> Alan McKinnon
> alan.mckinnon@gmail.com
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-20 17:57 ` Marc Joliet
@ 2015-10-20 18:48 ` Alan McKinnon
2015-10-20 20:24 ` Marc Joliet
0 siblings, 1 reply; 22+ messages in thread
From: Alan McKinnon @ 2015-10-20 18:48 UTC (permalink / raw
To: gentoo-user
On 20/10/2015 19:57, Marc Joliet wrote:
> On Tuesday 20 October 2015 19:22:48 Matthias Gerstner wrote:
>> Hi Alan,
>>
>>> I simply want to disable that one particular beeping at shutdown time.
>>
>> well this topic made me curious where the beep is coming from.
>>
>> It does originate from the shutdown command itself which is part of the
>> sys-apps/sysvinit package. In this package's source you find can a file
>> "src/dowall.c", where you will in turn find a function "wall(...)".
>>
>> This is the function where the warning messages will be produced that
>> show up in the terminal and the message is produced like this:
>>
>> snprintf(line, sizeof(line),
>> "\007\r\nBroadcast message from %s@%s %s(%s):\r\n\r\n",
>> user, hostname, tty, date);
>>
>> The "\007" is the beep you're getting. It's a bell character that you
>> can produce manually by doing this, too:
>>
>> echo -e "\007"
>>
>> Unfortunately the bell character is hard coded into the warning message.
>> Also there seems to be no way to suppress the warning message.
> [...]
>
> If it's caused by the call to wall(), then maybe the --no-wall option to
> shutdown will help?
I don't have that option in my ~arch shutdown
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 22+ messages in thread
* [gentoo-user] Re: Can I suppress the bleep when shutting down?
2015-10-20 18:27 ` Alan Mackenzie
@ 2015-10-20 19:03 ` James
2015-10-21 11:58 ` Alan Mackenzie
0 siblings, 1 reply; 22+ messages in thread
From: James @ 2015-10-20 19:03 UTC (permalink / raw
To: gentoo-user
Alan Mackenzie <acm <at> muc.de> writes:
> > > Every time I shut down my gentoo system with "shutdown -h now", it beeps
> > > at me. This is becoming steadily more irritating as the months go by.
> > > Just what is this beep supposed to be telling me? I _know_ I'm shutting
> > > the machine down.
> From a virtual console. Matthias has tracked it down for me, and it is
> hard coded in one of the C files building shutdown itself. I think I'm
> going to edit the source and rebuild it without the bleep.
Check out 'epatch_user' [1].
This is exactly what epatch-user was design for. And
you get 'persistence' with this type of patch. In fact,
this would be a perfect example to find it's way to
the gentoo wiki!
Bravo, a frequent nuisance, the sounds, and folks could add lots
of patches to shut off differnet annoying sounds......
Great Find there Alan...
hth,
James
[1] https://wiki.gentoo.org/wiki//etc/portage/patches
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-20 18:48 ` Alan McKinnon
@ 2015-10-20 20:24 ` Marc Joliet
0 siblings, 0 replies; 22+ messages in thread
From: Marc Joliet @ 2015-10-20 20:24 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1564 bytes --]
On Tuesday 20 October 2015 20:48:22 Alan McKinnon wrote:
>On 20/10/2015 19:57, Marc Joliet wrote:
>> On Tuesday 20 October 2015 19:22:48 Matthias Gerstner wrote:
>>> Hi Alan,
>>>
>>>> I simply want to disable that one particular beeping at shutdown time.
>>>
>>> well this topic made me curious where the beep is coming from.
>>>
>>> It does originate from the shutdown command itself which is part of the
>>> sys-apps/sysvinit package. In this package's source you find can a file
>>> "src/dowall.c", where you will in turn find a function "wall(...)".
>>>
>>> This is the function where the warning messages will be produced that
>>> show up in the terminal and the message is produced like this:
>>>
>>> snprintf(line, sizeof(line),
>>>
>>> "\007\r\nBroadcast message from %s@%s %s(%s):\r\n\r\n",
>>> user, hostname, tty, date);
>>>
>>> The "\007" is the beep you're getting. It's a bell character that you
>>> can produce manually by doing this, too:
>>>
>>> echo -e "\007"
>>>
>>> Unfortunately the bell character is hard coded into the warning message.
>>> Also there seems to be no way to suppress the warning message.
>>
>> [...]
>>
>> If it's caused by the call to wall(), then maybe the --no-wall option to
>> shutdown will help?
>
>I don't have that option in my ~arch shutdown
*Sigh* then it's probably unique to systemd[sysv-utils]. Sorry for not
thinking about that.
--
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-20 17:22 ` Alan McKinnon
2015-10-20 18:27 ` Alan Mackenzie
@ 2015-10-21 9:03 ` Peter Humphrey
2015-10-21 9:55 ` Mick
1 sibling, 1 reply; 22+ messages in thread
From: Peter Humphrey @ 2015-10-21 9:03 UTC (permalink / raw
To: gentoo-user
On Tuesday 20 October 2015 19:22:12 Alan McKinnon wrote:
> Where is the beep coming from?
>
> Real speakers (like where music comes out) - check Alerts &
> Notifications or similar in your DE.
>
> That silly monotone speaker that can only make bing noises and has been
> in pc's since the first one?
Am I unusual in not having such a speaker in either of my boxes?
--
Rgds
Peter
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-21 9:03 ` [gentoo-user] " Peter Humphrey
@ 2015-10-21 9:55 ` Mick
2015-10-21 10:23 ` Alan Mackenzie
0 siblings, 1 reply; 22+ messages in thread
From: Mick @ 2015-10-21 9:55 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 797 bytes --]
On Wednesday 21 Oct 2015 10:03:42 Peter Humphrey wrote:
> On Tuesday 20 October 2015 19:22:12 Alan McKinnon wrote:
> > Where is the beep coming from?
> >
> > Real speakers (like where music comes out) - check Alerts &
> > Notifications or similar in your DE.
> >
> > That silly monotone speaker that can only make bing noises and has been
> > in pc's since the first one?
>
> Am I unusual in not having such a speaker in either of my boxes?
No, modern PCs don't always have an internal speaker fitted, although the
MoBos have terminals to connect a piezoelectric speaker to. They are/were
useful for BIOS error messages, but I am not sure if modern UEFI firmware
produces error code beeps when things go wrong - I haven't fitted a speaker to
mine.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-21 9:55 ` Mick
@ 2015-10-21 10:23 ` Alan Mackenzie
2015-10-21 13:29 ` Neil Bothwick
2015-10-21 13:46 ` Mick
0 siblings, 2 replies; 22+ messages in thread
From: Alan Mackenzie @ 2015-10-21 10:23 UTC (permalink / raw
To: gentoo-user
Hello, Mick.
On Wed, Oct 21, 2015 at 10:55:29AM +0100, Mick wrote:
> On Wednesday 21 Oct 2015 10:03:42 Peter Humphrey wrote:
> > On Tuesday 20 October 2015 19:22:12 Alan McKinnon wrote:
> > > Where is the beep coming from?
> > > Real speakers (like where music comes out) - check Alerts &
> > > Notifications or similar in your DE.
> > > That silly monotone speaker that can only make bing noises and has been
> > > in pc's since the first one?
> > Am I unusual in not having such a speaker in either of my boxes?
> No, modern PCs don't always have an internal speaker fitted, although the
> MoBos have terminals to connect a piezoelectric speaker to. They are/were
> useful for BIOS error messages, but I am not sure if modern UEFI firmware
> produces error code beeps when things go wrong - I haven't fitted a speaker to
> mine.
My 6 year old motherboard, according to its documentation (I've never
tried it out), produces a code of beeps when it detects errors such as no
keyboard being found at boot up. I think no monitor being found also
produces a beep code. A loudspeaker in the box is the _only_ way a
motherboard has of reporting such errors.
"Modern" UEFI firmware not reporting such errors, if such be the case,
would be one of the reasons for me to depise UEFI as I do. Why do I need
UEFI? A traditional BIOS can boot my machine just fine, and the sole
purpose of UEFI seems to be to prevent OS's which aren't Microsoft
Windows from booting, and to brick certain Samsung laptops.
Indeed, on The Register the other day, in a comments sections, somebody
described how he had a dual boot GNU/Linux Windows setup, and after a
Windows update, the GNU/Linux wouldn't boot at all. He suspected that
the Windows update had tampered with the UEFI CMOS settings somehow.
Do modern motherboards still allow you the option of running under the
traditional BIOS? I've not seen this mentioned in any of the motherboard
descriptions recently.
> --
> Regards,
> Mick
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Re: Can I suppress the bleep when shutting down?
2015-10-20 19:03 ` [gentoo-user] " James
@ 2015-10-21 11:58 ` Alan Mackenzie
0 siblings, 0 replies; 22+ messages in thread
From: Alan Mackenzie @ 2015-10-21 11:58 UTC (permalink / raw
To: gentoo-user
Hello, James.
On Tue, Oct 20, 2015 at 07:03:27PM +0000, James wrote:
> Alan Mackenzie <acm <at> muc.de> writes:
> > > > Every time I shut down my gentoo system with "shutdown -h now", it beeps
> > > > at me. This is becoming steadily more irritating as the months go by.
> > > > Just what is this beep supposed to be telling me? I _know_ I'm shutting
> > > > the machine down.
> > From a virtual console. Matthias has tracked it down for me, and it is
> > hard coded in one of the C files building shutdown itself. I think I'm
> > going to edit the source and rebuild it without the bleep.
> Check out 'epatch_user' [1].
> This is exactly what epatch-user was design for. And
> you get 'persistence' with this type of patch.
Thank you, indeed. I have now created such a patch, not without one or
two problems along the way. With it, emerge -1 sysvinit now works, and
it generates me a shutdown which doesn't beep. :-)
> In fact, this would be a perfect example to find it's way to the
> gentoo wiki!
Hmm. I'd have to moderate the language used in the patch for that. ;-)
> Bravo, a frequent nuisance, the sounds, and folks could add lots
> of patches to shut off differnet annoying sounds......
> Great Find there Alan...
Thanks to all those who helped me along the way.
> hth,
> James
> [1] https://wiki.gentoo.org/wiki//etc/portage/patches
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-21 10:23 ` Alan Mackenzie
@ 2015-10-21 13:29 ` Neil Bothwick
2015-10-21 13:41 ` Mick
2015-10-21 13:46 ` Mick
1 sibling, 1 reply; 22+ messages in thread
From: Neil Bothwick @ 2015-10-21 13:29 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]
On Wed, 21 Oct 2015 10:23:46 +0000, Alan Mackenzie wrote:
> "Modern" UEFI firmware not reporting such errors, if such be the case,
> would be one of the reasons for me to depise UEFI as I do.
I can't see that being true.
> Why do I
> need UEFI? A traditional BIOS can boot my machine just fine, and the
> sole purpose of UEFI seems to be to prevent OS's which aren't Microsoft
> Windows from booting, and to brick certain Samsung laptops.
You seem to be confusing UEFI with Secure Boot.
For me, the greatest benefit of UEFI is that I no longer have to deal
with GRUB.
--
Neil Bothwick
"Two things are infinite: the universe and human stupidity;
and I'm not sure about the the universe."
(Albert Einstein)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-21 13:29 ` Neil Bothwick
@ 2015-10-21 13:41 ` Mick
0 siblings, 0 replies; 22+ messages in thread
From: Mick @ 2015-10-21 13:41 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 850 bytes --]
On Wednesday 21 Oct 2015 14:29:24 Neil Bothwick wrote:
> On Wed, 21 Oct 2015 10:23:46 +0000, Alan Mackenzie wrote:
> > "Modern" UEFI firmware not reporting such errors, if such be the case,
> > would be one of the reasons for me to depise UEFI as I do.
>
> I can't see that being true.
>
> > Why do I
> >
> > need UEFI? A traditional BIOS can boot my machine just fine, and the
> > sole purpose of UEFI seems to be to prevent OS's which aren't Microsoft
> > Windows from booting, and to brick certain Samsung laptops.
>
> You seem to be confusing UEFI with Secure Boot.
>
> For me, the greatest benefit of UEFI is that I no longer have to deal
> with GRUB.
Or MBR's limitation of not being able to boot from disks >2TB.
PS. A bit [O/T] but has anyone used Coreboot and how did it compare to UEFI?
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-21 10:23 ` Alan Mackenzie
2015-10-21 13:29 ` Neil Bothwick
@ 2015-10-21 13:46 ` Mick
1 sibling, 0 replies; 22+ messages in thread
From: Mick @ 2015-10-21 13:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 913 bytes --]
On Wednesday 21 Oct 2015 11:23:46 Alan Mackenzie wrote:
> Indeed, on The Register the other day, in a comments sections, somebody
> described how he had a dual boot GNU/Linux Windows setup, and after a
> Windows update, the GNU/Linux wouldn't boot at all. He suspected that
> the Windows update had tampered with the UEFI CMOS settings somehow.
I wouldn't think that MSWindows would interfere in the UEFI settings and
enable Secure Boot, but it may have messed up the boot loader settings - esp.
if the poster had set up the MSWindows boot manager to chainload their Linux
OS.
> Do modern motherboards still allow you the option of running under the
> traditional BIOS? I've not seen this mentioned in any of the motherboard
> descriptions recently.
From what I have seen there is a conventional BIOS compatibility setting, to
allow booting vanilla MBR disks.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-20 16:10 [gentoo-user] Can I suppress the bleep when shutting down? Alan Mackenzie
` (2 preceding siblings ...)
2015-10-20 17:22 ` Alan McKinnon
@ 2015-10-21 17:10 ` Lee
2015-10-22 14:51 ` João Miguel
3 siblings, 1 reply; 22+ messages in thread
From: Lee @ 2015-10-21 17:10 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 528 bytes --]
'modprobe -r pcspkr' should remove the offending beep.
On Oct 20, 2015 9:10 AM, "Alan Mackenzie" <acm@muc.de> wrote:
> Hello, Gentoo.
>
> Every time I shut down my gentoo system with "shutdown -h now", it beeps
> at me. This is becoming steadily more irritating as the months go by.
> Just what is this beep supposed to be telling me? I _know_ I'm shutting
> the machine down.
>
> Can anybody here tell me how to disable this <beep>ing annoyance?
>
> Many thanks in advance!
>
> --
> Alan Mackenzie (Nuremberg, Germany).
>
>
[-- Attachment #2: Type: text/html, Size: 839 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] Can I suppress the bleep when shutting down?
2015-10-21 17:10 ` Lee
@ 2015-10-22 14:51 ` João Miguel
0 siblings, 0 replies; 22+ messages in thread
From: João Miguel @ 2015-10-22 14:51 UTC (permalink / raw
To: gentoo-user
> 'modprobe -r pcspkr' should remove the offending beep.
>> No, no, no! I don't want to disable my loudspeaker! For example, I get
>> beeps through my ssh connection with my ISP telling me that new mail has
>> arrived.
He just wants to disable it _on shutdown_, not always.
João Miguel
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2015-10-22 14:52 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-20 16:10 [gentoo-user] Can I suppress the bleep when shutting down? Alan Mackenzie
2015-10-20 16:20 ` Alec Ten Harmsel
2015-10-20 16:27 ` wabenbau
2015-10-20 16:44 ` Alan Mackenzie
2015-10-20 17:22 ` Matthias Gerstner
2015-10-20 17:57 ` Marc Joliet
2015-10-20 18:48 ` Alan McKinnon
2015-10-20 20:24 ` Marc Joliet
2015-10-20 18:01 ` [gentoo-user] " »Q«
2015-10-20 18:20 ` [gentoo-user] " Alan Mackenzie
2015-10-20 17:22 ` Alan McKinnon
2015-10-20 18:27 ` Alan Mackenzie
2015-10-20 19:03 ` [gentoo-user] " James
2015-10-21 11:58 ` Alan Mackenzie
2015-10-21 9:03 ` [gentoo-user] " Peter Humphrey
2015-10-21 9:55 ` Mick
2015-10-21 10:23 ` Alan Mackenzie
2015-10-21 13:29 ` Neil Bothwick
2015-10-21 13:41 ` Mick
2015-10-21 13:46 ` Mick
2015-10-21 17:10 ` Lee
2015-10-22 14:51 ` João Miguel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox