[Wayland-bugs] [Bug 103749] SW_TABLET_MODE disables monitor bezel button in tablet mode

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 20 23:14:44 UTC 2018


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

--- Comment #27 from Peter Hutterer <peter.hutterer at who-t.net> ---
Comment on attachment 138226
  --> https://bugs.freedesktop.org/attachment.cgi?id=138226
0001-evdev-don-t-suspend-keyboard-on-the-X1-Yoga-1st-DEPAU.patch

Review of attachment 138226:
-----------------------------------------------------------------

This should work, but it's inefficient. You're still pairing the tablet mode
and the keyboard device, installing an event handler, etc. But then you just
return early when the event comes in. The original patch from comment 15 just
skips the pairing, which means it should have the same effect. So it'd be
useful to debug why the other patch didn't take effect in
fallback_keyboard_pair_tablet_mode().

::: src/evdev-fallback.c
@@ +1151,4 @@
>  	swev = libinput_event_get_switch_event(event);
>  	if (libinput_event_switch_get_switch(swev) !=
>  	    LIBINPUT_SWITCH_TABLET_MODE)
> +        return;

detritus, please remove

@@ +1155,3 @@
>  
> +    if (device->model_flags & EVDEV_MODEL_TABLET_MODE_NO_SUSPEND)
> +        return;

please stick to the indentation rules the rest of libinput uses

-- 
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/20180320/eaff2c7d/attachment.html>


More information about the wayland-bugs mailing list