linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Mark Pearson <markpearson@lenovo.com>,
	Randy Dunlap <rdunlap@infradead.org>,
	linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org,
	Dell.Client.Kernel@dell.com
Cc: "Pali Rohár" <pali@kernel.org>,
	"Stuart Hayes" <stuart.w.hayes@gmail.com>,
	"Divya Bharathi" <divya.bharathi@dell.com>,
	"Prasanth Ksr" <prasanth.ksr@dell.com>,
	"Perry Yuan" <Perry.Yuan@dell.com>
Subject: Re: [External] Re: Dell laptop touchpad disabling?
Date: Mon, 11 Apr 2022 15:48:48 +0200	[thread overview]
Message-ID: <efb7e4bd-a758-3d70-6967-78fa176055e5@redhat.com> (raw)
In-Reply-To: <225c5a10-59a8-d33e-abac-5fbb4341a6eb@lenovo.com>

Hi Mark,

On 3/21/22 23:18, Mark Pearson wrote:
> 
> Apologies if this is thread hijacking...but I've got a similarish
> problem on Lenovo laptops that we have on the todo list to investigate
> so wanted to jump in with a somewhat related question...

No problem.

> On 3/18/22 04:54, Hans de Goede wrote:
>>
>> Regardless of the method, the kernel's responsibility here is
>> to make sure the touchpad gets seen as a touchpad and after that
>> "disabling" it is a userspace problem.
>>
> 
> The issue on our platforms is that if you disable the touchpad in the
> BIOS it doesn't actually disable the touchpad. It sets a flag in the EC
> registers to let the OS know the touchpad is not supposed to be enabled
> (I only just found out this is how it is supposed to work).

Interesting.

> I'm not 100% sure the reasons for this - I think it's to do with keeping
> the trackpoint usable (maybe).

Yes that makes sense the trackpoint often sends its data to the touchpad
which then muxes the trackpoint data into its own datastream as special
trackpoint packets. So disabling the touchpad at the hw level would also
disable the trackpoint in these kinda setups.

> So just curious on the comment above - is there a standard way to let
> user space know to ignore the touchpad or disable it by default?

Not yet, but we could define one. Or we could even try to see if
a patch to drop all non trackpoint data inside the kernel when the
flag is set would be accepted.

Someone needs to write the code for this though and if we want to let
userspace know also define a userspace API. I think the all kernel
solution might be the easiest to implement, but I'm not sure if this
will be accepted by the input subsystem maintainer.

> I'm obviously being lazy here as I've been meaning to go and read code
> but I was flicking thru the mailing list and this caught my eye....and
> if there's a shortcut to the answer that would be awesome.
> 
> I've no idea if this is a Lenovo specific issue or more generic - but
> this thread made me wonder if it's actually a common/standard problem?

This is the first time I have heard about this.

Regards,

Hans


  reply	other threads:[~2022-04-11 13:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-18  0:32 Dell laptop touchpad disabling? Randy Dunlap
2022-03-18  8:50 ` Hans de Goede
2022-03-18  8:54 ` Hans de Goede
2022-03-20 19:57   ` Randy Dunlap
2022-03-21 22:18   ` [External] " Mark Pearson
2022-04-11 13:48     ` Hans de Goede [this message]
2022-04-11 14:00       ` Pali Rohár

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=efb7e4bd-a758-3d70-6967-78fa176055e5@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=Dell.Client.Kernel@dell.com \
    --cc=Perry.Yuan@dell.com \
    --cc=divya.bharathi@dell.com \
    --cc=linux-input@vger.kernel.org \
    --cc=markpearson@lenovo.com \
    --cc=pali@kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=prasanth.ksr@dell.com \
    --cc=rdunlap@infradead.org \
    --cc=stuart.w.hayes@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;
as well as URLs for NNTP newsgroup(s).