Date: Sun, 25 Jun 1995 12:20:27 +0300 From: Gennady Sorokopud <gena@NetVision.net.il> To: <current@FreeBSD.org> Cc: "Gennady B. Sorokopud" <gena@NetVision.net.il> Subject: no bell under Xinside server Message-ID: <XFMail.950625120930.gena@NetVision.net.il>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.950625120930.gena>
