beep() on linux

Find and share HowTos to various installations / configurations!
Search

Post Reply
8 posts • Page 1 of 1
User avatar
tmalone
Posts: 192
Joined: Mon Nov 22, 2010 11:21 pm

beep() on linux

Post by tmalone »

Does anyone know how to setup Debian to get the beep() command to work?

it has a message in the logviwer

Could not open /dev/console

Not sure what it is looking for in terms of devices? The help for beep() does not mention anything nor does the Linux install notes.

thanks,

Todd Malone

User avatar
tmalone
Posts: 192
Joined: Mon Nov 22, 2010 11:21 pm

Re: beep() on linux

Post by tmalone »

I tried to install beep from debian

apt install beep

but that seems to be an OS level function

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: beep() on linux

Post by leoknipp »

Maybe you can use the function startSound() instead of beep() if you want to play a sound.

Best Regards
Leopold Knipp
Senior Support Specialist

gschijndel
Posts: 373
Joined: Tue Jan 15, 2019 3:12 pm

Re: beep() on linux

Post by gschijndel »

Is the console device not on your system? Or does the user not have rights to use the console device?

User avatar
tmalone
Posts: 192
Joined: Mon Nov 22, 2010 11:21 pm

Re: beep() on linux

Post by tmalone »

we need beep() to work on linux.

@gschijndel I use Linux about every 3-4 years, maybe you can give me a command to try to know about Console device, that is what the error message reference; NoPosix::beep():, Could not open /dev/consol

Since this is a standard OA function, I assume it is part of the install, or would make recommendations about additional install packages

Todd

gschijndel
Posts: 373
Joined: Tue Jan 15, 2019 3:12 pm

Re: beep() on linux

Post by gschijndel »

The /dev/console is the system console, which is managed by the kernel nowadays. In the past it was a symbolic link.

Guess the beep function uses KDMKTONE to generate the beep and would work on '/dev/tty'.

I do not have a trick nor workaround to get it to work. The only way I see to get it to work is opening a support ticket and wait on a fix.

On my systems 'ls -l /dev/console' showed that only the root user has permission, but everybody has permission on '/dev/tty'.

User avatar
tmalone
Posts: 192
Joined: Mon Nov 22, 2010 11:21 pm

Re: beep() on linux

Post by tmalone »

case opened, I will update here when I find out

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: beep() on linux

Post by leoknipp »

Does startSound() work on your machine?
If this one works you can use it instead of beep.

If you cannot use startSound() please describe in detail what functionality you want to achieve.

Best Regards
Leopold Knipp
Senior Support Specialist

Post Reply
8 posts • Page 1 of 1