#
✕ nick:marcan
#asahi-dev · 2021-12-15 10:09
marcanwell, a pressurepad-clickpad I guess?
#asahi-dev · 2021-12-15 10:09
marcan(which is what this physically is)
#asahi-dev · 2021-12-15 10:09
marcanlibinput actually complains if you have those capability bits on for a clickpad
#asahi-dev · 2021-12-15 10:08
marcanbut we probably don't
#asahi-dev · 2021-12-15 10:08
marcanthose are for physical buttons only, unless we want to treat it as a touchpad and disable all the software logic for those
#asahi-dev · 2021-12-15 10:08
marcanwe don't want those anyway
#asahi-dev · 2021-12-15 10:04
marcan_jannau_: force pushed the fixup again; works fine without any libinput quirks now
#asahi-dev · 2021-12-15 10:02
marcangiven a quick test with a 355 ml can of Monster yielding values in the 370 range on top of my finger
#asahi-dev · 2021-12-15 10:01
marcanI'm going to say it's in grams
#asahi-dev · 2021-12-15 09:54
marcan... I guess I need to measure this now, don't I
#asahi-dev · 2021-12-15 09:54
marcanso we need a resolution.
#asahi-dev · 2021-12-15 09:54
marcan * to indicate that the value is in a known axis space.
#asahi-dev · 2021-12-15 09:54
marcan * The kernel/udev set the resolution to non-zero on those devices
#asahi-dev · 2021-12-15 09:54
marcan *
#asahi-dev · 2021-12-15 09:54
marcan * with it anyway and using it for touch size messes things up.
#asahi-dev · 2021-12-15 09:54
marcan * force down. So we disable it here because we don't do anything
#asahi-dev · 2021-12-15 09:54
marcan * size. On PressurePads, pressure is a real physical axis for the
#asahi-dev · 2021-12-15 09:54
marcan /* On traditional touchpads, the pressure value equals contact
#asahi-dev · 2021-12-15 09:54
marcanfound the trick
#asahi-dev · 2021-12-15 09:54
marcanahhh
#asahi-dev · 2021-12-15 09:51
marcanwhich I'm going to report right now, in fact
#asahi-dev · 2021-12-15 09:51
marcanif libinput is doing insane things like setting a touch threshold higher than a palm threshold with a 0~6000 pressure range, that's a libinput bug
#asahi-dev · 2021-12-15 09:50
marcanthe correct solution is to translate it into something that meets the input specification
#asahi-dev · 2021-12-15 09:45
marcanjust playing with the input properties
#asahi-dev · 2021-12-15 09:45
marcan_jannau_: pushed the latest fixup to touchpad/wip if you want to squash it in
#asahi-dev · 2021-12-15 09:43
marcan_jannau_: that works
#asahi-dev · 2021-12-15 09:43
marcanAttrPressureRange=1:0
#asahi-dev · 2021-12-15 09:43
marcanAttrPalmPressureThreshold=10000
#asahi-dev · 2021-12-15 09:34
marcanlike I get ~600 solidly resting my palm on the touchpad, but I can easily get more than that pressing hard down with my finger
#asahi-dev · 2021-12-15 09:32
marcanthat doesn't make any sense to use for palm detection
#asahi-dev · 2021-12-15 09:32
marcanas in you can press it down with something plastic and it still counts, it's force-based
#asahi-dev · 2021-12-15 09:32
marcanthis touchpad reports *real* pressure as pressure
#asahi-dev · 2021-12-15 09:32
marcanpressure palm detection is stupid anyway; pressure has to be a misnomer here, intended for touchpad-based "pressure" detection which is more like area-based
#asahi-dev · 2021-12-15 09:22
marcantherefore, no touches work, ever
#asahi-dev · 2021-12-15 09:22
marcanjannau: so setting the correct pressure range now results in libinput defaulting to a touch pressure threshold *higher* than the palm detection threshold
#asahi-dev · 2021-12-15 09:22
marcanoh god this is so broken
#asahi-dev · 2021-12-15 09:16
marcanso it sounds like there may be some glitchiness left somewhere
#asahi-dev · 2021-12-15 09:16
marcanI do get that sometimes
#asahi-dev · 2021-12-15 09:16
marcan[ 52.083725] spi_hid_apple spi1.0: Read package crc mismatch
#asahi-dev · 2021-12-15 09:14
marcanwhat
#asahi-dev · 2021-12-15 09:14
marcanhuh, something broke completely now with xorg
#asahi-dev · 2021-12-15 09:01
marcanyeah, so that's a problem
#asahi-dev · 2021-12-15 09:01
marcan const int default_palm_threshold = 130;
#asahi-dev · 2021-12-15 08:56
marcanmaybe, but the pressure range is wrong anyway
#asahi-dev · 2021-12-15 08:55
marcanit goes to at least 5100 if not more
#asahi-dev · 2021-12-15 08:54
marcanah, your pressure range is wrong
#asahi-dev · 2021-12-15 08:53
marcanI click, it thinks it's a palm
#asahi-dev · 2021-12-15 08:53
marcanyuuup
#asahi-dev · 2021-12-15 08:51
marcanI suspect this is palm detection going wrong
#asahi-dev · 2021-12-15 08:49
marcanwonder why this happens...

plus ›