[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#524670: marked as done (libxxf86vm1: Errors mentioning XFree86-VidModeExtension and XF86VidModeGetGammaRamp)



Your message dated Tue, 16 Mar 2010 23:55:31 +0100
with message-id <20100316225531.GL2699@radis.liafa.jussieu.fr>
and subject line Re: Bug#524670: XF86VidModeGetGammaRamp errors
has caused the Debian Bug report #524670,
regarding libxxf86vm1: Errors mentioning XFree86-VidModeExtension and XF86VidModeGetGammaRamp
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
524670: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524670
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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 <rain@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



--- End Message ---
--- Begin Message ---
On Sun, Sep 13, 2009 at 13:57:25 +0930, Kevin Shanahan wrote:

> Hi,
> 
> I came up against this error too. Just thought I'd let you know that
> the reason you are seeing this error is that the new xserver breaks
> the assumption a lot of apps make that the gamma ramp is always of
> size 256.
> 
> Try querying the size using XF86VidModeGetGammaRampSize first and then
> use a buffer of the returned size to get and set the gamma.
> 
Or better yet, use the randr XRRSetCrtcGamma API if available.

Thanks for the note, and closing this report as not our bug.

Cheers,
Julien

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply to: