I switched my workstation over to newcons today, and it worked just
fine, so yay. After using it a while, it slowly dawned on me that I
wasn't making hardly any typing mistakes, nor was there any annoying
email coming in. After all, if either were happing, I'd be getting
beeps; vt is making my life easier! ... wait...
A little investigation showed that the KDMKTONE ioctl handler was a
complete stub, so anything X tried to do to ring the bell was
completely unavailing. Urg. That's... unpleasant.
>From poking around in vt and comparing with syscons, I've come up with
the following patch which makes it work (as the couple beeps I've
spawned just writing this email show). It's kinda fugly; should
probably be better factored, or less magic-numberized. Possibly
vtterm_bell() should be able to take pitch/duration like sc_bell()
does. But it's _much_ better than nothing; the bell should work!
--- sys/dev/vt/vt_core.c (revision 264991)
+++ sys/dev/vt/vt_core.c (working copy)
@@ -1636,7 +1636,11 @@
case KDMKTONE: /* sound the bell */
- /* TODO */
+ sysbeep(1193182 / ((*(int*)data)&0xffff),
case KIOCSOUND: /* make tone (*data) hz */
/* TODO */
Matthew Fuller (MF4839) | fulle...@over-yonder.net
Systems/Network Administrator | http://www.over-yonder.net/~fullermd/
On the Internet, nobody can hear you scream.
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"