mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoffer Sandberg <cs@tuxedo.de>
To: Werner Sembach <wse@tuxedocomputers.com>
Cc: "Armin Wolf" <W_Armin@gmx.de>,
	"Mohamed Jouini" <amad3v@gmail.com>,
	"Hans de Goede" <hansg@kernel.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] platform/x86: uniwill-laptop: Map the screen rotation key
Date: Thu, 01 Oct 2026 11:01:33 +0200	[thread overview]
Message-ID: <66a47248ecfa1704186274f2c245d3f5@tuxedo.de> (raw)
In-Reply-To: <263ec1ec-181a-4f96-92f4-25674559e961@tuxedocomputers.com>



On 30.9.2026 01:22, Werner Sembach wrote:
> Am 26.09.26 um 01:52 schrieb Armin Wolf:
>> Am 25.09.26 um 23:16 schrieb Mohamed Jouini:
>> 
>>> 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.
>> 
>> Unless Tuxedo know more about this event code:
> don't have the device at hand so pulled christoffer in the loop

As far as I know we do not have any device with this mapping. So, no 
objection ;)

>> 
>> Reviewed-by: Armin Wolf <W_Armin@gmx.de>
>> 
>>> Signed-off-by: Mohamed Jouini <amad3v@gmail.com>
>>> ---
>>>   drivers/platform/x86/uniwill/uniwill-acpi.c | 3 +++
>>>   drivers/platform/x86/uniwill/uniwill-wmi.h  | 3 +++
>>>   2 files changed, 6 insertions(+)
>>> 
>>> diff --git a/drivers/platform/x86/uniwill/uniwill-acpi.c 
>>> b/drivers/platform/x86/uniwill/uniwill-acpi.c
>>> index 0932e5937..f99c5e9ac 100644
>>> --- a/drivers/platform/x86/uniwill/uniwill-acpi.c
>>> +++ b/drivers/platform/x86/uniwill/uniwill-acpi.c
>>> @@ -519,6 +519,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 }
>>>   };
>>>   diff --git a/drivers/platform/x86/uniwill/uniwill-wmi.h 
>>> b/drivers/platform/x86/uniwill/uniwill-wmi.h
>>> index b25b2f312..1b6f650c4 100644
>>> --- a/drivers/platform/x86/uniwill/uniwill-wmi.h
>>> +++ b/drivers/platform/x86/uniwill/uniwill-wmi.h
>>> @@ -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;

      reply	other threads:[~2026-10-01  9:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-25 21:16 [PATCH 0/3] platform/x86: uniwill-laptop: Support the PCSpecialist Recoil 16 AMD Mohamed Jouini
2026-09-25 21:16 ` [PATCH 1/3] platform/x86: uniwill-laptop: Add " Mohamed Jouini
2026-09-25 23:44   ` Armin Wolf
2026-09-26  0:24     ` Am Dev
2026-09-25 21:16 ` [PATCH 2/3] platform/x86: uniwill-laptop: Add platform profile support Mohamed Jouini
2026-09-25 23:54   ` Armin Wolf
2026-09-26  0:33     ` Am Dev
2026-09-25 21:16 ` [PATCH 3/3] platform/x86: uniwill-laptop: Map the screen rotation key Mohamed Jouini
2026-09-25 23:52   ` Armin Wolf
2026-09-29 23:22     ` Werner Sembach
2026-10-01  9:01       ` Christoffer Sandberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66a47248ecfa1704186274f2c245d3f5@tuxedo.de \
    --to=cs@tuxedo.de \
    --cc=W_Armin@gmx.de \
    --cc=amad3v@gmail.com \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=wse@tuxedocomputers.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®