Input: add keycodes for contextual AI usages (HUTRR119)
Subsystems (2)
PATCH 1/1 Input: add keycodes for contextual AI usages (HUTRR119)
HUTRR119 introduces new usages for keys intended to invoke AI agents based on the current context. These are useful with the increasing number of operating systems with integrated Large Language Models
Add new key definitions for KEY_ACTION_ON_SELECTION, KEY_CONTEXTUAL_INSERT and KEY_CONTEXTUAL_QUERY
--- drivers/hid/hid-debug.c | 6 ++++++ drivers/hid/hid-input.c | 3 +++ include/uapi/linux/input-event-codes.h | 4 ++++ 3 files changed, 13 insertions(+)
drivers/hid/hid-debug.c +6 -0
@@ -990,6 +990,9 @@ static const struct hid_usage_entry hid_usage_table[] = { { 0x0c, 0x01c9, "ALContactSync" }, { 0x0c, 0x01ca, "ALNavigation" }, { 0x0c, 0x01cb, "ALContextawareDesktopAssistant" }, + { 0x0c, 0x01cc, "ALActionOnSelection" }, + { 0x0c, 0x01cd, "ALContextualInsertion" }, + { 0x0c, 0x01ce, "ALContextualQuery" }, { 0x0c, 0x0200, "GenericGUIApplicationControls" }, { 0x0c, 0x0201, "ACNew" }, { 0x0c, 0x0202, "ACOpen" },
@@ -3375,6 +3378,9 @@ static const char *keys[KEY_MAX + 1] = { [KEY_BRIGHTNESS_MIN] = "BrightnessMin", [KEY_BRIGHTNESS_MAX] = "BrightnessMax", [KEY_BRIGHTNESS_AUTO] = "BrightnessAuto", + [KEY_ACTION_ON_SELECTION] = "ActionOnSelection", + [KEY_CONTEXTUAL_INSERT] = "ContextualInsert", + [KEY_CONTEXTUAL_QUERY] = "ContextualQuery", [KEY_KBDINPUTASSIST_PREV] = "KbdInputAssistPrev", [KEY_KBDINPUTASSIST_NEXT] = "KbdInputAssistNext", [KEY_KBDINPUTASSIST_PREVGROUP] = "KbdInputAssistPrevGroup",
drivers/hid/hid-input.c +3 -0
@@ -1227,6 +1227,9 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fielcase 0x1bc :map_key_clear (KEY_MESSENGER );break ;case 0x1bd :map_key_clear (KEY_INFO );break ;case 0x1cb :map_key_clear (KEY_ASSISTANT );break ; +case 0x1cc :map_key_clear (KEY_ACTION_ON_SELECTION );break ; +case 0x1cd :map_key_clear (KEY_CONTEXTUAL_INSERT );break ; +case 0x1ce :map_key_clear (KEY_CONTEXTUAL_QUERY );break ;case 0x201 :map_key_clear (KEY_NEW );break ;case 0x202 :map_key_clear (KEY_OPEN );break ;case 0x203 :map_key_clear (KEY_CLOSE );break ;
include/uapi/linux/input-event-codes.h +4 -0
@@ -643,6 +643,10 @@#define KEY_EPRIVACY_SCREEN_ON 0x252#define KEY_EPRIVACY_SCREEN_OFF 0x253 +#define KEY_ACTION_ON_SELECTION 0x254/* AL Action on Selection (HUTRR119) */ +#define KEY_CONTEXTUAL_INSERT 0x255/* AL Contextual Insertion (HUTRR119) */ +#define KEY_CONTEXTUAL_QUERY 0x256/* AL Contextual Query (HUTRR119) */ +#define KEY_KBDINPUTASSIST_PREV 0x260#define KEY_KBDINPUTASSIST_NEXT 0x261#define KEY_KBDINPUTASSIST_PREVGROUP 0x262
Signature · 1 line
2.53.0.1018.g2bb0e51243-goog
Quoted 8 lines · Akshai Murari
HUTRR119 introduces new usages for keys intended to invoke AI agents based on the current context. These are useful with the increasing number of operating systems with integrated Large Language Models
Add new key definitions for
KEY_ACTION_ON_SELECTION,KEY_CONTEXTUAL_INSERTandKEY_CONTEXTUAL_QUERYSigned-off-by Akshai Murari <[email protected]>
Jiri, Benjamin, how do you want to merge this?
Just in case:
Thanks.
Signature · 1 line
Dmitry
Jiri Kosina
maintainerQuoted 7 lines · Dmitry Torokhov
Quoted 7 lines
HUTRR119 introduces new usages for keys intended to invoke AI agents based on the current context. These are useful with the increasing number of operating systems with integrated Large Language Models
Add new key definitions for
KEY_ACTION_ON_SELECTION,KEY_CONTEXTUAL_INSERTandKEY_CONTEXTUAL_QUERY
Quoted 7 lines
Quoted 1 line
Signed-off-by Akshai Murari <[email protected]>Jiri, Benjamin, how do you want to merge this?
Just in case:
Acked-by Dmitry Torokhov <[email protected]>
Perfect, thanks a lot Dmitry. Now in hid.git#for-7.0/upstream-fixes.
Signature · 2 lines
Jiri Kosina SUSE Labs