You are not logged in.

#1 2010-08-10 16:22:41

spkag
Member
From: France
Registered: 2010-03-31
Posts: 24

[SOLVED] Enable system beep

Hey all !

I'm not exactly sure if it's the right section to ask a such question, just let me know if it's the case.

So, my problem is that I just can't enable the beep. I've installed the beep package, tried the beep command, but nothing happens.
I've read the wiki and some other threads but everything is about disabling the beep. I want to enable it because I've written a bash script that tells me when a web page has been updated and I want to hear it even if I'm in my bathroom. big_smile

I've tried to add stuffs to MODULES in rc.conf :

MODULES=(fuse pcspkr snd-pcsp)

Don't know if it's useful.

So has anyone an idea ?

Thanks for reading,

spkag

Last edited by spkag (2010-08-10 17:41:50)

Offline

#2 2010-08-10 16:27:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Enable system beep

Why can't you use a media file? Or this

speaker-test -t sine -f 1000 -l 2 2>&1

Are you sure you have unmuted all the right sliders in alsamixer or whatever you use?

Run

lsmod | grep -i pcspkr

to see if the module is loaded. You can try to modprobe it if it's not:

[karol@black ~]$ sudo modprobe pcspkr
[karol@black ~]$ echo -e "\007"

You should hear a beep.

Last edited by karol (2010-08-10 16:31:35)

Offline

#3 2010-08-10 16:40:28

spkag
Member
From: France
Registered: 2010-03-31
Posts: 24

Re: [SOLVED] Enable system beep

You were right : beep was muted in alsamixer.
However, I've tried all the commands and I still don't hear any beep. sad

[sebastian@arch-pc ~]$ lsmod | grep -i pcspkr
pcspkr                  1351  0
[sebastian@arch-pc ~]$ speaker-test -t sine -f 1000 -l 2 2>&1

speaker-test 1.0.23

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Sine wave rate is 1000,0000Hz
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
 0 - Front Left
Time per period = 2,835946
 0 - Front Left
Time per period = 2,986691

Thanks for helping

Offline

#4 2010-08-10 16:43:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Enable system beep

That "speaker-test beep" is of higher pitch than the standard system beep (I'm not sure if you mind) - did you hear it?

Do you use bash as your shell? If so, turn the volume way up and run

for i in {1..9}; do echo -e "\007beep" && sleep 1; done

It will produce an audible beep and a textual beep + newline every second for ten seconds, so you should see on the screen and hear them at the same time..
You can Ctrl-C if you have enough of it before the time is up.

Last edited by karol (2010-08-10 16:52:01)

Offline

#5 2010-08-10 16:51:56

spkag
Member
From: France
Registered: 2010-03-31
Posts: 24

Re: [SOLVED] Enable system beep

Well, I'm not sure if I understood the question but I can tell you I haven't heard anything.

EDIT : yep, running bash and the script isn't producing any beep, I can't hear it.

Last edited by spkag (2010-08-10 16:55:01)

Offline

#6 2010-08-10 16:57:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Enable system beep

spkag wrote:

Well, I'm not sure if I understood the question but I can tell you I haven't heard anything.

EDIT : yep, running bash and the script isn't producing any beep, I can't hear it.

[karol@black ~]$ for i in {1..9}; do echo -e "\007beep" && sleep 1; done
beep
beep
beep
beep
beep
beep
beep
beep
beep
[karol@black ~]$ 

You should hear a beep every time it prints a "beep" on the screen.

Did you hear anything when you run

speaker-test -t sine -f 1000 -l 2 2>&1

?

Can you play music, regular multimedia files?

Offline

#7 2010-08-10 17:05:28

spkag
Member
From: France
Registered: 2010-03-31
Posts: 24

Re: [SOLVED] Enable system beep

No beep with any command, and yes I can enjoy my music. smile

EDIT : I've heard a beep at pretty damn high volume in my headphones while acctualy testing my music ! big_smile

But still can't get it without headphones.

Last edited by spkag (2010-08-10 17:09:18)

Offline

#8 2010-08-10 17:10:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Enable system beep

Reinstall alsa and alsa-utils.

You can create a short soundbite to play with a script, I doubt you could hear the system beep from afar.

Edit: Which beep did you hear?

Last edited by karol (2010-08-10 17:10:51)

Offline

#9 2010-08-10 17:15:15

spkag
Member
From: France
Registered: 2010-03-31
Posts: 24

Re: [SOLVED] Enable system beep

The "beep" command gives me a beep, acctualy, and "speaker-test -t sine -f 1000 -l 2 2>&1" gives me a kind of beep, but very lower.
The other commands don't work, nothing with "for i in {1..9}; do echo -e "\007beep" && sleep 1; done" and "echo -e "\007".

Offline

#10 2010-08-10 17:19:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Enable system beep

spkag wrote:

The "beep" command gives me a beep, acctualy, and "speaker-test -t sine -f 1000 -l 2 2>&1" gives me a kind of beep, but very lower.
The other commands don't work, nothing with "for i in {1..9}; do echo -e "\007beep" && sleep 1; done" and "echo -e "\007".

So you can use either of them in your scripts.

Offline

#11 2010-08-10 17:20:56

spkag
Member
From: France
Registered: 2010-03-31
Posts: 24

Re: [SOLVED] Enable system beep

Yes, but is there a way to get the beep without headphones ?

Offline

#12 2010-08-10 17:26:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Enable system beep

spkag wrote:

Yes, but is there a way to get the beep without headphones ?

You can hear music on the speakers and on the headphones, but you can hear the beep only on the headphones?
Well, you can always buy a pair of wireless headphones so you can hear the beep when not in from of the computer ;P

Check your mixer settings. I have no idea why is it happening.

Offline

#13 2010-08-10 17:30:29

spkag
Member
From: France
Registered: 2010-03-31
Posts: 24

Re: [SOLVED] Enable system beep

I don't have speakers ! big_smile I'm having music and beep only with headphones at the moment.

But isn't the beep supposed to work independantly ? Without speakers or headphones ?
That's weird to me, I used to have beeps working at anytime "inside" the computer. Well, I think. big_smile

Offline

#14 2010-08-10 17:36:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Enable system beep

spkag wrote:

I don't have speakers ! big_smile I'm having music and beep only with headphones at the moment.

But isn't the beep supposed to work independantly ? Without speakers or headphones ?
That's weird to me, I used to have beeps working at anytime "inside" the computer. Well, I think. big_smile

I have an IBM Netvista box with an internal mono speaker - it can beep and it can play music. As I said, I doubt you can hear that beep from afar, so I think you should get a pair of speakers.
The system beep - that "\007" you can't hear - uses the internal speaker if there is one, but I think the beep package needs a regular speaker.

Offline

#15 2010-08-10 17:39:24

spkag
Member
From: France
Registered: 2010-03-31
Posts: 24

Re: [SOLVED] Enable system beep

Ok I'll use some old speakers then !

Thank you for your help !

Offline

#16 2010-08-10 17:42:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Enable system beep

spkag wrote:

Ok I'll use some old speakers then !

Thank you for your help !

Read the beep package manpage, you can create many different sounds - short and long, high an low - so you know whether something e.g. aborted or installed correctly.

Offline

Board footer

Powered by FluxBB