Skip to contentSkip to conversation

PC-speaker control

DISCUSSION Rafael Diniz 3 participants 5 messages Jan 1, 2001 – Jan 2, 2001

lore
Share & tools
lore
#0 lore raw

Hey, Is there a way to control the PC-speaker with the Linux kernel 2.2? I want to disable it.
I guy told me that with this assembly code I can disable it:

	in al , 97
	and al,253
	out 97,al

Linux 2.4 will have any syscall to do this?

Thanks
Rafael Diniz
Brazil
=================================================
Conectiva Linux 6.0 (2.2.17) XFree86-4.0.1
PII 233mhz 96Mb ram
SB16, USR56k, S3 VirgeDX/GX 4Mb, CD creative48X
HDa 10Gb Quantum HDb 4.1Gb Fugitsu
MSX2.0 256k MegaRam 256k Mapper 128k Vram
MSX is the future
=================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw

Try this on the console:

setterm -blength 0

no assembly required. :)

robert

Quoted 8 lines · Rafael Diniz

Hey, Is there a way to control the PC-speaker with the Linux kernel 2.2? I want to disable it.
I guy told me that with this assembly code I can disable it:

	in al , 97
	and al,253
	out 97,al

Linux 2.4 will have any syscall to do this?

Quoted 15 lines

Thanks
Rafael Diniz
Brazil
=================================================
Conectiva Linux 6.0 (2.2.17) XFree86-4.0.1
PII 233mhz 96Mb ram
SB16, USR56k, S3 VirgeDX/GX 4Mb, CD creative48X
HDa 10Gb Quantum HDb 4.1Gb Fugitsu
MSX2.0 256k MegaRam 256k Mapper 128k Vram
MSX is the future
=================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
In reply to Rafael Diniz
Quoted 5 lines · Robert Read

Try this on the console:

setterm -blength 0

no assembly required. :)

Yes, and my xterm still beeps - if I make that go away then something else will beep.

Somebody posted a patch to do a global disable of the speaker some time back, and I wish that the patch were generally available. The result of not having the global disable is an office full of beeping computers.

How does this look:

cat 0 >/proc/sys/dev/speaker/beep

--
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw
In reply to Rafael Diniz
Quoted 11 lines · Daniel Phillips
Quoted 5 lines · Robert Read

Try this on the console:

setterm -blength 0

no assembly required. :)

Yes, and my xterm still beeps - if I make that go away then something else will beep.

Quoted 7 lines

Somebody posted a patch to do a global disable of the speaker some time back, and I wish that the patch were generally available. The result of not having the global disable is an office full of beeping computers.

How does this look:

cat 0 >/proc/sys/dev/speaker/beep

eh,

echo 0 >/proc/sys/dev/speaker/beep

--
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#4 lore raw
In reply to Rafael Diniz
Quoted 9 lines · Daniel Phillips
Quoted 8 lines · Daniel Phillips
Quoted 5 lines · Robert Read

Try this on the console:

setterm -blength 0

no assembly required. :)

Quoted 7 lines
Quoted 7 lines

Yes, and my xterm still beeps - if I make that go away then something else will beep.

Somebody posted a patch to do a global disable of the speaker some time back, and I wish that the patch were generally available. The result of not having the global disable is an office full of beeping computers.

Right, I see what you mean. Disabling the beep is one thing I always do, and it requires a few differnt steps, like "xset b off" for xterms and so on. It would be nice to switch it off in one place and be done with it.

Quoted 5 lines
Quoted 3 lines

How does this look:

echo 0 >/proc/sys/dev/speaker/beep

This looks good to me. As far as I can tell, it looks like the beep is generated by kd_mksound, which is a function pointer that usually points to drivers/char/vt.c:_kd_mksound(). Can anyone verify this?

It doesn't look to hard to write a sysctl driver that would change the function pointer to something quieter. Is this what patch did?

robert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/