public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Fernando Rodriguez <frodriguez.developer@outlook.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] beep
Date: Wed, 15 Apr 2015 21:31:14 -0400	[thread overview]
Message-ID: <8468931.9K0bS2Jh0h@navi> (raw)
In-Reply-To: <87h9sie4ao.fsf@heimdali.yagibdah.de>

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


      reply	other threads:[~2015-04-16  1:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-14 22:25 [gentoo-user] beep lee
2015-04-16  1:31 ` Fernando Rodriguez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8468931.9K0bS2Jh0h@navi \
    --to=frodriguez.developer@outlook.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox