Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 1995 00:56:20 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        terry@cs.weber.edu (Terry Lambert)
Cc:        gena@NetVision.net.il, current@FreeBSD.org
Subject:   Re: no bell under Xinside server
Message-ID:  <199506252256.AAA20224@uriah.heep.sax.de>
In-Reply-To: <9506252151.AA11996@cs.weber.edu> from "Terry Lambert" at Jun 25, 95 03:51:52 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Terry Lambert wrote:
> 
> > I noticed that if i'm running Xinside X-server speaker bell does not
> > work.

> Isn't the ioctl to set duration and frequency also missing?

It is there, but Xinside is using an obsoleted interface.  This is the
pcvt part, the syscons implementation is rather similiar.  The
interface itself is featured after SysV, hence the semantics are
somewhat awful:

        case KDMKTONE:
                /* ring the speaker */
                if(data)
                {
                        int duration = *(int *)data >> 16;
                        int pitch = *(int *)data & 0xffff;

                        sysbeep(pitch, duration * hz / 3000);
                }
                else
                {
                        sysbeep(PCVT_SYSBEEPF / 1493, hz / 4);
                }
                return 0;


-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506252256.AAA20224>