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:
Mohamed Jouini 2026-10-08 14:56:24 +01:00 committed by Ilpo Järvinen
parent 450d249593
commit ce1ad174ca
No known key found for this signature in database
GPG Key ID: 59AC4F6153E5CE31
2 changed files with 6 additions and 0 deletions

View File

@ -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 }
};

View File

@ -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;