Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top