-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
package: x2gothinclient version: 1.1.0.2 priority: wishlist Control: tag -1 patch
Hi,
when using a touch-enabled device (like a tablet computer) as a thinclient, the cursor isn't properly aligned when you try to run a second display (non-touch-enabled) alongside with it.
What happens is that both displays get attached to form one large virtual screen, however, your touch-enabled surface obviously still only covers the primary display.
The X server doesn't understand this, and tries to map your movements on the primary display to the entire virtual screen surface, so the further to the side and to the bottom you get, the more off your mouse pointer will be from the actual position where you touch your primary display.
PRI SEC VIRT +-----+ +-----+ +----------+ |X | | | |O | | | | | | | | | | | | | | | | | | | +-----+ +-----+ +----------+
+-----+ +-----+ +----------+ | | | | | | | | | | | | | \ | | / | | O | | | | | | | +-----+ +-----+ +----------+
\ = where you touch / = where X draws the cursor in reality X = overlapping \ and / O = where X believes the cursor is, on the virtual screen
There's no sensible way to use a touch-enabled device with a second screen and no additional, external pointing device, so I've added this patch/workaround that switches to clone mode instead.
Of course, if you give up on using the touchscreen and plug in a USB mouse or other external pointing device, you could use two screens. This patch doesn't cover that situation.
Maybe someone else has an idea on what a sensible solution could look like that covers this as well? Like, scan for USB HID pointing devices ("find /dev/input -name "mouse*" | wc -l") and, if present in addition to a touchscreen, don't clone, but do side-by-side s if no touch device was detected at all? Tht might have some additional caveats, though, like the detection mis-firing if the touch component of a tablet device "cloaks" as mouse or offers some sort of mouse emulation support. Also, in that case, it would probably be smart to disable the touch interface completely so as to not confuse users why their touches don't align with the cursor. Does anybody know of a generic way to do this?
Again, input/suggestions welcome.
BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32)
iQEcBAEBAgAGBQJUq+xgAAoJEG7d9BjNvlEZrjkIAKDP60/c6aMxGsYiA3uZZ0Iw q2W6g3rsjE5t3r1wLjhCgq6VzH9hOvThT2g+ox6upAXoAtj3c9ePhIViboVmX5dH 8RBPucV14gjP7rXxeMlmQgBKo/y5wvtABxcDHO1jlzQoTL752bfANae7zzTrDQJS vdF+fIScHg/W2Ft/KkyYjlOqawCJ9euZOzvOMUmTLFkSrIu6CKAtVF3YZOptnN25 +VcCoiltYUxmGzhYNmGMa9g+zMCZcaPSKloE/pK4YaxQjbCV5NJKuiiILC/E24qa R3dssyt5m33muyQi+E8Ygger2faTe9efUrsDGMHnacCs94wqySUtTebQQzT12KE= =hoaC -----END PGP SIGNATURE-----
Processing control commands:
tag -1 patch Bug #719 [x2gothinclient] Clone screens for touch-enabled devices Added tag(s) patch.
-- 719: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=719 X2Go Bug Tracking System Contact owner@bugs.x2go.org with problems
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Another option would be to parse /proc/cmdline, to offer the user/administrator a way to override the detection.
If the file /proc/cmdline contains xinerama=something, where "something" is "left-of", "right-of", "above", "below", or "same-as", call xrandr with that parameter instead, regardless of what was detected.
(/proc/cmdline is the list of parameters passed to the kernel while booting. If you have never heard of it/noticed, try cat /proc/cmdline on your Linux system.)
BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32)
iQEcBAEBAgAGBQJUq/XzAAoJEG7d9BjNvlEZXnQH/RdzUBzhPZ8b3pQKSxlkVVbf j0DWx5aC6DVnp2ubBYE7kRcb/9MPcLnCMCn8cnQuiLUHwt4NadqtPyAlI9sPNncq qLMyvCknuI/42R0T0pliNiiciIdigHjJGAFmDMhQUmobeww+1i75PSjW1vo/eaJ+ twEr/KUG0YoYAmD1JQTLv4x0u4KWWOdK2zStCH8eiImjmRG7vfYbbZuP/FDOJN0D aYX2sl3L9wCbpQFdPUBXPagEweHVX7tRzbD0jyvcpOT5q8kQHhAkRB7Z9BS5KI/O l71vg0XVbq0ZcPxfeU6PHDd7x0A2Xlw8E78n+oTIbs2dZPQ6ONBF+NLU33SB/h8= =KnJu -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Please disregard my earlier patch and use this one instead.
I have added functionality for mouse detection and an override option via boot parameter.
BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32)
iQEcBAEBAgAGBQJUrCCLAAoJEG7d9BjNvlEZBYIH/2fjVDuMzmDHZmR5yiUwFxXA 5q1q5O/R//jV6UI2FJ4uXlFTNanBzlc6eQLdGKffi+guS7FmV7+Vz3UPTsSII2/M zOx7+3EYvh9D3ato7uXpH9ZfgMHeRcM7N2Ff57N3vhqyLdF9NWu7vNrwCZarqqNf 0oSkmbkN+tkQx4QqMV8HNJApP0mbqAgb8r/ImfAvBg25OTx6Tij9ibiTfVAV00Aq Xv+PgbOLambziMak9OUgwIQS3cet58RG+RXtqFLLIlCesH4fgMFPl058NEptUGke MX/KBUdAXUrBOQbbJkZziLMC7FZGVUQbbCersznRSuP/HU9QLsEQnVEUUzU5X9E= =foAA -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Third time's a charm ... Again, please disregard my earlier patch and use this one instead.
v2 had introduced formatting errors, also, two escape signs were missing. v3 fixes that.
BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32)
iQEcBAEBAgAGBQJUrCtJAAoJEG7d9BjNvlEZUKIH/134doSYAlVMRcreOr9pSUv/ pKKxOLSnR+P7sAjlyf4UGuqIUNIVdsrRdh1zTPwygZsnlLVU0rgnXum8K7bKV/WV XcvFKrBi5ZtURvMQoqrpDiXgvM4csfO9n01i5umTxIoX7l4hrmT4q4PKX8Wncaxb 2V49BQsG4Uah5juZHWUqt/LDWkjMK8fduaMkRogp7neoO6LT8G/WEKYhAUug8Roe n8ZyuyCKjB97lFpPZu1ub3deGX/WfSlT3CbJpbRtZO4anSAoNGC2f+JMmjY1mKNd An3v4Tbr6N7pS8HAPqwhKw1uAe0eqif7fD7FY2wp+PD/BiJwQ9Ng/Ejl8xFamf4= =v2VE -----END PGP SIGNATURE-----
Control: clone -1 -2 Control: retitle -2 use /proc/cmdline to tweak multi-head TCs Control: tag -2 patch Control: severity -2 wishlist
On Di 06 Jan 2015 15:49:23 CET, Stefan Baur wrote:
Another option would be to parse /proc/cmdline, to offer the user/administrator a way to override the detection.
If the file /proc/cmdline contains xinerama=something, where "something" is "left-of", "right-of", "above", "below", or "same-as", call xrandr with that parameter instead, regardless of what was detected.
(/proc/cmdline is the list of parameters passed to the kernel while booting. If you have never heard of it/noticed, try cat /proc/cmdline on your Linux system.)
Cloning this one as another bug...
Mike
--
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Processing control commands:
clone -1 -2 Bug #719 [x2gothinclient] Clone screens for touch-enabled devices Bug 719 cloned as bug 726 retitle -2 use /proc/cmdline to tweak multi-head TCs Bug #726 [x2gothinclient] Clone screens for touch-enabled devices Changed Bug title to 'use /proc/cmdline to tweak multi-head TCs' from 'Clone screens for touch-enabled devices' tag -2 patch Bug #726 [x2gothinclient] use /proc/cmdline to tweak multi-head TCs Ignoring request to alter tags of bug #726 to the same tags previously set severity -2 wishlist Bug #726 [x2gothinclient] use /proc/cmdline to tweak multi-head TCs Ignoring request to change severity of Bug 726 to the same value.
-- 719: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=719 726: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=726 X2Go Bug Tracking System Contact owner@bugs.x2go.org with problems
Hi Stefan,
On Di 06 Jan 2015 15:08:33 CET, Stefan Baur wrote:
Control: tag -1 patch
About sending patches: Please...
o use unix line ending style
o send-in patches that apply cleanly on code found in
<x2go-component>.git, HEAD of master branch
;-)
Mike
--
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...