f31522130f
Build system (5 gaps hardened): - COOKBOOK_OFFLINE defaults to true (fork-mode) - normalize_patch handles diff -ruN format - New 'repo validate-patches' command (25/25 relibc patches) - 14 patched Qt/Wayland/display recipes added to protected list - relibc archive regenerated with current patch chain Boot fixes (fixable): - Full ISO EFI partition: 16 MiB → 1 MiB (matches mini, BIOS hardcoded 2 MiB offset) - D-Bus system bus: absolute /usr/bin/dbus-daemon path (was skipped) - redbear-sessiond: absolute /usr/bin/redbear-sessiond path (was skipped) - daemon framework: silenced spurious INIT_NOTIFY warnings for oneshot_async services (P0-daemon-silence-init-notify.patch) - udev-shim: demoted INIT_NOTIFY warning to INFO (expected for oneshot_async) - relibc: comprehensive named semaphores (sem_open/close/unlink) replacing upstream todo!() stubs - greeterd: Wayland socket timeout 15s → 30s (compositor DRM wait) - greeter-ui: built and linked (header guard unification, sem_compat stubs removed) - mc: un-ignored in both configs, fixed glib/libiconv/pcre2 transitive deps - greeter config: removed stale keymapd dependency from display/greeter services - prefix toolchain: relibc headers synced, _RELIBC_STDLIB_H guard unified Unfixable (diagnosed, upstream): - i2c-hidd: abort on no-I2C-hardware (QEMU) — process::exit → relibc abort - kded6/greeter-ui: page fault 0x8 — Qt library null deref - Thread panics fd != -1 — Rust std library on Redox - DHCP timeout / eth0 MAC — QEMU user-mode networking - hwrngd/thermald — no hardware RNG/thermal in VM - live preload allocation — BIOS memory fragmentation, continues on demand
129 lines
4.6 KiB
ReStructuredText
129 lines
4.6 KiB
ReStructuredText
.. _t440_support:
|
|
|
|
==============================================================================
|
|
Lenovo \*40 series touchpad support
|
|
==============================================================================
|
|
|
|
The Lenovo \*40 series emulates trackstick buttons on the top part of the
|
|
touchpads.
|
|
|
|
.. _t440_support_overview:
|
|
|
|
------------------------------------------------------------------------------
|
|
Overview
|
|
------------------------------------------------------------------------------
|
|
|
|
The Lenovo \*40 series introduced a new type of touchpad. Previously, all
|
|
laptops had a separate set of physical buttons for the
|
|
`trackstick <http://en.wikipedia.org/wiki/Pointing_stick>`_. This
|
|
series removed these buttons, relying on a software emulation of the top
|
|
section of the touchpad. This is visually marked on the trackpad itself,
|
|
and clicks can be triggered by pressing the touchpad down with a finger in
|
|
the respective area:
|
|
|
|
.. figure:: top-software-buttons.svg
|
|
:align: center
|
|
|
|
Left, right and middle-button click with top software button areas
|
|
|
|
This page only covers the top software buttons, the bottom button behavior
|
|
is covered in :ref:`Clickpad software buttons <clickpad_softbuttons>`.
|
|
|
|
Clickpads with a top button area are marked with the
|
|
`INPUT_PROP_TOPBUTTONPAD <https://www.kernel.org/doc/Documentation/input/event-codes.txt>`_
|
|
property.
|
|
|
|
.. _t440_support_btn_size:
|
|
|
|
------------------------------------------------------------------------------
|
|
Size of the buttons
|
|
------------------------------------------------------------------------------
|
|
|
|
The size of the buttons matches the visual markings on this touchpad.
|
|
The width of the left and right buttons is approximately 42% of the
|
|
touchpad's width, the middle button is centered and assigned 16% of the
|
|
touchpad width.
|
|
|
|
The line of the buttons is 5mm from the top edge of the touchpad,
|
|
measurements of button presses showed that the size of the buttons needs to
|
|
be approximately 10mm high to work reliable (especially when using the
|
|
thumb to press the button).
|
|
|
|
.. _t440_support_btn_behavior:
|
|
|
|
------------------------------------------------------------------------------
|
|
Button behavior
|
|
------------------------------------------------------------------------------
|
|
|
|
Movement in the top button area does not generate pointer movement. These
|
|
buttons are not replacement buttons for the bottom button area but have
|
|
their own behavior. Semantically attached to the trackstick device, libinput
|
|
re-routes events from these buttons to appear through the trackstick device.
|
|
|
|
|
|
.. graphviz::
|
|
|
|
|
|
digraph top_button_routing
|
|
{
|
|
rankdir="LR";
|
|
node [shape="box";]
|
|
|
|
trackstick [label="trackstick kernel device"];
|
|
touchpad [label="touchpad kernel device"];
|
|
|
|
subgraph cluster0 {
|
|
bgcolor = floralwhite
|
|
label = "libinput"
|
|
|
|
libinput_ts [label="trackstick libinput_device"
|
|
style=filled
|
|
fillcolor=white];
|
|
libinput_tp [label="touchpad libinput_device"
|
|
style=filled
|
|
fillcolor=white];
|
|
|
|
libinput_tp -> libinput_ts [constraint=false
|
|
color="red4"];
|
|
}
|
|
|
|
trackstick -> libinput_ts [arrowhead="none"]
|
|
touchpad -> libinput_tp [color="red4"]
|
|
|
|
events_tp [label="other touchpad events"];
|
|
events_topbutton [label="top software button events"];
|
|
|
|
libinput_tp -> events_tp [arrowhead="none"]
|
|
libinput_ts -> events_topbutton [color="red4"]
|
|
}
|
|
|
|
|
|
|
|
The top button areas work even if the touchpad is disabled but will be
|
|
disabled when the trackstick device is disabled. If the finger starts inside
|
|
the top area and moves outside the button area the finger is treated as dead
|
|
and must be lifted to generate future buttons. Likewise, movement into the
|
|
top button area does not trigger button events, a click has to start inside
|
|
this area to take effect.
|
|
|
|
.. _t440_support_identification:
|
|
|
|
------------------------------------------------------------------------------
|
|
Kernel support
|
|
------------------------------------------------------------------------------
|
|
|
|
The firmware on the first generation of touchpads providing top software
|
|
buttons is buggy and announces wrong ranges.
|
|
`Kernel patches <https://lkml.org/lkml/2014/3/7/722>`_ are required;
|
|
these fixes are available in kernels 3.14.1, 3.15 and later but each
|
|
touchpad needs a separate fix.
|
|
|
|
The October 2014 refresh of these laptops do not have this firmware bug
|
|
anymore and should work without per-device patches, though
|
|
`this kernel commit <http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=02e07492cdfae9c86e3bd21c0beec88dbcc1e9e8>`_
|
|
is required.
|
|
|
|
For a complete list of supported touchpads check
|
|
`the kernel source <http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/input/mouse/synaptics.c>`_
|
|
(search for "topbuttonpad_pnp_ids").
|