| WSBELL(4) | Device Drivers Manual | WSBELL(4) | 
wsbell —
wsbell* at spkr? console?
wsbell driver utilizes the
  speaker(4) driver to provide a
  system bell with or without a keyboard for the
  wscons(4) framework. When a bell
  character is received on a
  wsdisplay(4) screen,
  wsbell sounds the bell.
The wsconsctl(8) utility gives access to several configurable parameters that effect the sound of the system bell.
wsbell driver. Their definitions are
  found in dev/wscons/wsconsio.h.
WSKBDIO_BELLWSKBDIO_GETBELLWSKBDIO_SETBELLWSKBDIO_COMPLEXBELLWSKBDIO_GETDEFAULTBELLWSKBDIO_SETDEFAULTBELLIoctls use the following structure:
struct wskbd_bell_data {
	u_int	which;			/* values to get/set */
#define	WSKBD_BELL_DOPITCH	0x1	/* get/set pitch */
#define	WSKBD_BELL_DOPERIOD	0x2	/* get/set period */
#define	WSKBD_BELL_DOVOLUME	0x4	/* get/set volume */
#define	WSKBD_BELL_DOALL	0x7	/* all of the above */
	u_int	pitch;			/* pitch, in Hz */
	u_int	period;			/* period, in milliseconds */
	u_int	volume;			/* percentage of max volume */
};
| June 13, 2017 | NetBSD 10.1 |