Lines Matching refs:fuzz

45 OVERRIDE_HWDB_FILE = "/etc/udev/hwdb.d/99-touchpad-fuzz-override.hwdb"
109 """Return a tuple of (xfuzz, yfuzz) with the fuzz as set in the libinput
122 "WARNING: fuzz mismatch ABS_X: {}, ABS_MT_POSITION_X: {}".format(
130 "WARNING: fuzz mismatch ABS_Y: {}, ABS_MT_POSITION_Y: {}".format(
144 raise InvalidConfigurationError("fuzz should be set for both axes")
150 Returns a tuple of (xfuzz, yfuzz) with the fuzz as set on the device
151 axis. Returns None if no fuzz is set.
162 self.absinfo[libevdev.EV_ABS.ABS_X].fuzz
163 or self.absinfo[libevdev.EV_ABS.ABS_MT_POSITION_X].fuzz
166 self.absinfo[libevdev.EV_ABS.ABS_Y].fuzz
167 or self.absinfo[libevdev.EV_ABS.ABS_MT_POSITION_Y].fuzz
176 def print_fuzz(what, fuzz):
178 if fuzz is None:
180 elif fuzz == (0, 0):
183 print("x={} y={}".format(*fuzz))
186 def handle_existing_entry(device, fuzz):
258 parts[3] = str(fuzz)
274 " EVDEV_ABS_00=min:max:resolution:fuzz",
276 " Leave the entry as-is and only add or amend the fuzz value.",
278 " resolution to 32 and the fuzz to 8",
291 if test_hwdb_entry(device, fuzz):
292 print_bold("Please test the new fuzz setting by restarting libinput")
298 print_bold("The new fuzz setting did not take effect.")
318 def test_hwdb_entry(device, fuzz):
325 if f == (fuzz, fuzz):
338 if f is not None and f == (fuzz, fuzz):
374 def write_udev_rule(device, fuzz):
379 print_bold("Guessing a udev rule to overwrite the fuzz")
406 svn[3:], device.name, device.name, svn, pvr, fuzz, fuzz, fuzz, fuzz
409 svn[3:], device.name, device.name, svn, pn, fuzz, fuzz, fuzz, fuzz
427 if handle_existing_entry(device, fuzz):
451 fd.write("# File generated by libinput measure fuzz\n\n")
455 if test_hwdb_entry(device, fuzz):
457 print_bold("Please test the new fuzz setting by restarting libinput")
478 description="Print fuzz settings and/or suggest udev rules for the fuzz to be adjusted."
487 parser.add_argument("--fuzz", type=int, help="Suggested fuzz")
494 fuzz = device.check_property()
495 print_fuzz("udev property", fuzz)
497 fuzz = device.check_axes()
498 print_fuzz("axes", fuzz)
500 userfuzz = args.fuzz