Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#571025: xserver-xorg-input-wacom: Impossible to set TVResolutions

4 views
Skip to first unread message

Danya Alexeyevsky

unread,
Feb 22, 2010, 5:10:02 PM2/22/10
to
Package: xserver-xorg-input-wacom
Version: 0.10.3+20100109-1
Severity: normal
Tags: patch

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

wacom-receive-resolutions.patch
0 new messages