How to trigger the computer's buzzer

Status
Not open for further replies.

agnostos

Newbie level 4
Joined
May 14, 2008
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,318
I am trying to trigger the buzzer on the motherboard just for a single beep.
After trying various methods on Linux console and C programming, no one succeed.
a) echo -e '\a'
b) echo -e '\07'
c) ioctl for KDMKTONE access in C
d) printf "^G"
e) linux beep program

For your information the system beeps on systems start up but no in the above solutions.
The system is ARK 3360f Advantech PC with Ubuntu operating system.
Could you please provide any alternative solution ? (assembly/c/python e.t.c.)
 

try C program

#include<stdio.h>

int main()
{
printf("\a");
}

compile with gcc
if it does not work ur buzzer might be faulty
 

try C program

#include<stdio.h>

int main()
{
printf("\a");
}

compile with gcc
if it does not work ur buzzer might be faulty

thank you for the above, i found the problem, just for anyone who may have the same problem the solution was to change the sound's output. I removed the pc speaker (modprobe -r pcspkr) and to enable the sound pc speaker (modprobe snd-pcsp)
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…