linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input: i8042: Add ASUS Zenbook Flip to noselftest list
@ 2021-02-19 16:46 Marcos Paulo de Souza
  2021-02-19 18:37 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Marcos Paulo de Souza @ 2021-02-19 16:46 UTC (permalink / raw)
  To: dmitry.torokhov; +Cc: linux-input, Marcos Paulo de Souza

After commit 77b425399f6d ("Input: i8042 - use chassis info to skip
selftest on Asus laptops"), all modern Asus laptops have the i8042
selftest disabled. It has done by using chassys type "10" (laptop).

The Asus Zenbook Flip suffers from similar suspend/resume issues, but
it _sometimes_ work and sometimes it doesn't. Setting noselftest makes
it work reliably. In this case, we need to add chassis type "31"
(convertible) in order to avoid selftest in this device.

#Reported-by: Ludvig Norgren Guldhag <ludvigng@gmail.com>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
---

 Dmitry, it seems that other laptops also report chassis type == 31 for
 convertible, like some HPs and other Asus convertible models. What do you
 think about it?

 drivers/input/serio/i8042-x86ia64io.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
index c74b020796a9..9119e12a5778 100644
--- a/drivers/input/serio/i8042-x86ia64io.h
+++ b/drivers/input/serio/i8042-x86ia64io.h
@@ -588,6 +588,10 @@ static const struct dmi_system_id i8042_dmi_noselftest_table[] = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
 			DMI_MATCH(DMI_CHASSIS_TYPE, "10"), /* Notebook */
 		},
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_CHASSIS_TYPE, "31"), /* Convertible Notebook */
+		},
 	},
 	{ }
 };
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Input: i8042: Add ASUS Zenbook Flip to noselftest list
  2021-02-19 16:46 [PATCH] Input: i8042: Add ASUS Zenbook Flip to noselftest list Marcos Paulo de Souza
@ 2021-02-19 18:37 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2021-02-19 18:37 UTC (permalink / raw)
  To: Marcos Paulo de Souza; +Cc: linux-input

On Fri, Feb 19, 2021 at 01:46:38PM -0300, Marcos Paulo de Souza wrote:
> After commit 77b425399f6d ("Input: i8042 - use chassis info to skip
> selftest on Asus laptops"), all modern Asus laptops have the i8042
> selftest disabled. It has done by using chassys type "10" (laptop).
> 
> The Asus Zenbook Flip suffers from similar suspend/resume issues, but
> it _sometimes_ work and sometimes it doesn't. Setting noselftest makes
> it work reliably. In this case, we need to add chassis type "31"
> (convertible) in order to avoid selftest in this device.
> 
> #Reported-by: Ludvig Norgren Guldhag <ludvigng@gmail.com>
> Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>

Applied, thank you.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-19 18:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19 16:46 [PATCH] Input: i8042: Add ASUS Zenbook Flip to noselftest list Marcos Paulo de Souza
2021-02-19 18:37 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).