public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] beep
@ 2015-04-14 22:25 lee
  2015-04-16  1:31 ` Fernando Rodriguez
  0 siblings, 1 reply; 2+ messages in thread
From: lee @ 2015-04-14 22:25 UTC (permalink / raw
  To: gentoo-user


Hi,

when the pcspkr module (or how it's called; I haven't compiled atm) is
loaded, somehow the built-in speaker is used to sometimes beep.  There
also seems to be the option to play this beep via the sound card ---
which usually sounds nicer.

How is this done?  Do I need to load a different module for that, or
does it require to use some sort of additional software?


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] beep
  2015-04-14 22:25 [gentoo-user] beep lee
@ 2015-04-16  1:31 ` Fernando Rodriguez
  0 siblings, 0 replies; 2+ messages in thread
From: Fernando Rodriguez @ 2015-04-16  1:31 UTC (permalink / raw
  To: gentoo-user

On Wednesday, April 15, 2015 12:25:03 AM lee wrote:
> 
> Hi,
> 
> when the pcspkr module (or how it's called; I haven't compiled atm) is
> loaded, somehow the built-in speaker is used to sometimes beep.  There
> also seems to be the option to play this beep via the sound card ---
> which usually sounds nicer.
> 
> How is this done?  Do I need to load a different module for that, or
> does it require to use some sort of additional software?

If you mean how to configure the kernel for it then just load the right module. 
I remember seeing a "PC Speaker Emulation" or similar module but I can't find 
it now so it may be gone.

Anyways, this only applies to the console (VT). Software just writes the BEL 
character (0x07) to it's terminal (stdout) to play a beep. You can also open 
"/dev/console" directly and play this character or use ioctl calls to play 
sounds with different frequencies and duration but this requires root 
privileges. Modern desktop terminal emulators will already be using the sound 
card to play the BEL character. On KDE for example you can choose any sound 
file to play or just show a notification.

-- 
Fernando Rodriguez


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-16  1:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-14 22:25 [gentoo-user] beep lee
2015-04-16  1:31 ` Fernando Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox