History log of /openbsd-current/sys/dev/hid/hidkbd.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.12 03-Jan-2024 tobhe

Enable Apple brightness keys also for archs other than macppc.

ok kettenis@


# 1.11 30-Nov-2023 miod

Make sure we don't process garbage data as keypresses if the device sends a
truncated report.


# 1.10 22-Nov-2023 tobhe

Add support for keyboard backlight hotkeys in wskbd and hook up macppc apple
keyboards.

From jon (at) elytron (dot) openbsd (dot) amsterdam with some changes by me
ok gkoehler@


Revision tags: OPENBSD_7_4_BASE
# 1.9 09-Jul-2023 tobhe

Add suspend key support in wskbd and make it work on Apple ARM laptops.

feedback and ok miod@


Revision tags: OPENBSD_7_3_BASE
# 1.8 09-Nov-2022 robert

translate Fn+(1-10,-,=) keys to F1-F12 on M1 laptops with a touchbar

ok kettenis@, miod@


Revision tags: OPENBSD_7_2_BASE
# 1.7 16-Sep-2022 robert

move most of the key combination translation code out of ukbd(4)
to hidkbd so that it can be re-used by apldc(4) and aplhidev(4) as well

this also adds support for apple fn key combinations to aplhidev(4)

ok miod@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.6 02-Nov-2020 tobhe

Enable brightness keys on powerbooks where the keyboard attaches as ukbd(4).

ok kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.5 30-May-2017 mpi

Use memmove() instead of memcpy(), buffers are overlapping.

From Coverity via NetBSD via miod@

ok claudio@, tedu@, deraadt@, krw@


# 1.4 12-May-2017 mpi

Introduce a new keyboard console hook to enter ddb(4) and make ukbd(4)
use it.

Instead of defering every input of a USB console keyboard to a timeout
via a queue of one element, only differ entering ddb(4) once a matching
control sequenece has been typed.

This prevent loosing inputs when a USB console keyboard is "too fast".

Fix a problem reported by matthieu@, Adam McDougall and Hrvoje Popovski.

ok stsp@, dlg@


# 1.3 10-May-2017 mpi

Make this compile with HIDKBD_DEBUG defined.


Revision tags: OPENBSD_6_1_BASE
# 1.2 11-Mar-2017 mpi

Introduce a new knob to force the first USB keyboard as console input.

By setting "machdep.forceukbd=1" you can now use your USB keyboard in
ddb(4) even if your BIOS emulates a pckbd(4).

ok tom@, kettenis@, deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.1 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


# 1.11 30-Nov-2023 miod

Make sure we don't process garbage data as keypresses if the device sends a
truncated report.


# 1.10 22-Nov-2023 tobhe

Add support for keyboard backlight hotkeys in wskbd and hook up macppc apple
keyboards.

From jon (at) elytron (dot) openbsd (dot) amsterdam with some changes by me
ok gkoehler@


Revision tags: OPENBSD_7_4_BASE
# 1.9 09-Jul-2023 tobhe

Add suspend key support in wskbd and make it work on Apple ARM laptops.

feedback and ok miod@


Revision tags: OPENBSD_7_3_BASE
# 1.8 09-Nov-2022 robert

translate Fn+(1-10,-,=) keys to F1-F12 on M1 laptops with a touchbar

ok kettenis@, miod@


Revision tags: OPENBSD_7_2_BASE
# 1.7 16-Sep-2022 robert

move most of the key combination translation code out of ukbd(4)
to hidkbd so that it can be re-used by apldc(4) and aplhidev(4) as well

this also adds support for apple fn key combinations to aplhidev(4)

ok miod@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.6 02-Nov-2020 tobhe

Enable brightness keys on powerbooks where the keyboard attaches as ukbd(4).

ok kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.5 30-May-2017 mpi

Use memmove() instead of memcpy(), buffers are overlapping.

From Coverity via NetBSD via miod@

ok claudio@, tedu@, deraadt@, krw@


# 1.4 12-May-2017 mpi

Introduce a new keyboard console hook to enter ddb(4) and make ukbd(4)
use it.

Instead of defering every input of a USB console keyboard to a timeout
via a queue of one element, only differ entering ddb(4) once a matching
control sequenece has been typed.

This prevent loosing inputs when a USB console keyboard is "too fast".

Fix a problem reported by matthieu@, Adam McDougall and Hrvoje Popovski.

ok stsp@, dlg@


# 1.3 10-May-2017 mpi

Make this compile with HIDKBD_DEBUG defined.


Revision tags: OPENBSD_6_1_BASE
# 1.2 11-Mar-2017 mpi

Introduce a new knob to force the first USB keyboard as console input.

By setting "machdep.forceukbd=1" you can now use your USB keyboard in
ddb(4) even if your BIOS emulates a pckbd(4).

ok tom@, kettenis@, deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.1 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


# 1.10 22-Nov-2023 tobhe

Add support for keyboard backlight hotkeys in wskbd and hook up macppc apple
keyboards.

From jon (at) elytron (dot) openbsd (dot) amsterdam with some changes by me
ok gkoehler@


Revision tags: OPENBSD_7_4_BASE
# 1.9 09-Jul-2023 tobhe

Add suspend key support in wskbd and make it work on Apple ARM laptops.

feedback and ok miod@


Revision tags: OPENBSD_7_3_BASE
# 1.8 09-Nov-2022 robert

translate Fn+(1-10,-,=) keys to F1-F12 on M1 laptops with a touchbar

ok kettenis@, miod@


Revision tags: OPENBSD_7_2_BASE
# 1.7 16-Sep-2022 robert

move most of the key combination translation code out of ukbd(4)
to hidkbd so that it can be re-used by apldc(4) and aplhidev(4) as well

this also adds support for apple fn key combinations to aplhidev(4)

ok miod@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.6 02-Nov-2020 tobhe

Enable brightness keys on powerbooks where the keyboard attaches as ukbd(4).

ok kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.5 30-May-2017 mpi

Use memmove() instead of memcpy(), buffers are overlapping.

From Coverity via NetBSD via miod@

ok claudio@, tedu@, deraadt@, krw@


# 1.4 12-May-2017 mpi

Introduce a new keyboard console hook to enter ddb(4) and make ukbd(4)
use it.

Instead of defering every input of a USB console keyboard to a timeout
via a queue of one element, only differ entering ddb(4) once a matching
control sequenece has been typed.

This prevent loosing inputs when a USB console keyboard is "too fast".

Fix a problem reported by matthieu@, Adam McDougall and Hrvoje Popovski.

ok stsp@, dlg@


# 1.3 10-May-2017 mpi

Make this compile with HIDKBD_DEBUG defined.


Revision tags: OPENBSD_6_1_BASE
# 1.2 11-Mar-2017 mpi

Introduce a new knob to force the first USB keyboard as console input.

By setting "machdep.forceukbd=1" you can now use your USB keyboard in
ddb(4) even if your BIOS emulates a pckbd(4).

ok tom@, kettenis@, deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.1 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


# 1.9 09-Jul-2023 tobhe

Add suspend key support in wskbd and make it work on Apple ARM laptops.

feedback and ok miod@


Revision tags: OPENBSD_7_3_BASE
# 1.8 09-Nov-2022 robert

translate Fn+(1-10,-,=) keys to F1-F12 on M1 laptops with a touchbar

ok kettenis@, miod@


Revision tags: OPENBSD_7_2_BASE
# 1.7 16-Sep-2022 robert

move most of the key combination translation code out of ukbd(4)
to hidkbd so that it can be re-used by apldc(4) and aplhidev(4) as well

this also adds support for apple fn key combinations to aplhidev(4)

ok miod@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.6 02-Nov-2020 tobhe

Enable brightness keys on powerbooks where the keyboard attaches as ukbd(4).

ok kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.5 30-May-2017 mpi

Use memmove() instead of memcpy(), buffers are overlapping.

From Coverity via NetBSD via miod@

ok claudio@, tedu@, deraadt@, krw@


# 1.4 12-May-2017 mpi

Introduce a new keyboard console hook to enter ddb(4) and make ukbd(4)
use it.

Instead of defering every input of a USB console keyboard to a timeout
via a queue of one element, only differ entering ddb(4) once a matching
control sequenece has been typed.

This prevent loosing inputs when a USB console keyboard is "too fast".

Fix a problem reported by matthieu@, Adam McDougall and Hrvoje Popovski.

ok stsp@, dlg@


# 1.3 10-May-2017 mpi

Make this compile with HIDKBD_DEBUG defined.


Revision tags: OPENBSD_6_1_BASE
# 1.2 11-Mar-2017 mpi

Introduce a new knob to force the first USB keyboard as console input.

By setting "machdep.forceukbd=1" you can now use your USB keyboard in
ddb(4) even if your BIOS emulates a pckbd(4).

ok tom@, kettenis@, deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.1 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


# 1.8 09-Nov-2022 robert

translate Fn+(1-10,-,=) keys to F1-F12 on M1 laptops with a touchbar

ok kettenis@, miod@


Revision tags: OPENBSD_7_2_BASE
# 1.7 16-Sep-2022 robert

move most of the key combination translation code out of ukbd(4)
to hidkbd so that it can be re-used by apldc(4) and aplhidev(4) as well

this also adds support for apple fn key combinations to aplhidev(4)

ok miod@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.6 02-Nov-2020 tobhe

Enable brightness keys on powerbooks where the keyboard attaches as ukbd(4).

ok kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.5 30-May-2017 mpi

Use memmove() instead of memcpy(), buffers are overlapping.

From Coverity via NetBSD via miod@

ok claudio@, tedu@, deraadt@, krw@


# 1.4 12-May-2017 mpi

Introduce a new keyboard console hook to enter ddb(4) and make ukbd(4)
use it.

Instead of defering every input of a USB console keyboard to a timeout
via a queue of one element, only differ entering ddb(4) once a matching
control sequenece has been typed.

This prevent loosing inputs when a USB console keyboard is "too fast".

Fix a problem reported by matthieu@, Adam McDougall and Hrvoje Popovski.

ok stsp@, dlg@


# 1.3 10-May-2017 mpi

Make this compile with HIDKBD_DEBUG defined.


Revision tags: OPENBSD_6_1_BASE
# 1.2 11-Mar-2017 mpi

Introduce a new knob to force the first USB keyboard as console input.

By setting "machdep.forceukbd=1" you can now use your USB keyboard in
ddb(4) even if your BIOS emulates a pckbd(4).

ok tom@, kettenis@, deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.1 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


# 1.7 16-Sep-2022 robert

move most of the key combination translation code out of ukbd(4)
to hidkbd so that it can be re-used by apldc(4) and aplhidev(4) as well

this also adds support for apple fn key combinations to aplhidev(4)

ok miod@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.6 02-Nov-2020 tobhe

Enable brightness keys on powerbooks where the keyboard attaches as ukbd(4).

ok kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.5 30-May-2017 mpi

Use memmove() instead of memcpy(), buffers are overlapping.

From Coverity via NetBSD via miod@

ok claudio@, tedu@, deraadt@, krw@


# 1.4 12-May-2017 mpi

Introduce a new keyboard console hook to enter ddb(4) and make ukbd(4)
use it.

Instead of defering every input of a USB console keyboard to a timeout
via a queue of one element, only differ entering ddb(4) once a matching
control sequenece has been typed.

This prevent loosing inputs when a USB console keyboard is "too fast".

Fix a problem reported by matthieu@, Adam McDougall and Hrvoje Popovski.

ok stsp@, dlg@


# 1.3 10-May-2017 mpi

Make this compile with HIDKBD_DEBUG defined.


Revision tags: OPENBSD_6_1_BASE
# 1.2 11-Mar-2017 mpi

Introduce a new knob to force the first USB keyboard as console input.

By setting "machdep.forceukbd=1" you can now use your USB keyboard in
ddb(4) even if your BIOS emulates a pckbd(4).

ok tom@, kettenis@, deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.1 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


# 1.6 02-Nov-2020 tobhe

Enable brightness keys on powerbooks where the keyboard attaches as ukbd(4).

ok kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.5 30-May-2017 mpi

Use memmove() instead of memcpy(), buffers are overlapping.

From Coverity via NetBSD via miod@

ok claudio@, tedu@, deraadt@, krw@


# 1.4 12-May-2017 mpi

Introduce a new keyboard console hook to enter ddb(4) and make ukbd(4)
use it.

Instead of defering every input of a USB console keyboard to a timeout
via a queue of one element, only differ entering ddb(4) once a matching
control sequenece has been typed.

This prevent loosing inputs when a USB console keyboard is "too fast".

Fix a problem reported by matthieu@, Adam McDougall and Hrvoje Popovski.

ok stsp@, dlg@


# 1.3 10-May-2017 mpi

Make this compile with HIDKBD_DEBUG defined.


Revision tags: OPENBSD_6_1_BASE
# 1.2 11-Mar-2017 mpi

Introduce a new knob to force the first USB keyboard as console input.

By setting "machdep.forceukbd=1" you can now use your USB keyboard in
ddb(4) even if your BIOS emulates a pckbd(4).

ok tom@, kettenis@, deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.1 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


Revision tags: OPENBSD_6_2_BASE
# 1.5 30-May-2017 mpi

Use memmove() instead of memcpy(), buffers are overlapping.

From Coverity via NetBSD via miod@

ok claudio@, tedu@, deraadt@, krw@


# 1.4 12-May-2017 mpi

Introduce a new keyboard console hook to enter ddb(4) and make ukbd(4)
use it.

Instead of defering every input of a USB console keyboard to a timeout
via a queue of one element, only differ entering ddb(4) once a matching
control sequenece has been typed.

This prevent loosing inputs when a USB console keyboard is "too fast".

Fix a problem reported by matthieu@, Adam McDougall and Hrvoje Popovski.

ok stsp@, dlg@


# 1.3 10-May-2017 mpi

Make this compile with HIDKBD_DEBUG defined.


Revision tags: OPENBSD_6_1_BASE
# 1.2 11-Mar-2017 mpi

Introduce a new knob to force the first USB keyboard as console input.

By setting "machdep.forceukbd=1" you can now use your USB keyboard in
ddb(4) even if your BIOS emulates a pckbd(4).

ok tom@, kettenis@, deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.1 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi