Skip to contentSkip to conversation

input: Add keycodes used by Lenovo Carbon X1 2014

PATCH In review Bastien Nocera 3 participants 5 messages Feb 20, 2015 – Feb 24, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 5/7 input: Add keycodes used by Lenovo Carbon X1 2014

---
 include/uapi/linux/input.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/uapi/linux/input.h +10 -0
index b0a8130..affe40e 100644
@@ -740,6 +740,16 @@ struct input_keymap_entry {
 #define KEY_BRIGHTNESS_MIN		0x250	/* Set Brightness to Minimum */
 #define KEY_BRIGHTNESS_MAX		0x251	/* Set Brightness to Maximum */
 
+#define KEY_CLIPPING_TOOL		0x252	/* Screenshot clipping tool */
+#define KEY_CLOUD			0x253	/* Cloud Settings */
+#define KEY_CAMERA_GESTURES		0x254	/* Toggle Camera gestures */
+#define KEY_NEW_TAB			0x255	/* Open a new tab */
+#define KEY_MICUP			0x256	/* Microphone Up */
+#define KEY_MICDOWN			0x257	/* Microphone Down */
+#define KEY_MICCANCEL_MODE		0x258	/* Toggle Microphone cancellation mode */
+#define KEY_CAMERA_ZOOM_MODE		0x259	/* Toggle camera zoom mode */
+#define KEY_ROTATE_DISPLAY		0x25a	/* Rotate screen by 90 degrees */
+
 #define KEY_KBDINPUTASSIST_PREV		0x260
 #define KEY_KBDINPUTASSIST_NEXT		0x261
 #define KEY_KBDINPUTASSIST_PREVGROUP		0x262
Signature · 1 line
2.1.0
#1 lore raw
Quoted 13 lines · Bastien Nocera
---
 include/uapi/linux/input.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/uapi/linux/input.h +0 -0
index b0a8130..affe40e 100644
@@ -740,6 +740,16 @@ struct input_keymap_entry {
 #define KEY_BRIGHTNESS_MIN             0x250   /* Set Brightness to Minimum */
 #define KEY_BRIGHTNESS_MAX             0x251   /* Set Brightness to Maximum */
 

include/uapi/linux/input.h struct input_keymap_entry { · line 752

Quoted 10 lines
include/uapi/linux/input.h +10 -0
+#define KEY_CLIPPING_TOOL              0x252   /* Screenshot clipping tool */
+#define KEY_CLOUD                      0x253   /* Cloud Settings */
+#define KEY_CAMERA_GESTURES            0x254   /* Toggle Camera gestures */
+#define KEY_NEW_TAB                    0x255   /* Open a new tab */
+#define KEY_MICUP                      0x256   /* Microphone Up */
+#define KEY_MICDOWN                    0x257   /* Microphone Down */
+#define KEY_MICCANCEL_MODE             0x258   /* Toggle Microphone cancellation mode */
+#define KEY_CAMERA_ZOOM_MODE           0x259   /* Toggle camera zoom mode */
+#define KEY_ROTATE_DISPLAY             0x25a   /* Rotate screen by 90 degrees */
+

This one should be acked by Dmitry (in CC)

Cheers,
Benjamin

Quoted 11 lines
include/uapi/linux/input.h +0 -1
 #define KEY_KBDINPUTASSIST_PREV                0x260
 #define KEY_KBDINPUTASSIST_NEXT                0x261
 #define KEY_KBDINPUTASSIST_PREVGROUP           0x262
--

2.1.0

--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#2 lore raw
Quoted 14 lines · Benjamin Tissoires
Quoted 13 lines · Bastien Nocera
---
 include/uapi/linux/input.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/uapi/linux/input.h +0 -0
index b0a8130..affe40e 100644
@@ -740,6 +740,16 @@ struct input_keymap_entry {
 #define KEY_BRIGHTNESS_MIN             0x250   /* Set Brightness to Minimum */
 #define KEY_BRIGHTNESS_MAX             0x251   /* Set Brightness to Maximum */
 
Quoted 1 line

include/uapi/linux/input.h struct input_keymap_entry { · line 743

Quoted 1 line
include/uapi/linux/input.h +1 -0
+#define KEY_CLIPPING_TOOL              0x252   /* Screenshot clipping tool */

Do we have users for this?

Quoted 1 line

include/uapi/linux/input.h struct input_keymap_entry { · line 744

Quoted 1 line
include/uapi/linux/input.h +1 -0
+#define KEY_CLOUD                      0x253   /* Cloud Settings */

Just no. What is cloud settings? Use KEY_VENDOR if you must for this vendor "added value" junk they come up on keyboards year after year. It used to be WWW, not cloud, I bet in 2016 someone will come up with "IoT"-dedicated key.

Quoted 11 lines

include/uapi/linux/input.h struct input_keymap_entry { · line 752

Quoted 8 lines
include/uapi/linux/input.h +8 -0
+#define KEY_CAMERA_GESTURES            0x254   /* Toggle Camera gestures */
+#define KEY_NEW_TAB                    0x255   /* Open a new tab */
+#define KEY_MICUP                      0x256   /* Microphone Up */
+#define KEY_MICDOWN                    0x257   /* Microphone Down */
+#define KEY_MICCANCEL_MODE             0x258   /* Toggle Microphone cancellation mode */
+#define KEY_CAMERA_ZOOM_MODE           0x259   /* Toggle camera zoom mode */
+#define KEY_ROTATE_DISPLAY             0x25a   /* Rotate screen by 90 degrees */
+

This one should be acked by Dmitry (in CC)

Some of these (like microphone volume up/down) are generic and reasonable, but I need to know if there will be any users for these newly defined keys.

Thanks.

Signature · 1 line
Dmitry
#3 lore raw

Hey Dmitry,

Quoted 15 lines · Dmitry Torokhov
Quoted 14 lines · Benjamin Tissoires
Quoted 13 lines · Bastien Nocera
---
 include/uapi/linux/input.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/uapi/linux/input.h +0 -0
index b0a8130..affe40e 100644
@@ -740,6 +740,16 @@ struct input_keymap_entry {
 #define KEY_BRIGHTNESS_MIN             0x250   /* Set Brightness to Minimum */
 #define KEY_BRIGHTNESS_MAX             0x251   /* Set Brightness to Maximum */
 
Quoted 3 lines
Quoted 1 line

include/uapi/linux/input.h struct input_keymap_entry { · line 743

Quoted 1 line
include/uapi/linux/input.h +1 -0
+#define KEY_CLIPPING_TOOL              0x252   /* Screenshot clipping tool */

Do we have users for this?

Bearing in mind that most of those keys won't be usable in X11, but should be in Wayland, it might take a little while to actually get used, but I would add support for this "clipping tool" key in GNOME. Most likely to start a screenshoting tool in selection mode.

Quoted 5 lines
Quoted 1 line

include/uapi/linux/input.h struct input_keymap_entry { · line 744

Quoted 1 line
include/uapi/linux/input.h +1 -0
+#define KEY_CLOUD                      0x253   /* Cloud Settings */

Just no. What is cloud settings? Use KEY_VENDOR if you must for this vendor "added value" junk they come up on keyboards year after year. It used to be WWW, not cloud, I bet in 2016 someone will come up with "IoT"-dedicated key.

The button actually looks like a Cloud, see page 46 of this guide:
http://www.lenovo.com/shop/americas/content/user_guides/x1carbon_2_ug_en.pdf

In GNOME, I would make this start the "Online Accounts" configuration. I'm fine with renaming it, but I would prefer something more precise than KEY_VENDOR. KEY_WWW would be fine by me.

Quoted 1 line
Quoted 1 line

include/uapi/linux/input.h struct input_keymap_entry { · line 745

Quoted 1 line
include/uapi/linux/input.h +1 -0
+#define KEY_CAMERA_GESTURES            0x254   /* Toggle Camera gestures */

This wouldn't get used directly in GNOME.

Quoted 1 line
Quoted 1 line

include/uapi/linux/input.h struct input_keymap_entry { · line 746

Quoted 1 line
include/uapi/linux/input.h +1 -0
+#define KEY_NEW_TAB                    0x255   /* Open a new tab */

This would get used.

Quoted 2 lines
Quoted 2 lines

include/uapi/linux/input.h struct input_keymap_entry { · line 748

Quoted 2 lines
include/uapi/linux/input.h +2 -0
+#define KEY_MICUP                      0x256   /* Microphone Up */
+#define KEY_MICDOWN                    0x257   /* Microphone Down */

Those would get used as well.

Quoted 2 lines
Quoted 2 lines

include/uapi/linux/input.h struct input_keymap_entry { · line 750

Quoted 2 lines
include/uapi/linux/input.h +2 -0
+#define KEY_MICCANCEL_MODE             0x258   /* Toggle Microphone cancellation mode */
+#define KEY_CAMERA_ZOOM_MODE           0x259   /* Toggle camera zoom mode */

These 2 wouldn't get used directly in GNOME.

Quoted 8 lines
Quoted 5 lines

include/uapi/linux/input.h struct input_keymap_entry { · line 752

Quoted 2 lines
include/uapi/linux/input.h +2 -0
+#define KEY_ROTATE_DISPLAY             0x25a   /* Rotate screen by 90 degrees */
+

This one should be acked by Dmitry (in CC)

Some of these (like microphone volume up/down) are generic and reasonable, but I need to know if there will be any users for these newly defined keys.

Answers to this in-line above. I'm fine with replacing the keycodes for those keys with something that more or less corresponds to the pictograms, especially the "Toggle voice-recognition" and "Toggle camera-gestures function" are present in all the keyboard modes.

Cheers

#4 lore raw
Quoted 64 lines · Bastien Nocera

Hey Dmitry,

Quoted 15 lines · Dmitry Torokhov
Quoted 14 lines · Benjamin Tissoires
Quoted 13 lines · Bastien Nocera
---
 include/uapi/linux/input.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/uapi/linux/input.h +0 -0
index b0a8130..affe40e 100644
@@ -740,6 +740,16 @@ struct input_keymap_entry {
 #define KEY_BRIGHTNESS_MIN             0x250   /* Set Brightness to Minimum */
 #define KEY_BRIGHTNESS_MAX             0x251   /* Set Brightness to Maximum */
 
Quoted 3 lines
Quoted 1 line

include/uapi/linux/input.h struct input_keymap_entry { · line 743

Quoted 1 line
include/uapi/linux/input.h +1 -0
+#define KEY_CLIPPING_TOOL              0x252   /* Screenshot clipping tool */

Do we have users for this?

Bearing in mind that most of those keys won't be usable in X11, but should be in Wayland, it might take a little while to actually get used, but I would add support for this "clipping tool" key in GNOME. Most likely to start a screenshoting tool in selection mode.

Quoted 5 lines
Quoted 1 line

include/uapi/linux/input.h struct input_keymap_entry { · line 744

Quoted 1 line
include/uapi/linux/input.h +1 -0
+#define KEY_CLOUD                      0x253   /* Cloud Settings */

Just no. What is cloud settings? Use KEY_VENDOR if you must for this vendor "added value" junk they come up on keyboards year after year. It used to be WWW, not cloud, I bet in 2016 someone will come up with "IoT"-dedicated key.

The button actually looks like a Cloud, see page 46 of this guide:
http://www.lenovo.com/shop/americas/content/user_guides/x1carbon_2_ug_en.pdf

In GNOME, I would make this start the "Online Accounts" configuration. I'm fine with renaming it, but I would prefer something more precise than KEY_VENDOR. KEY_WWW would be fine by me.

Quoted 1 line
Quoted 1 line

include/uapi/linux/input.h struct input_keymap_entry { · line 745

Quoted 1 line
include/uapi/linux/input.h +1 -0
+#define KEY_CAMERA_GESTURES            0x254   /* Toggle Camera gestures */

This wouldn't get used directly in GNOME.

Quoted 1 line
Quoted 1 line

include/uapi/linux/input.h struct input_keymap_entry { · line 746

Quoted 1 line
include/uapi/linux/input.h +1 -0
+#define KEY_NEW_TAB                    0x255   /* Open a new tab */

This would get used.

Quoted 2 lines
Quoted 2 lines

include/uapi/linux/input.h struct input_keymap_entry { · line 748

Quoted 2 lines
include/uapi/linux/input.h +2 -0
+#define KEY_MICUP                      0x256   /* Microphone Up */
+#define KEY_MICDOWN                    0x257   /* Microphone Down */

Those would get used as well.

Quoted 2 lines
Quoted 2 lines

include/uapi/linux/input.h struct input_keymap_entry { · line 750

Quoted 2 lines
include/uapi/linux/input.h +2 -0
+#define KEY_MICCANCEL_MODE             0x258   /* Toggle Microphone cancellation mode */
+#define KEY_CAMERA_ZOOM_MODE           0x259   /* Toggle camera zoom mode */

These 2 wouldn't get used directly in GNOME.

Quoted 6 lines
Quoted 5 lines

include/uapi/linux/input.h struct input_keymap_entry { · line 752

Quoted 2 lines
include/uapi/linux/input.h +2 -0
+#define KEY_ROTATE_DISPLAY             0x25a   /* Rotate screen by 90 degrees */
+

This one should be acked by Dmitry (in CC)

Quoted 7 lines
Quoted 2 lines

Some of these (like microphone volume up/down) are generic and reasonable, but I need to know if there will be any users for these newly defined keys.

Answers to this in-line above. I'm fine with replacing the keycodes for those keys with something that more or less corresponds to the pictograms, especially the "Toggle voice-recognition" and "Toggle camera-gestures function" are present in all the keyboard modes.

Any more ideas about which keycodes I should add and which ones I should replace?