Hi,
it appears that setting tvResolutions through either of 'xsetwacom' or
'xinput set-int-prop' is impossible for any TwinView value. Any such
attempt returns BadInt error.
The problem appears to be in sanity checks for the received values in
wacom drivers: it was required for both sums of widths and heights of
monitors to be equal to xinerama screen size. This permits for only very
strange screen layouts, like this:
+---+----+
| 1 | |
+---+----+
| | 2 |
+---+----+
The attached patch fixes the checks to a more reasonable behaviour
(which depends on whether monitors are reported to be arranged
horizontally or vertically).
This led to a second problem in xsetwacom: initially tvResolutions is
set to [0,0,0,0], which means "autodetect". Thus, sending either
TVResolution0, or TVResolution1 would yield values that will not pass
the checks. (One can bypass this bug by giving 4 values to xsetwacom
set ... TVResolution0). I assume a reasonable bypass would be to remove
parameter TVResolution1 from xsetwacom altogether and rename
TVResolution0 to TVResolutions. I assume that changing interface is
possible, since I see no way this parameter could be used before.
This suggested change is also in the attached patch.
Cheers,
-- Danya.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages xserver-xorg-input-wacom depends on:
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii libx11-6 2:1.3.3-1 X11 client-side library
ii libxi6 2:1.3-2 X11 Input extension library
ii xserver-xorg-core 2:1.7.4-2 Xorg X server - core server
xserver-xorg-input-wacom recommends no packages.
Versions of packages xserver-xorg-input-wacom suggests:
ii xinput 1.4.2-1 Runtime configuration and test of
-- no debconf information