Closed onkobu closed 1 year ago
Forgot to mention that it is an X11 with all configuration in /etc/X11/xorg.conf.d disabled.
$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ USBest Technology SiS HID Touch Controller id=11 [slave pointer (2)]
⎜ ↳ Logitech USB Optical Mouse id=12 [slave pointer (2)]
⎜ ↳ ETPS/2 Elantech Touchpad id=17 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ UVC Camera (046d:0825) id=9 [slave keyboard (3)]
↳ HID 046a:0011 id=10 [slave keyboard (3)]
↳ Lenovo EasyCamera: Lenovo EasyC id=14 [slave keyboard (3)]
↳ Ideapad extra buttons id=15 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=16 [slave keyboard (3)]
↳ Yubico Yubikey 4 OTP+U2F+CCID id=13 [slave keyboard (3)]
$> lsusb
…
Bus 001 Device 006: ID 0457:1057 Silicon Integrated Systems Corp. SiS HID Touch Controller
…
$> xinput --list --long
…
↳ USBest Technology SiS HID Touch Controller id=11 [slave pointer (2)]
Reporting 6 classes:
Class originated from: 11. Type: XIButtonClass
Buttons supported: 7
Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right"
Button state:
Class originated from: 11. Type: XIValuatorClass
Detail for Valuator 0:
Label: Abs MT Position X
Range: 0.000000 - 65535.000000
Resolution: 0 units/m
Mode: absolute
Current value: 25166.456427
Class originated from: 11. Type: XIValuatorClass
Detail for Valuator 1:
Label: Abs MT Position Y
Range: 0.000000 - 65535.000000
Resolution: 0 units/m
Mode: absolute
Current value: 29215.554199
Class originated from: 11. Type: XIValuatorClass
Detail for Valuator 2:
Label: Rel Horiz Scroll
Range: -1.000000 - -1.000000
Resolution: 0 units/m
Mode: relative
Class originated from: 11. Type: XIValuatorClass
Detail for Valuator 3:
Label: Rel Vert Scroll
Range: -1.000000 - -1.000000
Resolution: 0 units/m
Mode: relative
Class originated from: 11. Type: XITouchClass
Touch mode: direct
Max number of touches: 10
…
Did you see step 6 in the TROUBLESHOOTING section? If you run libinput-gestures -r
then, as it says:
"If you do not see any GESTURE_*
events then unfortunately your touchpad and/or libinput does not report multi-finger gestures so libinput-gestures
can not work. The discrimination of gestures is done completely within libinput, before they get passed to libinput-gestures
."
Your sample output shows no GESTURE
events so I presume you do not get them.
Run libinput debug-events
if you don't trust libinput-gestures -r
output and confirm to yourself that libinput is not reporting gestures. Sorry, but there is nothing this utility can do about that.
I read the docs/ troubleshooting as if TOUCH-events will be turned into GESTURE-events based on coordinates/ algorithm/ magic. So the changes must go into libinput itself so that either TOUCH* is to be replaced with GESTURE-something or in addition to TOUCH* also GESTURE-events appear?
Unsubscribe
On Tue, Feb 21, 2023, 9:18 AM Onkobu Tanaake @.***> wrote:
I read the docs/ troubleshooting as if TOUCH-events will be turned into GESTURE-events based on coordinates/ algorithm/ magic. So the changes must go into libinput itself so that either TOUCH* is to be replaced with GESTURE-something or in addition to TOUCH* also GESTURE-events appear?
— Reply to this email directly, view it on GitHub https://github.com/bulletmark/libinput-gestures/issues/345#issuecomment-1438753452, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHAI5QHR7JZG5S3QMTEZLUTWYTTEHANCNFSM6AAAAAAUJWGC4U . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I think the device you are referring to here controls a touchscreen, not a touchpad. Note that libinput does not process gestures for touchscreens, only touchpads so this utility is not relevant to you. Please confirm.
It is a touchscreen, wasn't aware of the small but important differences. Yet I don't understand why a touchpad controlling the same 2D plane has such context information or why it gets along without it. For me as end user a touchpad or drawing surface (like the Bamboo-things) or a touch screen resemble the same 2D interaction canvas.
So it is up to the event receiver, e.g. Gtk, Qt or such to interprete events accordingly. That is why it barely works in browsers but not for X in general. And libinput would be too early in the event processing chain!?
I'm basically keen on events like swipe (on the desktop/ X root window) to change virtual workspaces offered by the window manager. Pinching with each finger in a different window is an edge case I don't care about. I'd be absolutely fine with events being ignored as soon as they're in the scope of an application window. But that'd be up to the window manager and its root window interaction capabilities!?
Sorry, I've never bothered to think about why there is any technical difference other than what it says in that link I provided to you. As you can see though it is very clear, libinput does not process gesture for a touchscreen so this issue/discussion is not relevant here and I am closing this issue.
Before creating a new issue, please follow each step in the TROUBLESHOOTING section of the main README.
(Updated currently running, was doing a lot of -d/ -r/ start/ stop/ restart)
Describe the issue The commands
wmctrl
andxdotool
work as expected, for example switching workspaces with both works fine. Using libinput-gestures with -r also shows events coming in, e.g.:With only 3 fingers the line with 3 is missing. Depending on the precision TOUCH_FRAMEs come in any shape, for example finger 0+2, 1+2+3 and so on.
A synaptics touchpad is recognized correctly in the same session. The touch monitor is not. Window manager is XFCE4. I also experimented with finger count, e.g.
Not a single gesture is recognized thus
libinput-gesture -d
stays up and running but never emits a gesture with this controller.