LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   trigger pc speaker to beep when boot up finished (https://www.linuxquestions.org/questions/linux-newbie-8/trigger-pc-speaker-to-beep-when-boot-up-finished-774132/)

remusb 12-07-2009 11:27 PM

trigger pc speaker to beep when boot up finished
 
Hi all,

I've just setup a computer with ubuntu server 9.10 to be a print server, and is doing fine. As this computer has no monitor attached I would like to get the computer to make a sound when its finished booting up, as a signal that its ready for print jobs.

I've installed the > beep < program with the following command

Quote:

sudo apt-get install beep
While the installation went fine, I am still unable to get the pc-speakers to make a beeping sound when typing in the beep command

Quote:

beep
Any suggestions would be appreciated.

Thx Remusb

Tinkster 12-08-2009 11:52 AM

Hi, welcome to LQ!

Slap it into rc.local (or ubuntus version thereof).

Bratmon 12-08-2009 05:44 PM

Quote:

Originally Posted by remusb (Post 3783533)
Hi all,

I've just setup a computer with ubuntu server 9.10 to be a print server, and is doing fine. As this computer has no monitor attached I would like to get the computer to make a sound when its finished booting up, as a signal that its ready for print jobs.

I've installed the > beep < program with the following command



While the installation went fine, I am still unable to get the pc-speakers to make a beeping sound when typing in the beep command



Any suggestions would be appreciated.

Thx Remusb

Go to /etc/modprobe.d/blacklist.conf and comment out the line
Code:

blacklist pcspkr

remusb 12-08-2009 08:34 PM

Quote:

Go to /etc/modprobe.d/blacklist.conf and comment out the line
Code:

Code:

blacklist pcspkr

Ok, i've done that and then rebooted the computer, however I can still not get he machine to make any sound with the pc speaker.

Heres how I've tried,

Code:

beep
and

Code:

echo -e '\a'
No luck so far.

Erik_FL 12-08-2009 09:53 PM

Unless you actually have a PC speaker connected in your computer you won't hear any beeps. You will have to play the sound through your sound card. Some sound cards can be connected to the speaker output on the motherboard but you usually have to get the correct cable separately.

Look at "man aplay" for the command line utility to play sound files. Use "aplay" instead of "beep". You will have to create or copy a sound file with the beep that you want to play.


All times are GMT -5. The time now is 05:04 PM.