2

I am using a Debian machine, ARK-3360F, and I need to make it beep like it does when it starts-up. Unfortunately, there is not any other speaker than this on the machine, so the below methods do not work even if I use modprobe pcspkr:

echo -e "\a" echo ^G echo -e "\07" 

-and the beep program

8
  • 2
    Try modprobe pcspkr and printf '\a' > /dev/tty1 Commented Jan 13, 2014 at 8:31
  • I used echo -e instead of printf since it is in terminal and not C. Still it doesn't beep. Commented Jan 13, 2014 at 8:42
  • @Alex: You can use printf in various shells. Checked alsamixer? Commented Jan 13, 2014 at 8:51
  • sorry you are right. However, printf didn't work and so does the beep program. Commented Jan 13, 2014 at 8:59
  • 1
    Does it beep on BOOT? As in: sure it actually has a speaker? If it has, and beep does not beep, it mostly sound slike a mute issue. You could also try with snd-pcsp as noted here. This should give an extra entry for pcsp in ALSA. If no alsamixer try amixer. Commented Jan 13, 2014 at 9:23

1 Answer 1

4

As root echo to /dev/console:

 echo -e '\a' > /dev/console 

or as normal user:

sudo bash -c "echo -e '\a' > /dev/console" 

as indicated you may have to run sudo modprobe pcspkr first.

1
  • this works on my laptop which has normal speakers but not on the Debian machine. Unfortunately, the sound doesn't come from the motherboard speaker but from the normal speakers. Commented Jan 13, 2014 at 8:50

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.