summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-02-27Fix a crash when requesting invalid mode group indicesPeter Hutterer1-0/+4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-24tools: add "--quiet" option to only log libinput messagesPeter Hutterer3-75/+87
Supresses any printf statements from the tool itself, i.e. it skips printing any of the events. Makes it easier to debug the internal state since it's not intermixed with a whole lot of messages about the events that are generated. Best combined with --verbose (yes, hilarious, isn't it...) Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Hans de Goede <hdegoede@redhat.com>
2017-02-24timer: prefix all messages with "timer:"Peter Hutterer1-4/+4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Hans de Goede <hdegoede@redhat.com>
2017-02-24evdev: standardize log messsagesPeter Hutterer14-387/+389
Prefix device log messages with the device's sysname so it's more obvious where the messages are coming from. This makes it much easier to grep for a specific device's messages but also adds some identifier to messages that were previously without any identifier (e.g. all the state machine debugging) All info and error messages also automatically prefix the device name, so those messages are standardised too, e.g an info message now: event4 - SynPS/2 Synaptics TouchPad: is tagged by udev as: Touchpad a debug message now: event4 - using pressure-based touch detection And since this required changing a lot of the strings in messages anyway, polish a few minor things too. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Hans de Goede <hdegoede@redhat.com>
2017-02-24evdev: move the 'device removed' message to the evdev backendPeter Hutterer2-4/+5
Preparation work for standardizing log messages better Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Hans de Goede <hdegoede@redhat.com>
2017-02-23configure.ac: libinput 1.7rc1Peter Hutterer2-3/+3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-23doc: add a custom css for local overridesPeter Hutterer3-2/+51
Easier to track if we leave the original files alone. Actual changes to the doxygen style: * indent <dd> blocks * hide the navigation sub-items. Our current style expands the full navigation menu but File-list, etc. is mostly useless and just wastes space. * force some space below the main bar * change the header sizes around a bit. Primary goal here: making <h1> smaller than the title Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-23doc: allow custom styles to overide the bootstrap stylePeter Hutterer2-4/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-23doc: disable the search engine/search boxPeter Hutterer1-0/+1
It was just floating around lonely there and I doubt anyone really used it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-23doc: minor documentation fixPeter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-22test: add a has_slider check for the airbrush toolPeter Hutterer1-0/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-22Merge branch 'wip/logitech-marble-mouse-middleemulation'Peter Hutterer8-55/+330
2017-02-21tools: print accel profiles up to 1000 mm/sPeter Hutterer1-1/+1
The range that matters is 0-200, maybe up to 400 if you account for really fast movements. But to match other, published, accel curves default to up to 1000 mm/s. It's easy enough in gnuplot to reduce the range. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-21tools: print the key as -1 for obfuscated keysPeter Hutterer1-0/+1
Missing from 8c1aa1de where we hid the human-readable parts but the keycode itself is still enough information to recover the typed bits. Print it as -1 as that keycode doesn't exist for real keys so it stands out nicely. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-21Add the matching @see tags to the accel configPeter Hutterer1-0/+16
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-20evdev: don't provide button scrolling on absolute pointer devicesPeter Hutterer2-1/+4
This may be a feature for the future but for now be honest and don't claim that button-based scrolling is available, it's not hooked up in the absolute code path. https://bugs.freedesktop.org/show_bug.cgi?id=99865 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-20evdev: add "READY" state to button scrollingPeter Hutterer4-8/+30
Before, our states were idle, button down and scrolling. This adds a state where the button is down and the timeout has expired (i.e. we're ready to send scroll events) but we haven't actually sent any events anymore. If the button is released in this state, we generate a normal click event. https://bugs.freedesktop.org/show_bug.cgi?id=99666 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-20evdev: convert button scrolling into a state machinePeter Hutterer2-20/+38
No functional changes, preparation work for adding another state. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-20test: add tests for middle button + button scrolling on BTN_LEFTPeter Hutterer1-0/+130
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-20evdev: add state debugging to button scrollingPeter Hutterer1-2/+11
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-20evdev: rename define for button scroll timeoutPeter Hutterer1-2/+2
This is merely 'button scrolling' now, only the original implementation was middle button only. And to avoid confusing with the middle button emulation, drop "MIDDLE" from the define. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-20evdev: add quirk for Logitech Marble MousePeter Hutterer5-0/+37
Device needs BTN_MIDDLE disabled, this way middle button emulation is present by default. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-20evdev: allow button scrolling on the L/R button with middle emulation activePeter Hutterer3-8/+44
This worked before, but triggered a negative timer bug. When one of the physical L/R buttons is pressed with middle button emulation enabled, the flow is: 1) phys left button down 2) middle button state machine discards events, sets timer 3) timer expires or button is released 4) middle button state machine sends button press with time from 1) 5) emulation code sees button press, sets timer for scroll emulation 6) timer logs bug because (original-button-time + timeout) is less than now() That log_bug_libinput() warning fails the tests but works otherwise. Allow this situation explicitly, on some devices we only have left and right buttons and no scroll wheel, so having middle button emulation *and* button-scroll working is useful. https://bugs.freedesktop.org/show_bug.cgi?id=99845 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-20test: fix the pointer scroll-defaults testPeter Hutterer1-7/+16
The button-scroll by default behavior is only true on devices with a middle button. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-20test: skip two tests when middle button is missingPeter Hutterer1-0/+10
And disable middle button emulation for this test, it would mess with the test results. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-20test: fix middle button defaults testPeter Hutterer1-8/+7
This failed on devices without a middle button, we just didn't have a test device to trigger this. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-20test: check the libinput device for BTN_MIDDLE, not the libevdev devicePeter Hutterer1-9/+11
We don't have the same libevdev context that libinput has so if libinput disables/enables event codes we don't see that and may get unexpected behavior in the test. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-20tools: size without decimals is good enoughPeter Hutterer1-1/+1
Sub-mm precision isn't needed for libinput-list-devices' size field. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-20Added missing button range for pad on CTH-680Sakse Dalum1-0/+5
This device has BTN_LEFT, BTN_RIGHT, BTN_FORWARD and BTN_BACK, add the missing range to the pad init function. https://bugs.freedesktop.org/show_bug.cgi?id=99785 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-17test: fix udev rule for waltop tablet test devicePeter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-15tools: print errors as red, info as highlightedPeter Hutterer1-0/+18
makes it easier to filter out debugging messages Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-14tools: don't print device options on device removedPeter Hutterer1-47/+55
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-14tools: hide key codes by defaultPeter Hutterer3-4/+25
libinput-debug-events prints keycodes as they come in. This makes it dangerous to be run by users (especially in the background) because it will leak sensitive information as it is typed. Obfuscate the base set of keycodes by default, require a --show-keycodes switch to show it. The few times we actually need the keycodes, we can run the switch in the debugging tool. This does not affect keys outside of the main block on the keyboard (F-keys, multimedia keys). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-13doc: add a page "what is libinput"Peter Hutterer3-1/+58
This will eventually feature the architecture diagrams, etc. But for now it's mostly just a list of what will be and what won't be supported. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-13doc: link to tapping page from the FAQPeter Hutterer1-0/+4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-13doc: make the tap-to-click default setting a separate sectionPeter Hutterer1-0/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-13touchpad: drop 'is blacklisted' check for dwt pairingPeter Hutterer1-22/+2
dwt is needed on internal touchpads only and those external ones that are a combo device. This also now gives us the same check for palm detect and dwt. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-13touchpad: add a hwdb quirk for (external) touchpad/keyboard combosPeter Hutterer6-3/+65
Specify the layout of the combo so we know when to initialize palm detection. This allows us to drop palm detection on external touchpads otherwise, replacing the wacom-specific check with something more generic.. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-09Merge branch 'gcov-tests'Peter Hutterer16-28/+468
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-09test: add tests for tablet tool typesPeter Hutterer1-0/+69
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-09test: add helper functions to filter an eventPeter Hutterer2-0/+29
Simplest implementation for what we need right now, it turns off an event on the evdev device and turns it back on again. This allows us to change bits in the 'normal' event stream, such as changing the tool type without triggering proximity events for the BTN_TOOL_PEN that all test devices send by default. This won't work for absolute devices because we need to re-enable with a struct input_absinfo. But we don't need that ability for now anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-09test: add basic test for getting the physical seat namePeter Hutterer1-0/+14
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-09evdev: split calibration property parsing into a helperPeter Hutterer4-21/+99
So we can test it externally. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-09path: parse the WL_OUTPUT property for patch devices tooPeter Hutterer3-2/+32
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-09evdev: free the output name on evdev_destroy()Peter Hutterer1-0/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-09touchpad: mark the Apple onebutton touchpad as clickfinger-defaultPeter Hutterer13-9/+284
We don't initialize click methods on devices with physical buttons. This model is a special case, it's not a clickpad but it only has one button (because one button is all you ever need and whatnot). https://bugs.freedesktop.org/show_bug.cgi?id=99283 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-09pad: don't warn about failure to initialize the LEDs on litest devicesPeter Hutterer1-1/+12
We don't init the required /sysfs files, so let's not spew a lot of warnings during the test suite. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-08touchpad: expand top middle button to cover 40mm to 60mmPeter Hutterer1-2/+2
42 and 58 were within the middle button already, 40/60 are more accurate values. https://bugs.freedesktop.org/show_bug.cgi?id=99212 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-08configure.ac: bump to 1.6.900Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-06test: add test for touch seat slotsPeter Hutterer1-1/+71
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>