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. Cheers, Kevin.