You are not logged in.
Pages: 1
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.
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
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
You were right : beep was muted in alsamixer.
However, I've tried all the commands and I still don't hear any beep.
[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
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
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
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
No beep with any command, and yes I can enjoy my music.
EDIT : I've heard a beep at pretty damn high volume in my headphones while acctualy testing my music !
But still can't get it without headphones.
Last edited by spkag (2010-08-10 17:09:18)
Offline
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
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
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
Yes, but is there a way to get the beep without headphones ?
Offline
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
I don't have speakers ! 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.
Offline
I don't have speakers ! 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.
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
Ok I'll use some old speakers then !
Thank you for your help !
Offline
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
Pages: 1