Home | History | Annotate | only in /src/sbin/wsconsctl
History log of /src/sbin/wsconsctl
RevisionDateAuthorComments
 1.17 25-Dec-2021  mlelstv Add support for a read-only edid attribute that shows the result of
WSDISPLAYIO_GET_EDID.

Uses code from sys/dev/videomode to parse and print the edid data.
 1.16 26-Oct-2021  rillig wsconsctl: revert adding LINTFLAGS

https://mail-index.netbsd.org/source-changes-d/2021/10/26/msg013482.html
https://mail-index.netbsd.org/source-changes-d/2021/10/26/msg013483.html
 1.15 11-Oct-2021  rillig wsconsctl: include correct header for lint

Running lint in non-tools mode picked up the header from the installed
system, not the one corresponding to the source code. The installed
header on NetBSD 9.99.88 does not define WSMOUSECFG_MAX yet.
 1.14 26-Oct-2008  apb Pass SED=${TOOL_SED:Q} in the environment to scripts run during the build.
 1.13 19-Oct-2008  apb Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
 1.12 20-Jan-2005  xtraeme branches: 1.12.26;
WARNS=2 is the default defined in sbin/Makefile.inc. (thanks wiz)
 1.11 19-Jan-2005  xtraeme Kill __P(), ANSIfy, remove main() prototype; WARNS=2
 1.10 21-Oct-2003  lukem Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.
 1.9 19-Oct-2003  lukem rework to use the newer _MKMSGCREATE (et al) macros
 1.8 19-Oct-2003  lukem support MAKEVERBOSE and use ${HOST_SH}
 1.7 01-Aug-2003  lukem Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
 1.6 29-Jul-2003  lukem move ${DEPENDSRCS} target to after .include <bsd.*.mk>
 1.5 28-Jul-2003  lukem Use ${DEPENDSRCS} as a target instead of .depend, now that
<bsd.dep.mk> builds .depend from .dep files.
 1.4 30-Jan-2002  tv Move the inclusion of <bsd.prog.mk> up so that keysym.h can have ${DESTDIR}
properly in its dependency list.
 1.3 03-Jul-2000  matt More include fixups and GCC 2.96 nonsense
 1.2 10-Jan-1999  augustss Make keysym.h depend on dev/wscons/wsksymdef.h.
 1.1 28-Dec-1998  hannken wsconsctl(8) - a program to manipulate wscons devices.

- lacks wsdisplay support (driver needs work on ioctls).
- man page needs work.
 1.12.26.1 17-Jan-2009  mjf Sync with HEAD.
 1.19 20-Oct-2024  mlelstv Handle EDID data larger than 256 bytes.
 1.18 20-Oct-2024  mlelstv Retrieve configured console font with WSDISPLAYIO_GFONT.
 1.17 25-Dec-2021  mlelstv branches: 1.17.4;
Add support for a read-only edid attribute that shows the result of
WSDISPLAYIO_GET_EDID.

Uses code from sys/dev/videomode to parse and print the edid data.
 1.16 20-Mar-2012  matt Convert to C89 function definitions
 1.15 28-Apr-2008  martin branches: 1.15.20;
Remove clause 3 and 4 from TNF licenses
 1.14 13-Aug-2006  uwe branches: 1.14.18; 1.14.20;
Mark splash.enable and splash.progress write-only, there are no ioctls
to get the values.
 1.13 18-Feb-2006  jmcneill branches: 1.13.2;
Add the ability to control the splash screen.
wsconsctl -d -w splash.enable=<1|0> to toggle the splash screen, and
wsconsctl -d -w splash.progress=1 to update the splash animation
 1.12 05-Feb-2006  jmmv Style fixes:
- Use EXIT_SUCCESS/EXIT_FAILURE where appropriate.
- Cut long lines.
- Properly indent continuation of lines.
- Sort includes.
- Replace u_int with unsigned int.
- Remove parenthesis around return values.
- Add blank line at the beginning of functions without local parameters.
- Cast *printf calls to void.
 1.11 30-Apr-2005  jmmv Do not use FLG_MODIFY to mark color settings. I thought this was used to
denote that a flag was readable/writeable, but that is achieved by passing
a 0 as the flags.

Thanks to uwe@ for finding this out and explaining me why it was wrong.
 1.10 27-Feb-2005  uwe branches: 1.10.2;
Support backlight, brightness and contrast wsdisplay paramteres.
Useful for hpc* ports.
 1.9 19-Jan-2005  xtraeme Kill __P(), ANSIfy, remove main() prototype; WARNS=2
 1.8 30-Jul-2004  jmmv Add 2004 to copyright notice as these has been significantly modified recently.
 1.7 30-Jul-2004  jmmv Do not show several variables when they are not available.

At the moment this only affects the display part, hiding console colors,
border color and/or console scrollback if their respective ioctls are
not supported by the running kernel.

Trying to write to these variables will still fail with the correct ioctl
error message.
 1.6 29-Jul-2004  jmmv Implement border color customization in wscons(4), only available for vga(4)
at the moment.

This includes the addition of two new wsdisplay ioctls, WSDISPLAY_{G,S}BORDER,
one to get the actual color and one to set it, respectively. Possible colors
match those defined by ANSI (and listed in wsdisplayvar.h).

It also adds two accessops to the underlying graphics device, getborder and
setborder, which mach their ioctl counterparts.

Two kernel options are added: WSDISPLAY_CUSTOM_BORDER, which enables the
ioctls described above (to customize the border color from userland after
boot), and WSDISPLAY_BORDER_COLOR, which sets the color at boot time.
The former is enabled by default on the GENERIC kernel, but not on INSTALL
(among others). The later is always commented out, leaving the usual black
border as a default.

