mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
platform/x86: uniwill-laptop: Map the screen rotation key
The PCSpecialist Recoil 16 AMD / TUXEDO Stellaris 16 Gen7 chassis has an "Sc" key next to F12, meant to rotate the lay-flat screen by 180 degrees. It reports WMI event 0xD0, which is currently reported as KEY_UNKNOWN. Map it to KEY_ROTATE_DISPLAY. Signed-off-by: Mohamed Jouini <amad3v@gmail.com> Reviewed-by: Armin Wolf <W_Armin@gmx.de> Link: https://patch.msgid.link/20261008135624.3520849-3-amad3v@gmail.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
This commit is contained in:
parent
450d249593
commit
ce1ad174ca
|
|
@ -506,6 +506,9 @@ static const struct key_entry uniwill_keymap[] = {
|
|||
/* Reported when the user wants to toggle the webcam */
|
||||
{ KE_IGNORE, UNIWILL_OSD_WEBCAM_TOGGLE, { KEY_UNKNOWN }},
|
||||
|
||||
/* Reported when the user wants to rotate the (lay-flat) screen by 180 degrees */
|
||||
{ KE_KEY, UNIWILL_OSD_ROTATE_SCREEN, { KEY_ROTATE_DISPLAY }},
|
||||
|
||||
{ KE_END }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -117,6 +117,9 @@
|
|||
|
||||
#define UNIWILL_OSD_WEBCAM_TOGGLE 0xCF
|
||||
|
||||
/* "Sc" key next to F12 on the PCSpecialist Recoil 16 / Stellaris 16 Gen7 */
|
||||
#define UNIWILL_OSD_ROTATE_SCREEN 0xD0
|
||||
|
||||
#define UNIWILL_OSD_KBD_BACKLIGHT_CHANGED 0xF0
|
||||
|
||||
struct device;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user