* Re: [PATCH] Input: psmouse - add resync_on_resume dmi check [not found] ` <CALNJtpWwhen2H9OT1-rZ4bt+huwXPOPz6qVDJ5g+emE1wRSLsw@mail.gmail.com> @ 2024-03-07 18:29 ` Dmitry Torokhov 2024-08-05 14:18 ` Hans de Goede 0 siblings, 1 reply; 5+ messages in thread From: Dmitry Torokhov @ 2024-03-07 18:29 UTC (permalink / raw) To: Jonathan Denose Cc: LKML, jefferymiller, Jonathan Denose, Raul Rangel, linux-input, Ike Panhc, Hans de Goede, platform-driver-x86 On Mon, Mar 04, 2024 at 11:17:31AM -0600, Jonathan Denose wrote: > I disabled the ideapad driver by rebuilding the kernel without the > ideapad_laptop module. That does fix the suspend/resume issue! > > Attached are the logs. Is there a way to make this permanent? > > On Thu, Feb 29, 2024 at 12:23 PM Dmitry Torokhov > <dmitry.torokhov@gmail.com> wrote: > > > > On Mon, Feb 12, 2024 at 02:57:08PM -0600, Jonathan Denose wrote: > > ... > > > [ 50.241235] ideapad_acpi VPC2004:00: PM: calling acpi_subsys_resume+0x0/0x5d @ 4492, parent: PNP0C09:00 > > > [ 50.242055] snd_hda_intel 0000:00:0e.0: PM: pci_pm_resume+0x0/0xed returned 0 after 13511 usecs > > > [ 50.242120] snd_hda_codec_realtek hdaudioC0D0: PM: calling hda_codec_pm_resume+0x0/0x19 [snd_hda_codec] @ 4518, parent: 0000:00:0e.0 > > > [ 50.247406] i8042: [49434] a8 -> i8042 (command) > > > [ 50.247468] ideapad_acpi VPC2004:00: PM: acpi_subsys_resume+0x0/0x5d returned 0 after 6220 usecs > > ... > > > [ 50.247883] i8042 kbd 00:01: PM: calling pnp_bus_resume+0x0/0x9d @ 4492, parent: pnp0 > > > [ 50.247894] i8042 kbd 00:01: PM: pnp_bus_resume+0x0/0x9d returned 0 after 0 usecs > > > [ 50.247906] i8042 aux 00:02: PM: calling pnp_bus_resume+0x0/0x9d @ 4492, parent: pnp0 > > > [ 50.247916] i8042 aux 00:02: PM: pnp_bus_resume+0x0/0x9d returned 0 after 0 usecs > > ... > > > [ 50.248301] i8042 i8042: PM: calling platform_pm_resume+0x0/0x41 @ 4492, parent: platform > > > [ 50.248377] i8042: [49434] 55 <- i8042 (flush, kbd) > > > [ 50.248407] i8042: [49435] aa -> i8042 (command) > > > [ 50.248601] i8042: [49435] 00 <- i8042 (return) > > > [ 50.248604] i8042: [49435] i8042 controller selftest: 0x0 != 0x55 > > > > So here I see the ideapad-laptop driver trying to access i8042 before it > > even starts resuming. I wonder, does it help if you disable > > (temporarily) the ideapad driver? OK, so I tried to cook up a patch that would allow ideapad-laptop driver to establish device link with i8042 so that the resume will be processed after i8042 resumes, but the longer I think about it, the more I think that ideapad driver should not be messing with the touchpad state directly. The disable event may come up in a middle of the touchpad resume transition, or when we decide to change touchpad mode for one reason or another. It also does not respect inhibit/uninhibit controls for input devices. I think that the proper way for ideapad driver to handle this is to only send KEY_TOUCHPAD_OFF/KEY_TOUCHPAD_ON to userspace and let userspace deal with toggling touchpad input (via inhibit or by other means). CC-ing ideapad maintainers for their thoughts. Thanks. -- Dmitry ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Input: psmouse - add resync_on_resume dmi check 2024-03-07 18:29 ` [PATCH] Input: psmouse - add resync_on_resume dmi check Dmitry Torokhov @ 2024-08-05 14:18 ` Hans de Goede 2024-08-05 16:52 ` Dmitry Torokhov 0 siblings, 1 reply; 5+ messages in thread From: Hans de Goede @ 2024-08-05 14:18 UTC (permalink / raw) To: Dmitry Torokhov, Jonathan Denose Cc: LKML, jefferymiller, Jonathan Denose, Raul Rangel, linux-input, Ike Panhc, platform-driver-x86 Hi Dmitry, On 3/7/24 7:29 PM, Dmitry Torokhov wrote: > On Mon, Mar 04, 2024 at 11:17:31AM -0600, Jonathan Denose wrote: >> I disabled the ideapad driver by rebuilding the kernel without the >> ideapad_laptop module. That does fix the suspend/resume issue! >> >> Attached are the logs. Is there a way to make this permanent? >> >> On Thu, Feb 29, 2024 at 12:23 PM Dmitry Torokhov >> <dmitry.torokhov@gmail.com> wrote: >>> >>> On Mon, Feb 12, 2024 at 02:57:08PM -0600, Jonathan Denose wrote: >>> ... >>>> [ 50.241235] ideapad_acpi VPC2004:00: PM: calling acpi_subsys_resume+0x0/0x5d @ 4492, parent: PNP0C09:00 >>>> [ 50.242055] snd_hda_intel 0000:00:0e.0: PM: pci_pm_resume+0x0/0xed returned 0 after 13511 usecs >>>> [ 50.242120] snd_hda_codec_realtek hdaudioC0D0: PM: calling hda_codec_pm_resume+0x0/0x19 [snd_hda_codec] @ 4518, parent: 0000:00:0e.0 >>>> [ 50.247406] i8042: [49434] a8 -> i8042 (command) >>>> [ 50.247468] ideapad_acpi VPC2004:00: PM: acpi_subsys_resume+0x0/0x5d returned 0 after 6220 usecs >>> ... >>>> [ 50.247883] i8042 kbd 00:01: PM: calling pnp_bus_resume+0x0/0x9d @ 4492, parent: pnp0 >>>> [ 50.247894] i8042 kbd 00:01: PM: pnp_bus_resume+0x0/0x9d returned 0 after 0 usecs >>>> [ 50.247906] i8042 aux 00:02: PM: calling pnp_bus_resume+0x0/0x9d @ 4492, parent: pnp0 >>>> [ 50.247916] i8042 aux 00:02: PM: pnp_bus_resume+0x0/0x9d returned 0 after 0 usecs >>> ... >>>> [ 50.248301] i8042 i8042: PM: calling platform_pm_resume+0x0/0x41 @ 4492, parent: platform >>>> [ 50.248377] i8042: [49434] 55 <- i8042 (flush, kbd) >>>> [ 50.248407] i8042: [49435] aa -> i8042 (command) >>>> [ 50.248601] i8042: [49435] 00 <- i8042 (return) >>>> [ 50.248604] i8042: [49435] i8042 controller selftest: 0x0 != 0x55 >>> >>> So here I see the ideapad-laptop driver trying to access i8042 before it >>> even starts resuming. I wonder, does it help if you disable >>> (temporarily) the ideapad driver? > > OK, so I tried to cook up a patch that would allow ideapad-laptop driver > to establish device link with i8042 so that the resume will be processed > after i8042 resumes, but the longer I think about it, the more I think > that ideapad driver should not be messing with the touchpad state > directly. The disable event may come up in a middle of the touchpad > resume transition, or when we decide to change touchpad mode for one > reason or another. It also does not respect inhibit/uninhibit controls > for input devices. I think that the proper way for ideapad driver to > handle this is to only send KEY_TOUCHPAD_OFF/KEY_TOUCHPAD_ON to > userspace and let userspace deal with toggling touchpad input (via > inhibit or by other means). > > CC-ing ideapad maintainers for their thoughts. Sorry for the very slow reply. The interesting thing is that sometime ago I already removed the i8042_command() command being done on most models now the ideapad driver already only sends KEY_TOUCHPAD_OFF/KEY_TOUCHPAD_ON except on the ideapad Z570 for which the i8042_command() call was initially added. I agree that this should probably just be removed. Jonathan, I presume that you are seeing this on an Ideapad Z570 ? (since that is the only model where this is still done by default). Since the i8042_command() call has already been disabled on all other ideapad models I agree that it would be best to just remove it entirely relying on userspace filtering out touchpad events after receiving a KEY_TOUCHPAD_OFF. I have submitted a patch to do just that: https://lore.kernel.org/platform-driver-x86/20240805141608.170844-1-hdegoede@redhat.com/ Jonathan can you give this patch a try (with a kernel with the ideapad-laptop module re-enabled) and then confirm that this fixes things ? Regards, Hans ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Input: psmouse - add resync_on_resume dmi check 2024-08-05 14:18 ` Hans de Goede @ 2024-08-05 16:52 ` Dmitry Torokhov 2024-08-09 15:35 ` Jonathan Denose 0 siblings, 1 reply; 5+ messages in thread From: Dmitry Torokhov @ 2024-08-05 16:52 UTC (permalink / raw) To: Hans de Goede Cc: Jonathan Denose, LKML, jefferymiller, Jonathan Denose, Raul Rangel, linux-input, Ike Panhc, platform-driver-x86 Hi Hans, On Mon, Aug 05, 2024 at 04:18:57PM +0200, Hans de Goede wrote: > Hi Dmitry, > > On 3/7/24 7:29 PM, Dmitry Torokhov wrote: > > On Mon, Mar 04, 2024 at 11:17:31AM -0600, Jonathan Denose wrote: > >> I disabled the ideapad driver by rebuilding the kernel without the > >> ideapad_laptop module. That does fix the suspend/resume issue! > >> > >> Attached are the logs. Is there a way to make this permanent? > >> > >> On Thu, Feb 29, 2024 at 12:23 PM Dmitry Torokhov > >> <dmitry.torokhov@gmail.com> wrote: > >>> > >>> On Mon, Feb 12, 2024 at 02:57:08PM -0600, Jonathan Denose wrote: > >>> ... > >>>> [ 50.241235] ideapad_acpi VPC2004:00: PM: calling acpi_subsys_resume+0x0/0x5d @ 4492, parent: PNP0C09:00 > >>>> [ 50.242055] snd_hda_intel 0000:00:0e.0: PM: pci_pm_resume+0x0/0xed returned 0 after 13511 usecs > >>>> [ 50.242120] snd_hda_codec_realtek hdaudioC0D0: PM: calling hda_codec_pm_resume+0x0/0x19 [snd_hda_codec] @ 4518, parent: 0000:00:0e.0 > >>>> [ 50.247406] i8042: [49434] a8 -> i8042 (command) > >>>> [ 50.247468] ideapad_acpi VPC2004:00: PM: acpi_subsys_resume+0x0/0x5d returned 0 after 6220 usecs > >>> ... > >>>> [ 50.247883] i8042 kbd 00:01: PM: calling pnp_bus_resume+0x0/0x9d @ 4492, parent: pnp0 > >>>> [ 50.247894] i8042 kbd 00:01: PM: pnp_bus_resume+0x0/0x9d returned 0 after 0 usecs > >>>> [ 50.247906] i8042 aux 00:02: PM: calling pnp_bus_resume+0x0/0x9d @ 4492, parent: pnp0 > >>>> [ 50.247916] i8042 aux 00:02: PM: pnp_bus_resume+0x0/0x9d returned 0 after 0 usecs > >>> ... > >>>> [ 50.248301] i8042 i8042: PM: calling platform_pm_resume+0x0/0x41 @ 4492, parent: platform > >>>> [ 50.248377] i8042: [49434] 55 <- i8042 (flush, kbd) > >>>> [ 50.248407] i8042: [49435] aa -> i8042 (command) > >>>> [ 50.248601] i8042: [49435] 00 <- i8042 (return) > >>>> [ 50.248604] i8042: [49435] i8042 controller selftest: 0x0 != 0x55 > >>> > >>> So here I see the ideapad-laptop driver trying to access i8042 before it > >>> even starts resuming. I wonder, does it help if you disable > >>> (temporarily) the ideapad driver? > > > > OK, so I tried to cook up a patch that would allow ideapad-laptop driver > > to establish device link with i8042 so that the resume will be processed > > after i8042 resumes, but the longer I think about it, the more I think > > that ideapad driver should not be messing with the touchpad state > > directly. The disable event may come up in a middle of the touchpad > > resume transition, or when we decide to change touchpad mode for one > > reason or another. It also does not respect inhibit/uninhibit controls > > for input devices. I think that the proper way for ideapad driver to > > handle this is to only send KEY_TOUCHPAD_OFF/KEY_TOUCHPAD_ON to > > userspace and let userspace deal with toggling touchpad input (via > > inhibit or by other means). > > > > CC-ing ideapad maintainers for their thoughts. > > Sorry for the very slow reply. > > The interesting thing is that sometime ago I already removed the i8042_command() > command being done on most models now the ideapad driver already only > sends KEY_TOUCHPAD_OFF/KEY_TOUCHPAD_ON except on the ideapad Z570 for > which the i8042_command() call was initially added. > > I agree that this should probably just be removed. > > Jonathan, I presume that you are seeing this on an Ideapad Z570 ? > (since that is the only model where this is still done by default). > > Since the i8042_command() call has already been disabled on all other > ideapad models I agree that it would be best to just remove it entirely > relying on userspace filtering out touchpad events after receiving > a KEY_TOUCHPAD_OFF. > > I have submitted a patch to do just that: > > https://lore.kernel.org/platform-driver-x86/20240805141608.170844-1-hdegoede@redhat.com/ > > Jonathan can you give this patch a try (with a kernel with > the ideapad-laptop module re-enabled) and then confirm that this > fixes things ? IIRC Jonathan observed the touchpad being stuck on resume even after disabling ideapad-laptop module. So we ended up with a69ce592cbe0 ("Input: elantech - fix touchpad state on resume for Lenovo N24") that sends disable and then enable command to the mouse/touchpad on resume which makes touchpad work after resume. Thanks. -- Dmitry ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Input: psmouse - add resync_on_resume dmi check 2024-08-05 16:52 ` Dmitry Torokhov @ 2024-08-09 15:35 ` Jonathan Denose 2024-08-10 12:59 ` Hans de Goede 0 siblings, 1 reply; 5+ messages in thread From: Jonathan Denose @ 2024-08-09 15:35 UTC (permalink / raw) To: Dmitry Torokhov Cc: Hans de Goede, LKML, jefferymiller, Jonathan Denose, Raul Rangel, linux-input, Ike Panhc, platform-driver-x86 Hello Hans and Dmitry, Yes, as Dmitry described that's the issue that I was seeing but it was on a Lenovo N24 and not an Ideapad Z570. On Mon, Aug 5, 2024 at 11:52 AM Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote: > > Hi Hans, > > On Mon, Aug 05, 2024 at 04:18:57PM +0200, Hans de Goede wrote: > > Hi Dmitry, > > > > On 3/7/24 7:29 PM, Dmitry Torokhov wrote: > > > On Mon, Mar 04, 2024 at 11:17:31AM -0600, Jonathan Denose wrote: > > >> I disabled the ideapad driver by rebuilding the kernel without the > > >> ideapad_laptop module. That does fix the suspend/resume issue! > > >> > > >> Attached are the logs. Is there a way to make this permanent? > > >> > > >> On Thu, Feb 29, 2024 at 12:23 PM Dmitry Torokhov > > >> <dmitry.torokhov@gmail.com> wrote: > > >>> > > >>> On Mon, Feb 12, 2024 at 02:57:08PM -0600, Jonathan Denose wrote: > > >>> ... > > >>>> [ 50.241235] ideapad_acpi VPC2004:00: PM: calling acpi_subsys_resume+0x0/0x5d @ 4492, parent: PNP0C09:00 > > >>>> [ 50.242055] snd_hda_intel 0000:00:0e.0: PM: pci_pm_resume+0x0/0xed returned 0 after 13511 usecs > > >>>> [ 50.242120] snd_hda_codec_realtek hdaudioC0D0: PM: calling hda_codec_pm_resume+0x0/0x19 [snd_hda_codec] @ 4518, parent: 0000:00:0e.0 > > >>>> [ 50.247406] i8042: [49434] a8 -> i8042 (command) > > >>>> [ 50.247468] ideapad_acpi VPC2004:00: PM: acpi_subsys_resume+0x0/0x5d returned 0 after 6220 usecs > > >>> ... > > >>>> [ 50.247883] i8042 kbd 00:01: PM: calling pnp_bus_resume+0x0/0x9d @ 4492, parent: pnp0 > > >>>> [ 50.247894] i8042 kbd 00:01: PM: pnp_bus_resume+0x0/0x9d returned 0 after 0 usecs > > >>>> [ 50.247906] i8042 aux 00:02: PM: calling pnp_bus_resume+0x0/0x9d @ 4492, parent: pnp0 > > >>>> [ 50.247916] i8042 aux 00:02: PM: pnp_bus_resume+0x0/0x9d returned 0 after 0 usecs > > >>> ... > > >>>> [ 50.248301] i8042 i8042: PM: calling platform_pm_resume+0x0/0x41 @ 4492, parent: platform > > >>>> [ 50.248377] i8042: [49434] 55 <- i8042 (flush, kbd) > > >>>> [ 50.248407] i8042: [49435] aa -> i8042 (command) > > >>>> [ 50.248601] i8042: [49435] 00 <- i8042 (return) > > >>>> [ 50.248604] i8042: [49435] i8042 controller selftest: 0x0 != 0x55 > > >>> > > >>> So here I see the ideapad-laptop driver trying to access i8042 before it > > >>> even starts resuming. I wonder, does it help if you disable > > >>> (temporarily) the ideapad driver? > > > > > > OK, so I tried to cook up a patch that would allow ideapad-laptop driver > > > to establish device link with i8042 so that the resume will be processed > > > after i8042 resumes, but the longer I think about it, the more I think > > > that ideapad driver should not be messing with the touchpad state > > > directly. The disable event may come up in a middle of the touchpad > > > resume transition, or when we decide to change touchpad mode for one > > > reason or another. It also does not respect inhibit/uninhibit controls > > > for input devices. I think that the proper way for ideapad driver to > > > handle this is to only send KEY_TOUCHPAD_OFF/KEY_TOUCHPAD_ON to > > > userspace and let userspace deal with toggling touchpad input (via > > > inhibit or by other means). > > > > > > CC-ing ideapad maintainers for their thoughts. > > > > Sorry for the very slow reply. > > > > The interesting thing is that sometime ago I already removed the i8042_command() > > command being done on most models now the ideapad driver already only > > sends KEY_TOUCHPAD_OFF/KEY_TOUCHPAD_ON except on the ideapad Z570 for > > which the i8042_command() call was initially added. > > > > I agree that this should probably just be removed. > > > > Jonathan, I presume that you are seeing this on an Ideapad Z570 ? > > (since that is the only model where this is still done by default). > > > > Since the i8042_command() call has already been disabled on all other > > ideapad models I agree that it would be best to just remove it entirely > > relying on userspace filtering out touchpad events after receiving > > a KEY_TOUCHPAD_OFF. > > > > I have submitted a patch to do just that: > > > > https://lore.kernel.org/platform-driver-x86/20240805141608.170844-1-hdegoede@redhat.com/ > > > > Jonathan can you give this patch a try (with a kernel with > > the ideapad-laptop module re-enabled) and then confirm that this > > fixes things ? > > IIRC Jonathan observed the touchpad being stuck on resume even after > disabling ideapad-laptop module. So we ended up with a69ce592cbe0 > ("Input: elantech - fix touchpad state on resume for Lenovo N24") that > sends disable and then enable command to the mouse/touchpad on resume > which makes touchpad work after resume. > > Thanks. > > -- > Dmitry ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Input: psmouse - add resync_on_resume dmi check 2024-08-09 15:35 ` Jonathan Denose @ 2024-08-10 12:59 ` Hans de Goede 0 siblings, 0 replies; 5+ messages in thread From: Hans de Goede @ 2024-08-10 12:59 UTC (permalink / raw) To: Jonathan Denose, Dmitry Torokhov Cc: LKML, jefferymiller, Jonathan Denose, Raul Rangel, linux-input, Ike Panhc, platform-driver-x86 Hi Jonathan, On 8/9/24 5:35 PM, Jonathan Denose wrote: > Hello Hans and Dmitry, > > Yes, as Dmitry described that's the issue that I was seeing but it was > on a Lenovo N24 and not an Ideapad Z570. Ah ok, so the initial diagnosis that this was an issue with the ideapad-laptop module turned out to not be true ? And the a69ce592cbe0 ("Input: elantech - fix touchpad state on resume for Lenovo N24") commit which Dmitry mentiones has resolved this, correct ? IOW no changes to the ideapad-laptop module are necessary ? Regards, Hans > > On Mon, Aug 5, 2024 at 11:52 AM Dmitry Torokhov > <dmitry.torokhov@gmail.com> wrote: >> >> Hi Hans, >> >> On Mon, Aug 05, 2024 at 04:18:57PM +0200, Hans de Goede wrote: >>> Hi Dmitry, >>> >>> On 3/7/24 7:29 PM, Dmitry Torokhov wrote: >>>> On Mon, Mar 04, 2024 at 11:17:31AM -0600, Jonathan Denose wrote: >>>>> I disabled the ideapad driver by rebuilding the kernel without the >>>>> ideapad_laptop module. That does fix the suspend/resume issue! >>>>> >>>>> Attached are the logs. Is there a way to make this permanent? >>>>> >>>>> On Thu, Feb 29, 2024 at 12:23 PM Dmitry Torokhov >>>>> <dmitry.torokhov@gmail.com> wrote: >>>>>> >>>>>> On Mon, Feb 12, 2024 at 02:57:08PM -0600, Jonathan Denose wrote: >>>>>> ... >>>>>>> [ 50.241235] ideapad_acpi VPC2004:00: PM: calling acpi_subsys_resume+0x0/0x5d @ 4492, parent: PNP0C09:00 >>>>>>> [ 50.242055] snd_hda_intel 0000:00:0e.0: PM: pci_pm_resume+0x0/0xed returned 0 after 13511 usecs >>>>>>> [ 50.242120] snd_hda_codec_realtek hdaudioC0D0: PM: calling hda_codec_pm_resume+0x0/0x19 [snd_hda_codec] @ 4518, parent: 0000:00:0e.0 >>>>>>> [ 50.247406] i8042: [49434] a8 -> i8042 (command) >>>>>>> [ 50.247468] ideapad_acpi VPC2004:00: PM: acpi_subsys_resume+0x0/0x5d returned 0 after 6220 usecs >>>>>> ... >>>>>>> [ 50.247883] i8042 kbd 00:01: PM: calling pnp_bus_resume+0x0/0x9d @ 4492, parent: pnp0 >>>>>>> [ 50.247894] i8042 kbd 00:01: PM: pnp_bus_resume+0x0/0x9d returned 0 after 0 usecs >>>>>>> [ 50.247906] i8042 aux 00:02: PM: calling pnp_bus_resume+0x0/0x9d @ 4492, parent: pnp0 >>>>>>> [ 50.247916] i8042 aux 00:02: PM: pnp_bus_resume+0x0/0x9d returned 0 after 0 usecs >>>>>> ... >>>>>>> [ 50.248301] i8042 i8042: PM: calling platform_pm_resume+0x0/0x41 @ 4492, parent: platform >>>>>>> [ 50.248377] i8042: [49434] 55 <- i8042 (flush, kbd) >>>>>>> [ 50.248407] i8042: [49435] aa -> i8042 (command) >>>>>>> [ 50.248601] i8042: [49435] 00 <- i8042 (return) >>>>>>> [ 50.248604] i8042: [49435] i8042 controller selftest: 0x0 != 0x55 >>>>>> >>>>>> So here I see the ideapad-laptop driver trying to access i8042 before it >>>>>> even starts resuming. I wonder, does it help if you disable >>>>>> (temporarily) the ideapad driver? >>>> >>>> OK, so I tried to cook up a patch that would allow ideapad-laptop driver >>>> to establish device link with i8042 so that the resume will be processed >>>> after i8042 resumes, but the longer I think about it, the more I think >>>> that ideapad driver should not be messing with the touchpad state >>>> directly. The disable event may come up in a middle of the touchpad >>>> resume transition, or when we decide to change touchpad mode for one >>>> reason or another. It also does not respect inhibit/uninhibit controls >>>> for input devices. I think that the proper way for ideapad driver to >>>> handle this is to only send KEY_TOUCHPAD_OFF/KEY_TOUCHPAD_ON to >>>> userspace and let userspace deal with toggling touchpad input (via >>>> inhibit or by other means). >>>> >>>> CC-ing ideapad maintainers for their thoughts. >>> >>> Sorry for the very slow reply. >>> >>> The interesting thing is that sometime ago I already removed the i8042_command() >>> command being done on most models now the ideapad driver already only >>> sends KEY_TOUCHPAD_OFF/KEY_TOUCHPAD_ON except on the ideapad Z570 for >>> which the i8042_command() call was initially added. >>> >>> I agree that this should probably just be removed. >>> >>> Jonathan, I presume that you are seeing this on an Ideapad Z570 ? >>> (since that is the only model where this is still done by default). >>> >>> Since the i8042_command() call has already been disabled on all other >>> ideapad models I agree that it would be best to just remove it entirely >>> relying on userspace filtering out touchpad events after receiving >>> a KEY_TOUCHPAD_OFF. >>> >>> I have submitted a patch to do just that: >>> >>> https://lore.kernel.org/platform-driver-x86/20240805141608.170844-1-hdegoede@redhat.com/ >>> >>> Jonathan can you give this patch a try (with a kernel with >>> the ideapad-laptop module re-enabled) and then confirm that this >>> fixes things ? >> >> IIRC Jonathan observed the touchpad being stuck on resume even after >> disabling ideapad-laptop module. So we ended up with a69ce592cbe0 >> ("Input: elantech - fix touchpad state on resume for Lenovo N24") that >> sends disable and then enable command to the mouse/touchpad on resume >> which makes touchpad work after resume. >> >> Thanks. >> >> -- >> Dmitry > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-08-10 12:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20231102075243.1.Idb37ff8043a29f607beab6440c32b9ae52525825@changeid>
[not found] ` <ZcKs589qYxviC1J4@google.com>
[not found] ` <CALNJtpV0KsOusPQeGv8bQ3jKy2sUj+k=mPHc172f+vMaTDYPfg@mail.gmail.com>
[not found] ` <ZcZ2oG1Rls-oR593@google.com>
[not found] ` <CALNJtpWNbSZdpxky9hTiSRsaGgLDUnM66QGEy213d3Lhra0hsw@mail.gmail.com>
[not found] ` <ZeDLq9gPs5InBmdK@google.com>
[not found] ` <CALNJtpWwhen2H9OT1-rZ4bt+huwXPOPz6qVDJ5g+emE1wRSLsw@mail.gmail.com>
2024-03-07 18:29 ` [PATCH] Input: psmouse - add resync_on_resume dmi check Dmitry Torokhov
2024-08-05 14:18 ` Hans de Goede
2024-08-05 16:52 ` Dmitry Torokhov
2024-08-09 15:35 ` Jonathan Denose
2024-08-10 12:59 ` Hans de Goede
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox