View previous topic :: View next topic |
Author |
Message |
d4h0od Tux's lil' helper
Joined: 27 Jun 2002 Posts: 80 Location: Europe => Sweden => Blekinge => Karlskrona => h0odet
|
Posted: Tue Aug 27, 2002 1:22 am Post subject: Turn off beep from Pc-Speaker |
|
|
Im just wondering how i turn off that beep when i try to tab-complete a command and i didnt spell it correct ?
Can i turn off sound in bash or maybe even better can i somehow turn off pc-speaker totally in gentoo ?
I have looked in bios but cant find anything about pc-speaker in there... _________________ // d4h0od |
|
Back to top |
|
|
gfunkmonk Tux's lil' helper
Joined: 10 Jul 2002 Posts: 129 Location: Freelandville, IN
|
Posted: Tue Aug 27, 2002 1:44 am Post subject: |
|
|
you could use alsa-mixer to mute the pc speaker, I believe. |
|
Back to top |
|
|
d4h0od Tux's lil' helper
Joined: 27 Jun 2002 Posts: 80 Location: Europe => Sweden => Blekinge => Karlskrona => h0odet
|
Posted: Tue Aug 27, 2002 10:50 am Post subject: |
|
|
ok... i dont have any sound installed yet and no alsa stuff either
what packages do i have to emerge to get alsa-mixer ? i dont find any package name alsa-mixer or alsamixer... _________________ // d4h0od |
|
Back to top |
|
|
Musashi n00b
Joined: 17 Aug 2002 Posts: 10 Location: Dublin, O-why-o
|
Posted: Wed Aug 28, 2002 8:37 pm Post subject: |
|
|
This is an easy thing to do without alsa installed. Just type xset b off or you could control the volume of the beep with xset b [1-5 or whatever]. Man xset and you will learn all about it. Hope that helped.
Bobby C. |
|
Back to top |
|
|
Musashi n00b
Joined: 17 Aug 2002 Posts: 10 Location: Dublin, O-why-o
|
Posted: Wed Aug 28, 2002 8:39 pm Post subject: |
|
|
Oops. Forgot to add that this is reset after each login. So to make it happen everytime you login just add it to your .bash_profile.
Bobby C. |
|
Back to top |
|
|
d4h0od Tux's lil' helper
Joined: 27 Jun 2002 Posts: 80 Location: Europe => Sweden => Blekinge => Karlskrona => h0odet
|
Posted: Wed Aug 28, 2002 11:08 pm Post subject: |
|
|
tnx m8.... will try it right away _________________ // d4h0od |
|
Back to top |
|
|
d4h0od Tux's lil' helper
Joined: 27 Jun 2002 Posts: 80 Location: Europe => Sweden => Blekinge => Karlskrona => h0odet
|
Posted: Wed Aug 28, 2002 11:41 pm Post subject: |
|
|
i got an error msg saying something like unable to open display "" ;( _________________ // d4h0od |
|
Back to top |
|
|
dizzy n00b
Joined: 04 Aug 2002 Posts: 50 Location: Melb.OZ.Terra.Sol
|
Posted: Sat Aug 31, 2002 4:22 am Post subject: |
|
|
If you want system wide silence of that annoying pc speaker.. and who wouldn't, you could try adding this line to /etc/inputrc.
Code: | set bell-style none |
|
|
Back to top |
|
|
kirill Apprentice
Joined: 01 Aug 2002 Posts: 183 Location: Finland
|
Posted: Sat Aug 31, 2002 10:39 am Post subject: |
|
|
Ok I know how to mute the speaker in bash, but is there any way to mute it when I reboot? Windows doesn't make my pc beep when restarting (well, not always ), but linux does, always!
I was thinking of ripping the speaker of physically, but on the other hand I want to get some output from the pc if something goes wrong (one beep on startup == Nothing is broken )
any ideas? maby BIOS? but again, I want to get informed in case something goes wrong _________________ --kirill |
|
Back to top |
|
|
dizzy n00b
Joined: 04 Aug 2002 Posts: 50 Location: Melb.OZ.Terra.Sol
|
Posted: Sat Aug 31, 2002 11:14 am Post subject: |
|
|
Try this.
I put this line in /etc/conf.d/localstart on my system. |
|
Back to top |
|
|
kirill Apprentice
Joined: 01 Aug 2002 Posts: 183 Location: Finland
|
Posted: Sat Aug 31, 2002 12:34 pm Post subject: |
|
|
dizzy wrote: | Try this.
I put this line in /etc/conf.d/localstart on my system. |
No, you misunderstoon my question completely
kirill wrote: | ...I know how to mute the speaker in bash
|
kirill wrote: | ...is there any way to mute it when I reboot? |
I mean the beep which comes right after you start the PC _________________ --kirill |
|
Back to top |
|
|
dizzy n00b
Joined: 04 Aug 2002 Posts: 50 Location: Melb.OZ.Terra.Sol
|
Posted: Sun Sep 01, 2002 6:20 am Post subject: |
|
|
kirill: Sorry man.. I didn't read your post properly. I don't know how to disable the beep right after you start the pc besides the obvious (disconnecting the wire from your pc speaker to the mainboard). But since you want the beep to for diagnostic then I can't see a way around this. Maybe someone here might know something..
BTW, my laptop does not make a beep wihen it starts but plays a llittle tune, then display the sony vaio logo. So it might be possible for a bios hack... maybe. It's a long shot though. You might want to look into it. |
|
Back to top |
|
|
DMK n00b
Joined: 17 Sep 2002 Posts: 34 Location: Germany BW
|
Posted: Sun Apr 27, 2003 6:24 pm Post subject: disabling speaker in kernel |
|
|
hi...
you could edit the kernel-source for this...
there are some patches flying around but i have none handy... but simply changing in drivers/char/vt.c
the "#if blabla" before the kd_mksound function into "#if (blabla) && false" makes your speaker quiet without sideeffects...
you could also change it like so:
the #if before _kd_mksound in kernelsrc/drivers/vt.c from
Code: |
#if defined(__i386__) || defined(__alpha__) || defined(CONFIG_PPC_ISATIMER) \
|| (defined(__mips__) && defined(CONFIG_ISA)) \
|| (defined(__arm__) && defined(CONFIG_HOST_FOOTBRIDGE)) \
|| defined(__x86_64__)
|
into:
Code: |
#if ( defined(__i386__) || defined(__alpha__) || defined(CONFIG_PPC_ISATIMER) \
|| (defined(__mips__) && defined(CONFIG_ISA)) \
|| (defined(__arm__) && defined(CONFIG_HOST_FOOTBRIDGE)) \
|| defined(__x86_64__) ) \
&& !defined(CONFIG_DISABLE_PC_SPEAKER)
|
and in arch/i386/config.in just before the last line at the bottom of the file:
Code: |
if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
bool ' Disable the PC-Speaker' CONFIG_DISABLE_PC_SPEAKER
fi
source lib/Config.in
|
then
> make menuconfig
and check 'Disable the PC-Speaker'
make dep && make bzImage
and there you go
[update:
here is one patch :
http://www.cs.helsinki.fi/linux/linux-kernel/2001-18/0837.html
but it is for an old kernel so you have perhaps to adapt it... i dont know if it is included into the current sourcetree... ] _________________ Kurzum, das interaktive Medium ist weder Fluch noch Segen; es bildet schlicht und einfach die Geistesverfassung seiner Teilnehmer ab. (H.M.Enzensberger ueber das Internet |
|
Back to top |
|
|
mb4guns Guru
Joined: 04 Dec 2002 Posts: 300 Location: Netherlands
|
Posted: Sun Apr 27, 2003 8:45 pm Post subject: |
|
|
or u just pull the plug _________________ sys0: Athlon64, Corsair TWINX DDR400 (1024mb), GeForce FX5600 256mb, 2x SATA MAxtor 120gig, Plextor 708a, Zalman cooling, Zalman powered, gnomed
sys1: Dell inspiron 4100 PentiumIII-mobile@1000 512mb ATI Radeon mobility m6 30gig, gnomed |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Sun Apr 27, 2003 9:17 pm Post subject: |
|
|
I think what is happening is that when windows reboots, it leaves (or sets?) the flag in some special ram location indicating that the BIOS self-test has already completed, and probably skips the beep when it reboots. Linux must not preserve this... perhaps a new kernel version does this, or there's a patch available? |
|
Back to top |
|
|
plasmaroo Retired Dev
Joined: 24 Apr 2003 Posts: 50
|
Posted: Mon Apr 28, 2003 7:08 pm Post subject: |
|
|
Unless it's a laptop, just RIP the thing out ! ! ! ! ! ! !
|
|
Back to top |
|
|
de4d Apprentice
Joined: 12 Sep 2002 Posts: 181 Location: fr. i. br. (ger)
|
Posted: Tue Apr 29, 2003 8:52 am Post subject: |
|
|
ive even ripped it out of my notebook...
but now after DMKs research ill maybe put it in back ^^
(good work DMK *p* ) _________________ void main(){fork();main();} |
|
Back to top |
|
|
mb4guns Guru
Joined: 04 Dec 2002 Posts: 300 Location: Netherlands
|
Posted: Tue Apr 29, 2003 11:33 am Post subject: |
|
|
I left it in my notebook since I ofthen use it when I'm relax in garden or bed , then I wakeup on the beep _________________ sys0: Athlon64, Corsair TWINX DDR400 (1024mb), GeForce FX5600 256mb, 2x SATA MAxtor 120gig, Plextor 708a, Zalman cooling, Zalman powered, gnomed
sys1: Dell inspiron 4100 PentiumIII-mobile@1000 512mb ATI Radeon mobility m6 30gig, gnomed |
|
Back to top |
|
|
|