wsconsctl is modified to allow accessing this value easily. For example,
'wsconsctl -d -w border=blue'.
 1.5 28-Jul-2004  jmmv Implement support to dynamically change wscons console and kernel colors.

Two new ioctls are added to the wsdisplay device, named WSDISPLAY_GMSGATTRS
and WSDISPLAY_SMSGATTRS, used to retrieve the actual values and set them,
respectively (the name, if you are wondering, comes from "message attributes").

A new emulop is added to the underlying display driver (only vga, for now)
which sets the new attribute for the whole screen, without having to clear
it. This is optional, which means that this also works with other drivers
that don't have this new operation.

Five new kernel options have been added, although only documented in
i386 kernels (for now):
- WSDISPLAY_CUSTOM_OUTPUT, which enables the ioctls described above to
change the colors dynamically from userland. This is enabled by default
in the GENERIC kernel (as well as others) but disabled on all INSTALL*
kernels (as this feature is useless there).
- WS_DEFAULT_COLATTR, WS_DEFAULT_MONOATTR, WS_DEFAULT_BG and WS_DEFAULT_FG,
which specify the default colors for the console at boot time. These have
the same meaning as the (already existing) WS_KERNEL_* variables.

wsconsctl is modified to add msg.default.{attrs,bg,fg} and
msg.kernel.{attrs,bg,fg} to the display part, so that colors can be changed
after boot.

Tested on NetBSD/i386 with vga (and vga in mono mode), and on NetBSD/mac68k.
No objections in tech-kern@.
 1.4 03-Jun-2004  christos If scrolling support is not compiled in the kernel, fail gracefully.
 1.3 28-May-2004  christos PR/19925: David Ferlier: add scrolling support to wscons
 1.2 07-Apr-2002  hannken branches: 1.2.4;
Allow setting display's font.
 1.1 28-Dec-1998  hannken wsconsctl(8) - a program to manipulate wscons devices.

