amd-hid: add support for SW_TABLET_MODE
https://bugzilla.kernel.org/show_bug.cgi?id=211741
Andy Shevchenko ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] Component|IIO |Platform_x86 Assignee|[email protected] |drivers_platform_x86@kernel |nel.org |-bugs.osdl.org
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
--- Comment #1 from Luya Tshimbalanga ([email protected]) --- Here is the hardware information:
sudo dmidecode -s system-manufacturer
HP
sudo dmidecode -s system-product-name
HP ENVY x360 Convertible 15-cp0xxx
sudo dmidecode -s bios-version
F.48
It seems some modification inside
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/hp-wmi.c
is needed when using with the recently landed AMD Sensor Fusion Hub.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
--- Comment #3 from Luya Tshimbalanga ([email protected]) --- Latest kernel 5.12.9-300 disabled SW_TABLET_MODE on hp-wmi because it never worked at all due possible missing driver. The current status showed:
# EVEMU 1.3
# Kernel: 5.12.9-300.fc34.x86_64
# DMI:
dmi:bvnAMI:bvrF.48:bd11/26/2020:br15.48:efr92.48:svnHP:pnHPENVYx360Convertible15-cp0xxx:pvr:rvnHP:rn8497:rvr92.48:cvnHP:ct31:cvrChassisVersion:
# Input device name: "HP WMI hotkeys"
# Input device ID: bus 0x19 vendor 0000 product 0000 version 0000
# Supported events:
# Event type 0 (EV_SYN)
# Event code 0 (SYN_REPORT) # Event code 1 (SYN_CONFIG) # Event code 2 (SYN_MT_REPORT) # Event code 3 (SYN_DROPPED) # Event code 4 ((null)) # Event code 5 ((null)) # Event code 6 ((null)) # Event code 7 ((null)) # Event code 8 ((null)) # Event code 9 ((null)) # Event code 10 ((null)) # Event code 11 ((null)) # Event code 12 ((null)) # Event code 13 ((null)) # Event code 14 ((null)) # Event code 15 (SYN_MAX) # Event type 1 (EV_KEY) # Event code 138 (KEY_HELP) # Event code 141 (KEY_SETUP) # Event code 148 (KEY_PROG1) # Event code 153 (KEY_ROTATE_DISPLAY) # Event code 224 (KEY_BRIGHTNESSDOWN) # Event code 225 (KEY_BRIGHTNESSUP) # Event code 226 (KEY_MEDIA) # Event code 240 (KEY_UNKNOWN) # Event code 358 (KEY_INFO)
# Event type 4 (EV_MSC)
# Event code 4 (MSC_SCAN)
# Event type 5 (EV_SW)
# Event code 5 (SW_DOCK)
# State 0
The bug still remains as the keyboard still works even on tablet mode. Ideally, it should be disabled at that mode while the touchscreen remains active.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
--- Comment #4 from Luya Tshimbalanga ([email protected]) --- See the linked showing that SW_TABLET_MODE never worked with hp-wmi and why it was disabled in kernel 5.11.x for the time being:
https://bugzilla.redhat.com/show_bug.cgi?id=1651886#c44
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
Andy Shevchenko ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] | |g
--- Comment #5 from Andy Shevchenko ([email protected]) --- Add Hans to the Cc list, he made a lot of work on different laptops to make SW_TABLET_MODE working.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
Mario Limonciello (AMD) ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
CC| |[email protected]--- Comment #6 from Mario Limonciello (AMD) ([email protected]) --- I'd expect that this is actually fixed now in 5.18 or later by this commit:
520ee4ea1cc6 ("platform/x86: hp-wmi: Fix SW_TABLET_MODE detection method")
Can you please recheck on a kernel containing that?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
--- Comment #7 from Luya Tshimbalanga ([email protected]) --- Unfortunately, I have no longer a HP Envy x360 for testing anymore. It is replaced by a Dell Inspiron 14 7425 2-in-1 Ryzen 7 5825U.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
Mario Limonciello (AMD) ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |REJECTED
Resolution|--- |INSUFFICIENT_DATASignature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
--- Comment #8 from Mario Limonciello (AMD) ([email protected]) --- Okay, I'll close this then, thanks.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #9 from [email protected] ---
I can confirm that this bug still persists in kernel 6.0 so the path submitted in 5.18 didn't work for at least my HP envy x360. The only thing that changed since that patch is now that when running evtest the SW_TABLET_MODE shows up as an input device but the event never triggers when putting the device in tablet mode.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
Mario Limonciello (AMD) ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REJECTED |REOPENED
Resolution|INSUFFICIENT_DATA |---Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
Firnin ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |7ec0436c-7844-4c81-b72c-b80
| |[email protected]--- Comment #10 from Firnin ([email protected]) --- I can confirm that this bug is still present in kernel 6.1. SW_TABLET_MODE does show up as an input device, but never triggers an event.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
André ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #11 from André ([email protected]) --- Still a thing in 2025.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
--- Comment #12 from Mario Limonciello (AMD) ([email protected]) --- Can you please try this patch?
https://lore.kernel.org/linux-input/[email protected]/
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
Anton Kraft ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |linux-kernel-bugzilla@akraf
| |t.org--- Comment #13 from Anton Kraft ([email protected]) --- I built a kernel with your patch and it works now. The only thing i noticed is that it takes up to a few seconds (1-2) to switch modes (On my Thinkpad X390 Yoga (Intel Based) it switches nearly instantly).
Tested it with a ThinkPad L13 Yoga Gen 2 (AMD).
System Information
Manufacturer: LENOVO
Product Name: 21AD000EUK
Family: ThinkPad L13 Yoga Gen 2a
Thanks a lot for your patch
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=211741
Mario Limonciello (AMD) ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |PATCH_ALREADY_AVAILABLESignature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.