From: Mario Limonciello <mario.limonciello@amd.com>
To: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>,
Hans de Goede <hdegoede@redhat.com>,
Carsten Hatger <xmb8dsv4@gmail.com>,
linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org,
Jorge Lopez <jorgealtxwork@gmail.com>
Subject: Re: RFI: Tablet mode support on HP Pro x360 435 G9 w/ AMD Ryzen 7 5825U
Date: Mon, 13 Feb 2023 08:06:21 -0600 [thread overview]
Message-ID: <ac5f2aa2-e1fb-5335-12f3-9616fb294bc8@amd.com> (raw)
In-Reply-To: <79e4b25a-2b45-e21d-e4a2-f886204d8300@amd.com>
On 2/13/23 08:04, Shyam Sundar S K wrote:
>
> On 2/13/2023 6:01 PM, Hans de Goede wrote:
>> Hi Carsten,
>>
>> On 2/13/23 11:43, Carsten Hatger wrote:
>>> Dear all,
>>>
>>> I'd like to have tablet mode support on my system, probably by means
>>> an linux input device such as implemented in the intel platform
>>> specific driver drivers/platform/x86/intel/vbtn.c [0]
>>>
>>> In the end I hope GNOME eventually to rotate the systems display and
>>> to show some virtual keyboard (upon users request), cf. for [3]
>>>
>>> It appears there has already been a patch proposed by the chromium
>>> team to support device PNP0C60 [1] but not merged to [5].
Does your system support a PNP0C60 device?
Or you're just mentioning this patch existed?
It might be useful to look at an acpidump.
>>> Since the system of interest is a HP Probook, there is already a
>>> driver providing virtual buttons,namely hp-wmi [6]. However, the
>>> driver loads probes and loads successfully but doesn't provide any
>>> additional functionality plus some non critical errors on incorrect
>>> ACPI method calls.
>>>
>>> I've noticed AMD has started to provide platform specific driver(s)
>>> such as pmf [2].
> PMF is meant for power and thermal management.
>
> To my knowledge there is no support for CEZANNE/green
>>> sardine based systems (yet).
>>>
>>> What would be recommended practice and subsystem/folder to provide
>>> such capability by means of a (platform specific) driver? At least the
>>> CID PNP0C60 seems to be held by Microsoft [4] and thus be common to
>>> both amd and intel platforms [4]. However, HID INT33D6 is held by
>>> Intel and HID AMDI0081 by AMD. Yet I'm not quite sure if
> IIRC, AMDI0081 is used by SFH driver as UMDF sensor class extension
> driver[1][2], but on Linux we have implemented it as HID based driver
> and is a single driver.
>
>
>>> iio-sensor-proxy [7] needs to be involved, too.
> you mean to say, amd_sfh driver is not switching to tablet mode?
>
> Thanks,
> Shyam
>
> [1]
> https://github.com/MicrosoftDocs/windows-driver-docs/blob/staging/windows-driver-docs-pr/sensors/overview-of-converged-sensor-driver-model.md
>
> [2]
> https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/continuum
>
>> The first thing to do here is to figure out which (ACPI) device
>> is the right device to get the SW_TABLET_MODE events from on this
>> device.
>>
>> Maybe Jorge (added to the Cc) can help with this ?
>>
>> Regards,
>>
>> Hans
>>
>>
>>
>>
>>> [0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/intel/vbtn.c?h=v6.2-rc8
>>> [1] https://lore.kernel.org/lkml/1472628817-3145-1-git-send-email-wnhuang@google.com/
>>> [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/amd/pmf?h=v6.2-rc8
>>> [3] https://gitlab.gnome.org/GNOME/mutter/-/issues/1760
>>> [4] https://learn.microsoft.com/en-us/windows-hardware/drivers/gpiobtn/button-implementation
>>> [5] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/acpi/button.c?h=v6.2-rc8
>>> [6] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/hp/hp-wmi.c?h=v6.2-rc8
>>> [7] https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/
>>>
next prev parent reply other threads:[~2023-02-13 14:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-13 10:43 RFI: Tablet mode support on HP Pro x360 435 G9 w/ AMD Ryzen 7 5825U Carsten Hatger
2023-02-13 12:31 ` Hans de Goede
2023-02-13 14:04 ` Shyam Sundar S K
2023-02-13 14:06 ` Mario Limonciello [this message]
2023-02-14 20:26 ` Jorge Lopez
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=ac5f2aa2-e1fb-5335-12f3-9616fb294bc8@amd.com \
--to=mario.limonciello@amd.com \
--cc=Shyam-sundar.S-k@amd.com \
--cc=hdegoede@redhat.com \
--cc=jorgealtxwork@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=xmb8dsv4@gmail.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