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

--- Comment #9 from Zachary Smith <[email protected]> ---
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.
_______________________________________________
wayland-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to