From owner-freebsd-current Sun Jun 25 02:07:16 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id CAA15328 for current-outgoing; Sun, 25 Jun 1995 02:07:16 -0700 Received: from dns.netvision.net.il (root@dns.NetVision.net.il [194.90.1.5]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id CAA15320 for ; Sun, 25 Jun 1995 02:07:13 -0700 Received: from Burka.NetVision.net.il (root@Burka.NetVision.net.il [194.90.6.15]) by dns.netvision.net.il (8.6.12/8.6.9) with ESMTP id MAA27541; Sun, 25 Jun 1995 12:07:44 +0300 Received: from gena@NetVision.net.il (Burka.NetVision.net.il [194.90.6.15]) by Burka.NetVision.net.il (8.6.11/8.6.6) with SMTP id MAA00257; Sun, 25 Jun 1995 12:20:27 +0300 Date: Sun, 25 Jun 1995 12:20:27 +0300 Message-ID: X-Face: #v>4HN>#D_"[olq9y`HqTYkLVB89Xy|3')Vs9v58JQ*u-xEJVKY`xa.}E?z0RkLI/P&;BJmi0#u=W0).-Y'J4(dw{"54NhSG|YYZG@[)(`e! >jN#L!~qI5fE-JHS+< Organization: NetVision ltd. X-Mailer: XFMail 0.2-Beta on FreeBSD From: Gennady Sorokopud To: Subject: no bell under Xinside server Cc: "Gennady B. Sorokopud" Sender: current-owner@FreeBSD.org Precedence: bulk Hello! I noticed that if i'm running Xinside X-server speaker bell does not work. (But it works perfectly with pcvt console driver) After some investigation i find out that ioctl that is responsible for "beeping" under X is missing in syscons.c . After applying the following patch things got back to normal. *** /sys/i386/isa/syscons.c.org Sun Jun 25 11:29:54 1995 --- /sys/i386/isa/syscons.c Sun Jun 25 11:30:56 1995 *************** *** 488,493 **** --- 488,501 ---- switch (cmd) { /* process console hardware related ioctl's */ + case CONS_XBELL: + if (*data) + do_bell(scp, ((int*)data)[0] & 0xffff, + ( ((int*)data)[1] & 0xffff ) * hz / 1000); + else + do_bell(scp, scp->bell_pitch, scp->bell_duration); + return 0; + case GIO_ATTR: /* get current attributes */ *(int*)data = scp->term.cur_attr; return 0; *** /sys/i386/include/console.h.org Sun Jun 25 11:31:26 1995 --- /sys/i386/include/console.h Sun Jun 25 11:32:05 1995 *************** *** 77,82 **** --- 77,83 ---- #define GIO_FONT8x16 _IOR('c', 69, fnt16_t) #define CONS_GETINFO _IOWR('c', 73, vid_info_t) #define CONS_GETVERS _IOR('c', 74, int) + #define CONS_XBELL _IOW('t', 123, int[2]) #define VT_OPENQRY _IOR('v', 1, int) #define VT_SETMODE _IOW('v', 2, vtmode_t) I'd really appreciate if someone with commit privileges could commit this patch. -------- Gennady B. Sorokopud - System programmer at NetVision Israel. E-Mail: gena@NetVision.net.il Homepage: http://www.netvision.net.il/~gena This message was sent at 06/25/95 12:09:30 by XF-Mail