Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Turn off beep from Pc-Speaker
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
d4h0od
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2002
Posts: 80
Location: Europe => Sweden => Blekinge => Karlskrona => h0odet

PostPosted: Tue Aug 27, 2002 1:22 am    Post subject: Turn off beep from Pc-Speaker Reply with quote

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
View user's profile Send private message
gfunkmonk
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2002
Posts: 129
Location: Freelandville, IN

PostPosted: Tue Aug 27, 2002 1:44 am    Post subject: Reply with quote

you could use alsa-mixer to mute the pc speaker, I believe.
Back to top
View user's profile Send private message
d4h0od
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2002
Posts: 80
Location: Europe => Sweden => Blekinge => Karlskrona => h0odet

PostPosted: Tue Aug 27, 2002 10:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Musashi
n00b
n00b


Joined: 17 Aug 2002
Posts: 10
Location: Dublin, O-why-o

PostPosted: Wed Aug 28, 2002 8:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Musashi
n00b
n00b


Joined: 17 Aug 2002
Posts: 10
Location: Dublin, O-why-o

PostPosted: Wed Aug 28, 2002 8:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
d4h0od
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2002
Posts: 80
Location: Europe => Sweden => Blekinge => Karlskrona => h0odet

PostPosted: Wed Aug 28, 2002 11:08 pm    Post subject: Reply with quote

tnx m8.... will try it right away ;)
_________________
// d4h0od
Back to top
View user's profile Send private message
d4h0od
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2002
Posts: 80
Location: Europe => Sweden => Blekinge => Karlskrona => h0odet

PostPosted: Wed Aug 28, 2002 11:41 pm    Post subject: Reply with quote

i got an error msg saying something like unable to open display "" ;(
_________________
// d4h0od
Back to top
View user's profile Send private message
dizzy
n00b
n00b


Joined: 04 Aug 2002
Posts: 50
Location: Melb.OZ.Terra.Sol

PostPosted: Sat Aug 31, 2002 4:22 am    Post subject: Reply with quote

If you want system wide silence of that annoying pc speaker.. and who wouldn't, :wink: you could try adding this line to /etc/inputrc.
Code:
set bell-style none
Back to top
View user's profile Send private message
kirill
Apprentice
Apprentice


Joined: 01 Aug 2002
Posts: 183
Location: Finland

PostPosted: Sat Aug 31, 2002 10:39 am    Post subject: Reply with quote

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 :P )

any ideas? maby BIOS? but again, I want to get informed in case something goes wrong :D
_________________
--kirill
Back to top
View user's profile Send private message
dizzy
n00b
n00b


Joined: 04 Aug 2002
Posts: 50
Location: Melb.OZ.Terra.Sol

PostPosted: Sat Aug 31, 2002 11:14 am    Post subject: Reply with quote

Try this.

Code:
setterm -blength 0


I put this line in /etc/conf.d/localstart on my system.
Back to top
View user's profile Send private message
kirill
Apprentice
Apprentice


Joined: 01 Aug 2002
Posts: 183
Location: Finland

PostPosted: Sat Aug 31, 2002 12:34 pm    Post subject: Reply with quote

dizzy wrote:
Try this.

Code:
setterm -blength 0


I put this line in /etc/conf.d/localstart on my system.


No, you misunderstoon my question completely :D

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 8)
_________________
--kirill
Back to top
View user's profile Send private message
dizzy
n00b
n00b


Joined: 04 Aug 2002
Posts: 50
Location: Melb.OZ.Terra.Sol

PostPosted: Sun Sep 01, 2002 6:20 am    Post subject: Reply with quote

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
View user's profile Send private message
DMK
n00b
n00b


Joined: 17 Sep 2002
Posts: 34
Location: Germany BW

PostPosted: Sun Apr 27, 2003 6:24 pm    Post subject: disabling speaker in kernel Reply with quote

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
View user's profile Send private message
mb4guns
Guru
Guru


Joined: 04 Dec 2002
Posts: 300
Location: Netherlands

PostPosted: Sun Apr 27, 2003 8:45 pm    Post subject: Reply with quote

or u just pull the plug :P
_________________
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
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Sun Apr 27, 2003 9:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
plasmaroo
Retired Dev
Retired Dev


Joined: 24 Apr 2003
Posts: 50

PostPosted: Mon Apr 28, 2003 7:08 pm    Post subject: Reply with quote

Unless it's a laptop, just RIP the thing out ! ! ! ! ! ! !

:lol:
Back to top
View user's profile Send private message
de4d
Apprentice
Apprentice


Joined: 12 Sep 2002
Posts: 181
Location: fr. i. br. (ger)

PostPosted: Tue Apr 29, 2003 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message
mb4guns
Guru
Guru


Joined: 04 Dec 2002
Posts: 300
Location: Netherlands

PostPosted: Tue Apr 29, 2003 11:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum