[Wayland-bugs] [Bug 106498] Lenovo X1 Yoga (Gen 3) touchpad not suspended in tablet mode

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 16 14:30:54 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=106498

--- Comment #9 from Zachary Smith <z at zxmth.us> ---
I cloned your repo, checked out your wip/touchpad-multiple-suspend-handler
branch, and compiled successfully.

Next, I ran builddir/libinput-debug-events, opened the lid to initiate tablet
mode, and moved my finger across the touchpad - unfortunately, the pointer
still moved and clicks were registered. My first question is, do I need to take
some other steps to test the ultimate functionality (install the compiled
binaries, for example)?

Here are a few things I tried next to capture some information for you.

I changed #if 0 to 1 in evdev.c, rebuilt, and ran in gdb with breakpoints in
tp_suspend, tp_resume, tp_tablet_mode_switch_event, and evdev_device_suspend. I
set args to --verbose and stepped through the touchpad suspend and resume flow.
It appears that the device fd is being set to -1 in suspend and back to its
original value (23) in resume. There does not appear to be a resume request
fired (ie, tp_resume is not called via a notify event from the keyboard for
example). This all seems good and as far as I can tell the trigger check
portion of the code you added appears to be working.

However, the touchpad pointer moves and clicks have an effect on the system in
tablet mode. What may be interesting is that there are no messages from
evdev_print_event displayed for the touchpad events until tablet mode is ended
at which point I see them displayed again.

Let me know if I can provide anything else.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20180516/abe96b1c/attachment.html>


More information about the wayland-bugs mailing list