From owner-freebsd-current Sun Jun 25 21:25:36 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA22560 for current-outgoing; Sun, 25 Jun 1995 21:25:36 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id VAA22552 for ; Sun, 25 Jun 1995 21:25:32 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA14513; Mon, 26 Jun 1995 06:25:07 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id GAA07646; Mon, 26 Jun 1995 06:24:58 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id AAA20224; Mon, 26 Jun 1995 00:56:20 +0200 From: J Wunsch Message-Id: <199506252256.AAA20224@uriah.heep.sax.de> Subject: Re: no bell under Xinside server To: terry@cs.weber.edu (Terry Lambert) Date: Mon, 26 Jun 1995 00:56:20 +0200 (MET DST) Cc: gena@NetVision.net.il, current@FreeBSD.org In-Reply-To: <9506252151.AA11996@cs.weber.edu> from "Terry Lambert" at Jun 25, 95 03:51:52 pm Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 985 Sender: current-owner@FreeBSD.org Precedence: bulk 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. ;-)