Package: libxxf86vm1 Version: 1:1.0.2-1 Severity: normal Some apps that adjust or report the gamma curves stopped working since upgrading to xorg 7.4, they do nothing except print things like:
X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 129 (XFree86-VidModeExtension) Minor opcode of failed request: 17 (XF86VidModeGetGammaRamp) Value in failed request: 0x17 Serial number of failed request: 8 Current serial number in output stream: 8 Example app: ---8<--- invgamma.c #include <X11/Xlib.h> #include <X11/extensions/Xext.h> #include <X11/extensions/xf86vmode.h> #define GAMMA_COMPONENTS 3 #define GAMMA_RESOLUTION 256 /* * Ben Winslow <r...@bluecherry.net> - 9/28/2001 * gcc -o invgamma invgamma.c -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm */ int main(int argc, char *argv[]) { Display *dpy; unsigned short ramp_in[GAMMA_COMPONENTS][GAMMA_RESOLUTION]; unsigned short ramp_out[GAMMA_COMPONENTS][GAMMA_RESOLUTION]; int x, y; dpy = XOpenDisplay(NULL); if (XF86VidModeGetGammaRamp(dpy, DefaultScreen(dpy), GAMMA_RESOLUTION, ramp_in[0], ramp_in[1], ramp_in[2]) == False) return 1; for (x = 0; x < GAMMA_COMPONENTS; x++) { for (y = 0; y < GAMMA_RESOLUTION; y++) { ramp_out[x][y] = ramp_in[x][(GAMMA_RESOLUTION - 1) - y]; } } if (XF86VidModeSetGammaRamp(dpy, DefaultScreen(dpy), GAMMA_RESOLUTION, ramp_out[0], ramp_out[1], ramp_out[2]) == False) return 1; return 0; } --->8--- invgamma.c GSR -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.29-1-686 (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libxxf86vm1 depends on: ii libc6 2.9-7 GNU C Library: Shared libraries ii libx11-6 2:1.2.1-1 X11 client-side library ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar libxxf86vm1 recommends no packages. libxxf86vm1 suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org