- lacks wsdisplay support (driver needs work on ioctls).
- man page needs work.
 1.2.4.2 07-Jun-2004  tron Pull up revision 1.4 (requested by recht in ticket #451):
If scrolling support is not compiled in the kernel, fail gracefully.
 1.2.4.1 07-Jun-2004  tron Pull up revision 1.3 (requested by recht in ticket #451):
PR/19925: David Ferlier: add scrolling support to wscons
 1.10.2.1 01-May-2005  tron Pull up revision 1.11 (requested by jmmv in ticket #227):
Do not use FLG_MODIFY to mark color settings. I thought this was used to
denote that a flag was readable/writeable, but that is achieved by passing
a 0 as the flags.
Thanks to uwe@ for finding this out and explaining me why it was wrong.
 1.13.2.1 14-Aug-2006  ghen Pull up following revision(s) (requested by uwe in ticket #22):
sbin/wsconsctl/display.c: revision 1.14
Mark splash.enable and splash.progress write-only, there are no ioctls
to get the values.
 1.14.20.1 18-May-2008  yamt sync with head.
 1.14.18.1 02-Jun-2008  mjf Sync with HEAD.
 1.15.20.1 17-Apr-2012  yamt sync with head
 1.17.4.1 02-Aug-2025  perseant Sync with HEAD
 1.12 22-Sep-2021  mlelstv fail on error, not on success.
 1.11 13-Sep-2020  mlelstv Document keyboard mode ioctls and let wsconsctl manage it.
 1.10 23-Nov-2018  mlelstv When merging entries with the keyboard map, print only the resulting changes.

While here, replace bcopy with standad memcpy.
 1.9 28-Apr-2008  martin branches: 1.9.60; 1.9.62;
Remove clause 3 and 4 from TNF licenses
 1.8 05-Feb-2006  jmmv branches: 1.8.20; 1.8.22;
Style fixes:
- Use EXIT_SUCCESS/EXIT_FAILURE where appropriate.
- Cut long lines.
- Properly indent continuation of lines.
- Sort includes.
- Replace u_int with unsigned int.
- Remove parenthesis around return values.
- Add blank line at the beginning of functions without local parameters.
- Cast *printf calls to void.
 1.7 19-Jan-2005  xtraeme Kill __P(), ANSIfy, remove main() prototype; WARNS=2
 1.6 30-Jul-2004  jmmv Add 2004 to copyright notice as these has been significantly modified recently.
 1.5 28-Jun-2004  christos PR/26101: Dheeraj: WSKBDIO_GETSCROLL: Operation not supported by device
should not be fatal.
 1.4 28-May-2004  christos PR/19925: David Ferlier: add scrolling support to wscons
 1.3 19-Sep-2001  ad branches: 1.3.4;
- Sync device lists with wsconsio.h.
- Get/set keyclick on keyboards that support it.
 1.2 06-Jul-2000  hannken Fix type of WSKBDIO_?ETENCODING.
 1.1 28-Dec-1998  hannken branches: 1.1.10;
wsconsctl(8) - a program to manipulate wscons devices.

- lacks wsdisplay support (driver needs work on ioctls).
- man page needs work.
 1.1.10.1 07-Jul-2000  hannken Pull up revision 1.2:
- fix type of kbdencoding.
 1.3.4.2 02-Jul-2004  he Pull up revision 1.5 (requested by recht in ticket #574):
It should not be a fatal error If the WSKBDIO_GETSCROLL is
not supported by the device. Fixes PR#26101.
 1.3.4.1 07-Jun-2004  tron Pull up revision 1.4 (requested by recht in ticket #451):
PR/19925: David Ferlier: add scrolling support to wscons
 1.8.22.1 18-May-2008  yamt sync with head.
 1.8.20.1 02-Jun-2008  mjf Sync with HEAD.
 1.9.62.1 10-Jun-2019  christos Sync with HEAD
 1.9.60.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.10 29-Jan-2010  drochner follow KS_GROUP_Ascii->KS_GROUP_Plain rename in kernel,
noticed by Andreas Gustafsson
 1.9 06-Apr-2009  lukem fix sign-compare issues
 1.8 28-Apr-2008  martin branches: 1.8.6;
Remove clause 3 and 4 from TNF licenses
 1.7 05-Feb-2006  jmmv branches: 1.7.20; 1.7.22;
Style fixes:
- Use EXIT_SUCCESS/EXIT_FAILURE where appropriate.
- Cut long lines.
- Properly indent continuation of lines.
- Sort includes.
- Replace u_int with unsigned int.
- Remove parenthesis around return values.
- Add blank line at the beginning of functions without local parameters.
- Cast *printf calls to void.
 1.6 26-Jun-2005  christos constify.
 1.5 19-Jan-2005  xtraeme Kill __P(), ANSIfy, remove main() prototype; WARNS=2
 1.4 03-Jul-2000  matt More include fixups and GCC 2.96 nonsense
 1.3 08-Feb-1999  hannken Numbers 0..9 must be treated as keysyms depending on context. Allow
`unknown_%d' for keysym with value `%d' so wsconsctl may read its own
output. Closes PR 6888.
 1.2 02-Jan-1999  nathanw Update for the 1990s: don't try to pass an integer in a pointer in ksym2name().
Makes this build on the alpha.
 1.1 28-Dec-1998  hannken wsconsctl(8) - a program to manipulate wscons devices.

- lacks wsdisplay support (driver needs work on ioctls).
- man page needs work.
 1.7.22.1 18-May-2008  yamt sync with head.
 1.7.20.1 02-Jun-2008  mjf Sync with HEAD.
 1.8.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.12 23-Oct-2012  christos allow non-command keysyms to be mapped as commands (experimental)
 1.11 23-Oct-2012  christos - remove obsolete = { syntac
- print context for yyerror()
- add a production to clarify a syntax error
 1.10 27-Aug-2011  joerg branches: 1.10.2; 1.10.8;
Mark yyerror as static and dead.
 1.9 30-Nov-2010  phx Allow standalone commands to be recognized, as in the in-kernel keymaps.
Also allow the Cmd token. Examples:
keycode 210 = Cmd Cmd_BrightnessUp
keycode 211 = Cmd_VolumeToggle
 1.8 06-Apr-2009  lukem fix sign-compare issues
 1.7 28-Apr-2008  martin branches: 1.7.6;
Remove clause 3 and 4 from TNF licenses
 1.6 05-Feb-2006  jmmv branches: 1.6.20; 1.6.22;
Style fixes:
- Use EXIT_SUCCESS/EXIT_FAILURE where appropriate.
- Cut long lines.
- Properly indent continuation of lines.
- Sort includes.
- Replace u_int with unsigned int.
- Remove parenthesis around return values.
- Add blank line at the beginning of functions without local parameters.
- Cast *printf calls to void.
 1.5 26-Jun-2005  christos constify.
 1.4 19-Jan-2005  xtraeme Kill __P(), ANSIfy, remove main() prototype; WARNS=2
 1.3 27-Jun-2004  itohy Fix typos in comment.
 1.2 08-Feb-1999  hannken Numbers 0..9 must be treated as keysyms depending on context. Allow
`unknown_%d' for keysym with value `%d' so wsconsctl may read its own
output. Closes PR 6888.
 1.1 28-Dec-1998  hannken wsconsctl(8) - a program to manipulate wscons devices.

- lacks wsdisplay support (driver needs work on ioctls).
- man page needs work.
 1.6.22.1 18-May-2008  yamt sync with head.
 1.6.20.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.10.8.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.10.2.1 30-Oct-2012  yamt sync with head
 1.7 24-May-2011  joerg input is unused
 1.6 30-Nov-2010  phx Allow standalone commands to be recognized, as in the in-kernel keymaps.
Also allow the Cmd token. Examples:
keycode 210 = Cmd Cmd_BrightnessUp
keycode 211 = Cmd_VolumeToggle
 1.5 28-Oct-2009  christos add %option noyywrap
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 05-Feb-2006  jmmv branches: 1.3.20; 1.3.22;
Style fixes:
- Use EXIT_SUCCESS/EXIT_FAILURE where appropriate.
- Cut long lines.
- Properly indent continuation of lines.
- Sort includes.
- Replace u_int with unsigned int.
- Remove parenthesis around return values.
- Add blank line at the beginning of functions without local parameters.
- Cast *printf calls to void.
 1.2 19-Jan-2005  xtraeme Kill __P(), ANSIfy, remove main() prototype; WARNS=2
 1.1 28-Dec-1998  hannken wsconsctl(8) - a program to manipulate wscons devices.

- lacks wsdisplay support (driver needs work on ioctls).
- man page needs work.
 1.3.22.1 18-May-2008  yamt sync with head.
 1.3.20.1 02-Jun-2008  mjf Sync with HEAD.
 1.2 26-Jun-2005  christos constify.
 1.1 28-Dec-1998  hannken wsconsctl(8) - a program to manipulate wscons devices.

- lacks wsdisplay support (driver needs work on ioctls).
- man page needs work.
 1.11 28-Sep-2021  nia wsconsctl: allow the new "precision scrolling" variables to be configured
 1.10 24-Dec-2012  khorben Added complete support for touchscreen calibration (see PR kern/45872).
Tested with the uts(4) driver, as well as with mice without calibration
support.

Reviewed by uwe@ (thank you!)
 1.9 24-Dec-2012  khorben Added read-only support for touchscreen calibration (see PR kern/45872).
Tested with the uts(4) driver, as well as with mice without calibration
support.

Reviewed by uwe@ (thank you!)
 1.8 28-Apr-2008  martin branches: 1.8.20; 1.8.22; 1.8.26;
Remove clause 3 and 4 from TNF licenses
 1.7 05-Feb-2006  jmmv branches: 1.7.20; 1.7.22;
Style fixes:
- Use EXIT_SUCCESS/EXIT_FAILURE where appropriate.
- Cut long lines.
- Properly indent continuation of lines.
- Sort includes.
- Replace u_int with unsigned int.
- Remove parenthesis around return values.
- Add blank line at the beginning of functions without local parameters.
- Cast *printf calls to void.
 1.6 05-Feb-2006  jmmv Fix two pastos in the code to set 'samplerate'.
 1.5 05-Feb-2006  jmmv Add support to automatically repeat mouse button events in wsmouse(4) and
change wsconsctl(4) so that this is configurable.

This is specially useful for mice that provide page up/down buttons instead
of a real wheel and that do not send events repeatedly from the hardware.
(E.g.: Logitech Marble Mouse.)

No objections in tech-kern@.
 1.4 19-Jan-2005  xtraeme Kill __P(), ANSIfy, remove main() prototype; WARNS=2
 1.3 15-Nov-1999  ad If we changed the sample rate or resolution, then say so.
 1.2 11-Nov-1999  ad Allow setting mouse resolution and sample rate.
 1.1 28-Dec-1998  hannken branches: 1.1.6;
wsconsctl(8) - a program to manipulate wscons devices.

- lacks wsdisplay support (driver needs work on ioctls).
- man page needs work.
 1.1.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.7.22.1 18-May-2008  yamt sync with head.
 1.7.20.1 02-Jun-2008  mjf Sync with HEAD.
 1.8.26.1 25-Feb-2013  tls resync with head
 1.8.22.1 11-Feb-2013  riz Pull up following revision(s) (requested by khorben in ticket #814):
sbin/wsconsctl/wsconsctl.h: revision 1.12
sbin/wsconsctl/mouse.c: revision 1.9
sbin/wsconsctl/mouse.c: revision 1.10
sbin/wsconsctl/util.c: revision 1.31
Added a field type for signed integers. This is required when handling
touchscreen calibration values, which is about to be implemented in
wsconsctl (see PR kern/45872).
Reviewed by uwe@ (thank you!)
Added a field type for signed integers. This is required when handling
touchscreen calibration values, which is about to be implemented in
wsconsctl (see PR kern/45872).
Reviewed by uwe@ (thank you!)
Added read-only support for touchscreen calibration (see PR kern/45872).
Tested with the uts(4) driver, as well as with mice without calibration
support.
Reviewed by uwe@ (thank you!)
Added complete support for touchscreen calibration (see PR kern/45872).
Tested with the uts(4) driver, as well as with mice without calibration
support.
Reviewed by uwe@ (thank you!)
 1.8.20.1 23-Jan-2013  yamt sync with head
 1.34 20-Oct-2024  mlelstv Add descriptions for all display types in wsconsio.h.
 1.33 25-Dec-2021  mlelstv branches: 1.33.4;
Add support for a read-only edid attribute that shows the result of
WSDISPLAYIO_GET_EDID.

Uses code from sys/dev/videomode to parse and print the edid data.
 1.32 23-Nov-2018  mlelstv When merging entries with the keyboard map, print only the resulting changes.

While here, replace bcopy with standad memcpy.
 1.31 24-Dec-2012  khorben branches: 1.31.28; 1.31.30;
Added a field type for signed integers. This is required when handling
touchscreen calibration values, which is about to be implemented in
wsconsctl (see PR kern/45872).

Reviewed by uwe@ (thank you!)
 1.30 15-Dec-2011  phx branches: 1.30.2; 1.30.6;
Amiga wscons/Xorg support, first phase.
Implemented wscons for CV64 and CV64/3D. Other graphics cards drivers are
prepared for it, but will not be attempted before Xorg is not running.
The wscons support is disabled by default. A GENERIC kernel should behave
like always. Use WSCONS to try out a kernel with wscons support.
Done by rkujawa@ and phx@.
 1.29 06-Feb-2011  pooka branches: 1.29.4;
update macro names to match new ones
(i don't know why they changed, just fixing the build)
 1.28 06-Apr-2009  lukem branches: 1.28.2;
fix sign-compare issues
 1.27 28-Apr-2008  martin branches: 1.27.6;
Remove clause 3 and 4 from TNF licenses
 1.26 19-Jun-2006  gdamore branches: 1.26.20; 1.26.22;
Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.
 1.25 05-Feb-2006  jmmv Style fixes:
- Use EXIT_SUCCESS/EXIT_FAILURE where appropriate.
- Cut long lines.
- Properly indent continuation of lines.
- Sort includes.
- Replace u_int with unsigned int.
- Remove parenthesis around return values.
- Add blank line at the beginning of functions without local parameters.
- Cast *printf calls to void.
 1.24 05-Feb-2006  jmmv Add support to automatically repeat mouse button events in wsmouse(4) and
change wsconsctl(4) so that this is configurable.

This is specially useful for mice that provide page up/down buttons instead
of a real wheel and that do not send events repeatedly from the hardware.
(E.g.: Logitech Marble Mouse.)

No objections in tech-kern@.
 1.23 26-Jun-2005  christos constify.
 1.22 31-Jan-2005  joff o Add missing SGI wskbd type
o Add new MATRIXKP wskbd type
 1.21 19-Jan-2005  xtraeme Kill __P(), ANSIfy, remove main() prototype; WARNS=2
 1.20 30-Jul-2004  jmmv Do not show several variables when they are not available.

At the moment this only affects the display part, hiding console colors,
border color and/or console scrollback if their respective ioctls are
not supported by the running kernel.

Trying to write to these variables will still fail with the correct ioctl
error message.
 1.19 28-Jul-2004  jmmv Implement support to dynamically change wscons console and kernel colors.

Two new ioctls are added to the wsdisplay device, named WSDISPLAY_GMSGATTRS
and WSDISPLAY_SMSGATTRS, used to retrieve the actual values and set them,
respectively (the name, if you are wondering, comes from "message attributes").

A new emulop is added to the underlying display driver (only vga, for now)
which sets the new attribute for the whole screen, without having to clear
it. This is optional, which means that this also works with other drivers
that don't have this new operation.

Five new kernel options have been added, although only documented in
i386 kernels (for now):
- WSDISPLAY_CUSTOM_OUTPUT, which enables the ioctls described above to
change the colors dynamically from userland. This is enabled by default
in the GENERIC kernel (as well as others) but disabled on all INSTALL*
kernels (as this feature is useless there).
- WS_DEFAULT_COLATTR, WS_DEFAULT_MONOATTR, WS_DEFAULT_BG and WS_DEFAULT_FG,
which specify the default colors for the console at boot time. These have
the same meaning as the (already existing) WS_KERNEL_* variables.

wsconsctl is modified to add msg.default.{attrs,bg,fg} and
msg.kernel.{attrs,bg,fg} to the display part, so that colors can be changed
after boot.

Tested on NetBSD/i386 with vga (and vga in mono mode), and on NetBSD/mac68k.
No objections in tech-kern@.
 1.18 02-Apr-2004  heas Add descriptions for SGI & Sun specific displays that were added to wsconsio.h
in revisions 1.59 - 1.61.
 1.17 21-Jan-2004  heas Add text descriptions for wskbd types sun and sun-type5.
 1.16 31-Jan-2003  thomas Define Atari keyboard type.
 1.15 10-Dec-2002  itohy Add WSKBD_TYPE_MAPLE and WSMOUSE_TYPE_MAPLE for Dreamcast Maple bus devices.
 1.14 07-Apr-2002  hannken Allow setting display's font.
 1.13 24-Feb-2002  ad Add WSMOUSE_TYPE_MAXINE.
 1.12 13-Jan-2002  jandberg added amiga display/mouse/keyboard types
 1.11 04-Dec-2001  ad Fix typo; pointed out by Gregory McGarry. :-)
 1.10 04-Dec-2001  gmcgarry Update for new HP devices. Add some others while here.
Pointed out by Andrew Doran.
 1.9 19-Sep-2001  ad - Sync device lists with wsconsio.h.
- Get/set keyclick on keyboards that support it.
 1.8 14-Mar-2000  sato add some keyboard and mouse type from sys/dev/wscons/wsconsio.h.
 1.7 13-Mar-2000  ad Add new framebuffer types since 1.4 and change descriptions on a few
existing entries.
 1.6 21-Dec-1999  drochner remove a leftover debug message
 1.5 10-Nov-1999  drochner allow to set multiple keyboard "variants" simultanously.
Follows PR kern/8456 by Michael Eriksson <eramore@era-t.ericsson.se>,
implemented diffently.
 1.4 30-Dec-1998  augustss branches: 1.4.6;
Add USB keyboard type.
 1.3 30-Dec-1998  augustss Add a wscons display type `unknown' that the generic VGA driver can
return until someone fixes it for real.
 1.2 30-Dec-1998  augustss Add a special wsmouse type for USB mice.
 1.1 28-Dec-1998  hannken wsconsctl(8) - a program to manipulate wscons devices.

- lacks wsdisplay support (driver needs work on ioctls).
- man page needs work.
 1.4.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.26.22.1 18-May-2008  yamt sync with head.
 1.26.20.1 02-Jun-2008  mjf Sync with HEAD.
 1.27.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.28.2.1 08-Feb-2011  bouyer Sync with HEAD
 1.29.4.2 23-Jan-2013  yamt sync with head
 1.29.4.1 17-Apr-2012  yamt sync with head
 1.30.6.1 25-Feb-2013  tls resync with head
 1.30.2.1 11-Feb-2013  riz Pull up following revision(s) (requested by khorben in ticket #814):
sbin/wsconsctl/wsconsctl.h: revision 1.12
sbin/wsconsctl/mouse.c: revision 1.9
sbin/wsconsctl/mouse.c: revision 1.10
sbin/wsconsctl/util.c: revision 1.31
Added a field type for signed integers. This is required when handling
touchscreen calibration values, which is about to be implemented in
wsconsctl (see PR kern/45872).
Reviewed by uwe@ (thank you!)
Added a field type for signed integers. This is required when handling
touchscreen calibration values, which is about to be implemented in
wsconsctl (see PR kern/45872).
Reviewed by uwe@ (thank you!)
Added read-only support for touchscreen calibration (see PR kern/45872).
Tested with the uts(4) driver, as well as with mice without calibration
support.
Reviewed by uwe@ (thank you!)
Added complete support for touchscreen calibration (see PR kern/45872).
Tested with the uts(4) driver, as well as with mice without calibration
support.
Reviewed by uwe@ (thank you!)
 1.31.30.1 10-Jun-2019  christos Sync with HEAD
 1.31.28.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.33.4.1 02-Aug-2025  perseant Sync with HEAD
 1.30 13-Jul-2020  nia Move description of keyboard layouts to wskbd.4, add newer layouts

Previously, the best reference was pckbd.4. This does not make much
sense to read if you are on, say, an evbarm device with only USB.

wsconsctl.8 contained a vaguer description of supported language names,
which isn't very useful because you can't pass full language names
to the command. Point readers to wskbd.4 instead.

Note in the wskbd.4 page that while all layouts are generally supported
by pckbd(4) and ukbd(4), older keyboard interfaces might only support
a subset.
 1.29 12-Jul-2020  nia More keyboard layouts
 1.28 14-Feb-2012  wiz branches: 1.28.42;
Fix typo.
 1.27 09-Jun-2009  snj branches: 1.27.6;
Mention a number of keyboard encodings.
From Jukka Ruohonen in PR kern/15955.
 1.26 29-Nov-2008  jnemeth PR/40059 - Bug Hunting -- add Xref to wscons.conf(5)
 1.25 30-Apr-2008  martin branches: 1.25.4; 1.25.6;
Convert TNF licenses to new 2 clause variant
 1.24 22-Oct-2006  christos branches: 1.24.2; 1.24.14; 1.24.18; 1.24.20;
Mention include proper file for keyboard defines; from Zafer.
 1.23 11-Sep-2005  wiz Fix typo. From YOMURA Masanori in private mail.
 1.22 24-Jul-2005  wiz Sort options. Various other fixes.
 1.21 24-Jul-2005  rpaulo Add examples for scroll.fastlines and scroll.slowlines.
Also, bump the man page date.

ok wiz@, hubertf@
 1.20 03-May-2005  augustss Show an example of turning off auto repeat.
 1.19 03-May-2005  wiz Fix a typo and add an s.
 1.18 03-May-2005  augustss Add an example for setting keyboard auto repeat rate.
 1.17 29-Apr-2005  augustss Change the default controlling devices to /dev/wskbd and /dev/wsmouse
(instead wskbd0 and wsmouse0), this way changes will affect all devices
instead of just the first one.
 1.16 05-Apr-2005  hubertf Portuguese keyboards are supported to.
By Rui Paulo in PR 29884.
 1.15 30-Jul-2004  jmmv branches: 1.15.2;
Add 2004 to copyright notice as these has been significantly modified recently.
 1.14 30-Jul-2004  jmmv Add an example on how to change the kernel message colors. This is
illustrative because it shows the use of the '-d' flag and how one can
set multiple variables in the same run of wsconsctl(8).
 1.13 13-May-2004  wiz Add comma in enumeration.
 1.12 13-May-2004  pooka + note finnish encoding
+ shuffle things around a bit, since the encodings we were listing
were not countries (most of them were languages)
 1.11 05-Apr-2003  wiz branches: 1.11.4;
Some minor fixes from Soren Jacobsen in PR 21017.
 1.10 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.9 03-Oct-2002  wiz New sentence, new line. From Robert Elz.
 1.8 19-Aug-2002  wiz Sort supported languages, and sync them with reality, as suggested by
Julio Merino in bin/17993, with a minor correction.
 1.7 16-Nov-2001  wiz Whitespace nits
 1.6 03-Oct-2000  bjh21 Put the sections in the canonical order.
Fix formatting of '=' and '+='.
File names are .Pa, not .Ar.
 1.5 12-Sep-1999  kleink Use full month names with .Dd, as per mdoc.samples(7).
 1.4 28-Jun-1999  agc Flesh out the manual page, add an examples section, and correct some of the
English.
 1.3 03-Feb-1999  augustss Xref wscons wsconscfg wsfontload
 1.2 30-Dec-1998  augustss Remove a slight ambiguity in the flag description.
 1.1 28-Dec-1998  hannken wsconsctl(8) - a program to manipulate wscons devices.

- lacks wsdisplay support (driver needs work on ioctls).
- man page needs work.
 1.11.4.1 13-May-2005  riz Pull up revision 1.17 (requested by augustss in ticket #1490):
Change the default controlling devices to /dev/wskbd and /dev/wsmouse
(instead wskbd0 and wsmouse0), this way changes will affect all devices
instead of just the first one.
 1.15.2.1 01-May-2005  tron Pull up revision 1.17 (requested by augustss in ticket #220):
Change the default controlling devices to /dev/wskbd and /dev/wsmouse
(instead wskbd0 and wsmouse0), this way changes will affect all devices
instead of just the first one.
 1.24.20.1 18-May-2008  yamt sync with head.
 1.24.18.2 17-Jan-2009  mjf Sync with HEAD.
 1.24.18.1 02-Jun-2008  mjf Sync with HEAD.
 1.24.14.1 18-Aug-2009  bouyer Pull up following revision(s) (requested by dholland in ticket #1345):
sbin/wsconsctl/wsconsctl.8: revision 1.26
PR/40059 - Bug Hunting -- add Xref to wscons.conf(5)
 1.24.2.1 18-Aug-2009  bouyer Pull up following revision(s) (requested by dholland in ticket #1345):
sbin/wsconsctl/wsconsctl.8: revision 1.26
PR/40059 - Bug Hunting -- add Xref to wscons.conf(5)
 1.25.6.1 26-Jul-2009  snj branches: 1.25.6.1.2;
Pull up following revision(s) (requested by dholland in ticket #873):
sbin/wsconsctl/wsconsctl.8: revision 1.26
PR/40059 - Bug Hunting -- add Xref to wscons.conf(5)
 1.25.6.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.25.4.1 26-Jul-2009  snj Pull up following revision(s) (requested by dholland in ticket #873):
sbin/wsconsctl/wsconsctl.8: revision 1.26
PR/40059 - Bug Hunting -- add Xref to wscons.conf(5)
 1.27.6.1 17-Apr-2012  yamt sync with head
 1.28.42.2 18-Jul-2020  martin Fix editor mishap during processing of ticket #1002
 1.28.42.1 13-Jul-2020  martin Pull up following revision(s) (requested by nia in ticket #1002):

sys/dev/wscons/wsksymdef.h: revision 1.68
sys/dev/wscons/wsksymdef.h: revision 1.69
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.28
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.29
sys/dev/hid/hidkbdmap.c: revision 1.10
share/man/man4/pckbd.4: revision 1.23
share/man/man4/wskbd.4: revision 1.18
share/man/man4/wskbd.4: revision 1.19
share/man/man4/pckbd.4: revision 1.25
sys/dev/wscons/wsksymdef.h: revision 1.70
sys/dev/wscons/wsksymdef.h: revision 1.71
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.30
sys/dev/wscons/wsksymdef.h: revision 1.72
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.31
sys/dev/wscons/wsksymdef.h: revision 1.73
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.32
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.33
sys/dev/hid/hidkbdmap.c: revision 1.4
sbin/wsconsctl/wsconsctl.8: revision 1.30
sys/dev/hid/hidkbdmap.c: revision 1.5
etc/wscons.conf: revision 1.20
sys/dev/hid/hidkbdmap.c: revision 1.6
etc/wscons.conf: revision 1.21
sys/dev/hid/hidkbdmap.c: revision 1.7
sys/dev/hid/hidkbdmap.c: revision 1.8
sys/dev/hid/hidkbdmap.c: revision 1.9

Add support for the Brazilian keyboard layout to pckbd and ukbd.

This is significantly different from the European Portugese layout,
and was pieced together from Wikipedia, X11 layout files, and to
some extent with trial and error.

Thanks to lun-4 for helping test this.

PR kern/44570
Update lists of keyboard layouts to add Turkish and Brazilian

Bring br.nodead closer to X11

Add Estonian layout as a variation of Swedish for ukbd and pckbd

Add KB_TR for uhid keyboards (it was PS/2 only, this seems wrong)

Add Icelandic keyboard layout to ukbd/pckbd.

Add keyboard layout for Latin American Spanish to ukbd/pckbd

Canadian French keyboard layout for ukbd/pckbd

Clarify that KB_TR is the "Q" layout - there's two standards for Turkish.

Move description of keyboard layouts to wskbd.4, add newer layouts

Previously, the best reference was pckbd.4. This does not make much
sense to read if you are on, say, an evbarm device with only USB.
wsconsctl.8 contained a vaguer description of supported language names,
which isn't very useful because you can't pass full language names
to the command. Point readers to wskbd.4 instead.

Note in the wskbd.4 page that while all layouts are generally supported
by pckbd(4) and ukbd(4), older keyboard interfaces might only support
a subset.

wskbd.4: Add KB_LA

Point readers at wskbd.4
 1.19 23-Nov-2018  mlelstv When merging entries with the keyboard map, print only the resulting changes.

While here, replace bcopy with standad memcpy.
 1.18 25-Aug-2008  dholland branches: 1.18.58; 1.18.60;
Clarify message that says the map isn't shown when -a is given.
Resolves PR 32436 from Igor Sobrado based on a suggestion by
Dieter Roelants, except I expanded the message further.
 1.17 28-Apr-2008  martin branches: 1.17.2;
Remove clause 3 and 4 from TNF licenses
 1.16 15-Dec-2007  perry branches: 1.16.4; 1.16.6;
convert __attribute__s to applicable cdefs.h macros
 1.15 15-Dec-2007  perry include sys/cdefs.h so that __attribute__ can be fixed later
 1.14 05-Feb-2006  jmmv branches: 1.14.10; 1.14.12;
Style fixes:
- Use EXIT_SUCCESS/EXIT_FAILURE where appropriate.
- Cut long lines.
- Properly indent continuation of lines.
- Sort includes.
- Replace u_int with unsigned int.
- Remove parenthesis around return values.
- Add blank line at the beginning of functions without local parameters.
- Cast *printf calls to void.
 1.13 26-Jun-2005  christos constify.
 1.12 02-Jun-2005  lukem appease gcc -Wuninitialized
 1.11 29-Apr-2005  augustss Change the default controlling devices to /dev/wskbd and /dev/wsmouse
(instead wskbd0 and wsmouse0), this way changes will affect all devices
instead of just the first one.
 1.10 19-Jan-2005  xtraeme branches: 1.10.2;
Kill __P(), ANSIfy, remove main() prototype; WARNS=2
 1.9 30-Jul-2004  jmmv Add 2004 to copyright notice as these has been significantly modified recently.
 1.8 30-Jul-2004  jmmv Do not show several variables when they are not available.

At the moment this only affects the display part, hiding console colors,
border color and/or console scrollback if their respective ioctls are
not supported by the running kernel.

Trying to write to these variables will still fail with the correct ioctl
error message.
 1.7 25-Jun-2004  wiz Sync usage with man page (add -w name+=value).
Closes PR 25876 by Kouichirou Hiratsuka.
 1.6 04-May-2003  jmmv branches: 1.6.2;
Explicitly close open file descriptor before exiting.
 1.5 18-Feb-2002  yamt s/read only/write only/ for FLG_WRONLY.
 1.4 19-Feb-2001  cgd convert to use getprogname()
 1.3 03-Jul-2000  matt More include fixups and GCC 2.96 nonsense
 1.2 29-Dec-1998  hannken Display usage information if called without arguments.
 1.1 28-Dec-1998  hannken wsconsctl(8) - a program to manipulate wscons devices.

- lacks wsdisplay support (driver needs work on ioctls).
- man page needs work.
 1.6.2.1 22-Aug-2004  tron branches: 1.6.2.1.2;
Sync usage with man page (add -w name+=value).
Closes PR 25876 by Kouichirou Hiratsuka.
 1.6.2.1.2.1 13-May-2005  riz Pull up revision 1.11 (requested by augustss in ticket #1490):
Change the default controlling devices to /dev/wskbd and /dev/wsmouse
(instead wskbd0 and wsmouse0), this way changes will affect all devices
instead of just the first one.
 1.10.2.1 01-May-2005  tron Pull up revision 1.11 (requested by augustss in ticket #220):
Change the default controlling devices to /dev/wskbd and /dev/wsmouse
(instead wskbd0 and wsmouse0), this way changes will affect all devices
instead of just the first one.
 1.14.12.1 27-Dec-2007  mjf Sync with HEAD.
 1.14.10.1 09-Jan-2008  matt sync with HEAD
 1.16.6.1 18-May-2008  yamt sync with head.
 1.16.4.2 28-Sep-2008  mjf Sync with HEAD.
 1.16.4.1 02-Jun-2008  mjf Sync with HEAD.
 1.17.2.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.18.60.1 10-Jun-2019  christos Sync with HEAD
 1.18.58.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.14 25-Dec-2021  mlelstv Add support for a read-only edid attribute that shows the result of
WSDISPLAYIO_GET_EDID.

Uses code from sys/dev/videomode to parse and print the edid data.
 1.13 23-Nov-2018  mlelstv When merging entries with the keyboard map, print only the resulting changes.

While here, replace bcopy with standad memcpy.
 1.12 24-Dec-2012  khorben branches: 1.12.28; 1.12.30;
Added a field type for signed integers. This is required when handling
touchscreen calibration values, which is about to be implemented in
wsconsctl (see PR kern/45872).

Reviewed by uwe@ (thank you!)
 1.11 27-Aug-2011  joerg branches: 1.11.2; 1.11.4; 1.11.8;
Mark yyerror as static and dead.
 1.10 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.9 05-Feb-2006  jmmv branches: 1.9.20; 1.9.22;
Add support to automatically repeat mouse button events in wsmouse(4) and
change wsconsctl(4) so that this is configurable.

This is specially useful for mice that provide page up/down buttons instead
of a real wheel and that do not send events repeatedly from the hardware.
(E.g.: Logitech Marble Mouse.)

No objections in tech-kern@.
 1.8 26-Jun-2005  christos constify.
 1.7 19-Jan-2005  xtraeme Kill __P(), ANSIfy, remove main() prototype; WARNS=2
 1.6 30-Jul-2004  jmmv Add 2004 to copyright notice as these has been significantly modified recently.
 1.5 30-Jul-2004  jmmv Do not show several variables when they are not available.

At the moment this only affects the display part, hiding console colors,
border color and/or console scrollback if their respective ioctls are
not supported by the running kernel.

Trying to write to these variables will still fail with the correct ioctl
error message.
 1.4 28-Jul-2004  jmmv Implement support to dynamically change wscons console and kernel colors.

Two new ioctls are added to the wsdisplay device, named WSDISPLAY_GMSGATTRS
and WSDISPLAY_SMSGATTRS, used to retrieve the actual values and set them,
respectively (the name, if you are wondering, comes from "message attributes").

A new emulop is added to the underlying display driver (only vga, for now)
which sets the new attribute for the whole screen, without having to clear
it. This is optional, which means that this also works with other drivers
that don't have this new operation.

Five new kernel options have been added, although only documented in
i386 kernels (for now):
- WSDISPLAY_CUSTOM_OUTPUT, which enables the ioctls described above to
change the colors dynamically from userland. This is enabled by default
in the GENERIC kernel (as well as others) but disabled on all INSTALL*
kernels (as this feature is useless there).
- WS_DEFAULT_COLATTR, WS_DEFAULT_MONOATTR, WS_DEFAULT_BG and WS_DEFAULT_FG,
which specify the default colors for the console at boot time. These have
the same meaning as the (already existing) WS_KERNEL_* variables.

wsconsctl is modified to add msg.default.{attrs,bg,fg} and
msg.kernel.{attrs,bg,fg} to the display part, so that colors can be changed
after boot.

Tested on NetBSD/i386 with vga (and vga in mono mode), and on NetBSD/mac68k.
No objections in tech-kern@.
 1.3 07-Apr-2002  hannken Allow setting display's font.
 1.2 04-Feb-2001  christos avoid redundant declaration
 1.1 28-Dec-1998  hannken wsconsctl(8) - a program to manipulate wscons devices.

- lacks wsdisplay support (driver needs work on ioctls).
- man page needs work.
 1.9.22.1 18-May-2008  yamt sync with head.
 1.9.20.1 02-Jun-2008  mjf Sync with HEAD.
 1.11.8.1 25-Feb-2013  tls resync with head
 1.11.4.1 11-Feb-2013  riz Pull up following revision(s) (requested by khorben in ticket #814):
sbin/wsconsctl/wsconsctl.h: revision 1.12
sbin/wsconsctl/mouse.c: revision 1.9
sbin/wsconsctl/mouse.c: revision 1.10
sbin/wsconsctl/util.c: revision 1.31
Added a field type for signed integers. This is required when handling
touchscreen calibration values, which is about to be implemented in
wsconsctl (see PR kern/45872).
Reviewed by uwe@ (thank you!)
Added a field type for signed integers. This is required when handling
touchscreen calibration values, which is about to be implemented in
wsconsctl (see PR kern/45872).
Reviewed by uwe@ (thank you!)
Added read-only support for touchscreen calibration (see PR kern/45872).
Tested with the uts(4) driver, as well as with mice without calibration
support.
Reviewed by uwe@ (thank you!)
Added complete support for touchscreen calibration (see PR kern/45872).
Tested with the uts(4) driver, as well as with mice without calibration
support.
Reviewed by uwe@ (thank you!)
 1.11.2.1 23-Jan-2013  yamt sync with head
 1.12.30.1 10-Jun-2019  christos Sync with HEAD
 1.12.28.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts

RSS XML Feed