GNOME Bugzilla – Bug 611769
Add support for touchscreen/pen device such as offered by HP tx2
Last modified: 2018-08-17 18:36:48 UTC
Created attachment 155190 [details] screenshot I see options for touchpad, and not touchscreen/pen under "N-Trig Touchscreen" Scrolling makes not sense here, and palm detection does not work. An option to disable touchscreen when pen is being used would be awesome.
Which version of GPDS do you use? And please paste the results of xinput --list and xinput --list-props "N-Trig Touchscreen".
gpointing-device-settings-1.3.1-5.fc13.i686 kernel-2.6.34-0.4.rc0.git2.fc14.i686 xorg-x11-drv-wacom-0.10.4-5.20100219.fc13.i686 $ yum install xorg-x11-apps $ xinput --list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ "N-Trig Pen" id=11 [slave pointer (2)] ⎜ ↳ "N-Trig Touchscreen" id=12 [slave pointer (2)] ⎜ ↳ "N-Trig Touchscreen" id=13 [slave pointer (2)] ⎜ ↳ "N-Trig Pen" id=14 [slave pointer (2)] ⎜ ↳ "SynPS/2 Synaptics TouchPad" id=16 [slave pointer (2)] ⎜ ↳ "Macintosh mouse button emulation" id=18 [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)] ↳ "Sleep Button" id=9 [slave keyboard (3)] ↳ "HP Webcam" id=10 [slave keyboard (3)] ↳ "AT Translated Set 2 keyboard" id=15 [slave keyboard (3)] ↳ "HP WMI hotkeys" id=17 [slave keyboard (3)] $ for f in 11 12 13 14;do xinput --list-props $f;done Device '"N-Trig Pen"': Device Enabled (137): 1 Device Accel Profile (259): 0 Device Accel Constant Deceleration (260): 1.000000 Device Accel Adaptive Deceleration (262): 1.000000 Device Accel Velocity Scaling (263): 10.000000 Evdev Axis Inversion (264): 0, 0 Evdev Axis Calibration (265): <no items> Evdev Axes Swap (266): 0 Axis Labels (267): "Abs X" (256), "Abs Y" (257), "Abs Pressure" (258) Button Labels (268): "Button 0" (255), "Button Unknown" (254), "Button Unknown" (254), "Button Wheel Up" (141), "Button Wheel Down" (142) Evdev Middle Button Emulation (269): 2 Evdev Middle Button Timeout (270): 50 Evdev Wheel Emulation (271): 0 Evdev Wheel Emulation Axes (272): 0, 0, 4, 5 Evdev Wheel Emulation Inertia (273): 10 Evdev Wheel Emulation Timeout (274): 200 Evdev Wheel Emulation Button (275): 4 Evdev Drag Lock Buttons (276): 0 Device '"N-Trig Touchscreen"': Device Enabled (137): 1 Device Accel Profile (259): 0 Device Accel Constant Deceleration (260): 1.000000 Device Accel Adaptive Deceleration (262): 1.000000 Device Accel Velocity Scaling (263): 10.000000 Evdev Axis Inversion (264): 0, 0 Evdev Axis Calibration (265): <no items> Evdev Axes Swap (266): 0 Axis Labels (267): "Abs X" (256), "Abs Y" (257), "None" (0), "None" (0) Button Labels (268): "Button 0" (255), "Button Unknown" (254), "Button Unknown" (254), "Button Wheel Up" (141), "Button Wheel Down" (142) Evdev Middle Button Emulation (269): 2 Evdev Middle Button Timeout (270): 50 Evdev Wheel Emulation (271): 0 Evdev Wheel Emulation Axes (272): 0, 0, 4, 5 Evdev Wheel Emulation Inertia (273): 10 Evdev Wheel Emulation Timeout (274): 200 Evdev Wheel Emulation Button (275): 4 Evdev Drag Lock Buttons (276): 0 Synaptics Palm Detection (306): 1 Synaptics Tap Time (279): 100 Synaptics Two-Finger Scrolling (288): 1, 1 Synaptics Click Action (301): 1, 1, 1 Device '"N-Trig Touchscreen"': Device Enabled (137): 1 Device Accel Profile (259): 0 Device Accel Constant Deceleration (260): 1.000000 Device Accel Adaptive Deceleration (262): 1.000000 Device Accel Velocity Scaling (263): 10.000000 Evdev Axis Inversion (264): 0, 0 Evdev Axis Calibration (265): <no items> Evdev Axes Swap (266): 0 Axis Labels (267): "Abs X" (256), "Abs Y" (257), "None" (0), "None" (0) Button Labels (268): "Button 0" (255), "Button Unknown" (254), "Button Unknown" (254), "Button Wheel Up" (141), "Button Wheel Down" (142) Evdev Middle Button Emulation (269): 2 Evdev Middle Button Timeout (270): 50 Evdev Wheel Emulation (271): 0 Evdev Wheel Emulation Axes (272): 0, 0, 4, 5 Evdev Wheel Emulation Inertia (273): 10 Evdev Wheel Emulation Timeout (274): 200 Evdev Wheel Emulation Button (275): 4 Evdev Drag Lock Buttons (276): 0 Device '"N-Trig Pen"': Device Enabled (137): 1 Device Accel Profile (259): 0 Device Accel Constant Deceleration (260): 1.000000 Device Accel Adaptive Deceleration (262): 1.000000 Device Accel Velocity Scaling (263): 10.000000 Evdev Axis Inversion (264): 0, 0 Evdev Axis Calibration (265): <no items> Evdev Axes Swap (266): 0 Axis Labels (267): "Abs X" (256), "Abs Y" (257), "Abs Pressure" (258) Button Labels (268): "Button 0" (255), "Button Unknown" (254), "Button Unknown" (254), "Button Wheel Up" (141), "Button Wheel Down" (142) Evdev Middle Button Emulation (269): 2 Evdev Middle Button Timeout (270): 50 Evdev Wheel Emulation (271): 0 Evdev Wheel Emulation Axes (272): 0, 0, 4, 5 Evdev Wheel Emulation Inertia (273): 10 Evdev Wheel Emulation Timeout (274): 200 Evdev Wheel Emulation Button (275): 4 Evdev Drag Lock Buttons (276): 0
(In reply to comment #2) > $ xinput --list > ⎡ Virtual core pointer id=2 [master pointer (3)] > ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] > ⎜ ↳ "N-Trig Pen" id=11 [slave pointer > (2)] > ⎜ ↳ "N-Trig Touchscreen" id=12 [slave pointer > (2)] > ⎜ ↳ "N-Trig Touchscreen" id=13 [slave pointer > (2)] Oops! I am sorry the xinput which you use is XI2. So please look into Xorg.0.log. You can see "(II) XINPUT: Adding extended input device "N-Trig Touchscreen" (type: XXXX). XXX will TOUCHPAD, but it should be TOUCHSCREEN. GPDS does not support TOUCHSCREEN devices yet, but I have a plan to implement a calibrator for TOUCHSCREEN like Nintendo DS has.
(II) XINPUT: Adding extended input device ""N-Trig Pen"" (type: TABLET) ... (II) XINPUT: Adding extended input device ""N-Trig Touchscreen"" (type: TOUCHPAD) ... (II) XINPUT: Adding extended input device ""N-Trig Pen"" (type: TABLET) ... (II) XINPUT: Adding extended input device ""N-Trig Touchscreen"" (type: TOUCHPAD) (II) "N-Trig Touchscreen": initialized for absolute axes. (II) config/udev: Adding input device "N-Trig Touchscreen" (/dev/input/mouse5) (EE) No input driver/identifier specified (ignoring) (II) config/udev: Adding input device "AT Translated Set 2 keyboard" (/dev/input/event5) ... bingo. probably a bug with wacom driver ?
(In reply to comment #4) > bingo. probably a bug with wacom driver ? I guess udev or xorg.d. Please see http://fedoraproject.org/wiki/Input_device_configuration
thanks, escalated to https://bugzilla.redhat.com/show_bug.cgi?id=571639
what driver do you want to handle ntrig devices? the wacom driver or evdev?
This has been fixed with fedora. Re-opening this, as we lack the option to setup touchscreen. * An ability to distinguish between pen/touch/mouse cursor ( the cursor changes according to input device ) * Ability to switch off touch input, when pen is being used ( palm detection ) * Ability to "pop-up" on screen keyborad/cellwriter when pen input is being used. ( this probably belongs to gtk )
Thanks re-opening. I did also think reuse this bug. BTW, I have no touchscreen device, so please test when I implement touchscreen features.
GPointingDeviceSettings is not under active development anymore and saw its last non-cosmetic code changes in 2010. Its codebase has been archived: https://gitlab.gnome.org/Archive/gpointing-device-settings/commits/master Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.