Bug#514395: LUT settings are not restored after switching to console.
Michel Dänzer
daenzer at debian.org
Wed Feb 11 09:55:15 PST 2009
On Wed, 2009-02-11 at 18:35 +0100, Kurt Roeckx wrote:
> >
> > > or atleast get them restored when switching back to X.
> >
> > What method does dispwin use for changing the LUT settings?
>
> It uses this for randr 1.2:
> XRRCrtcGamma *crtcgam;
>
> debugr("Setting gamma using Randr 1.2\n");
>
> if ((crtcgam = XRRAllocGamma(r->nent)) == NULL) {
> debugr(" XRRAllocGamma failed\n");
> return 1;
> }
>
> for (i = 0; i < r->nent; i++) {
> crtcgam->red[i] = vals[0][i];
> crtcgam->green[i] = vals[1][i];
> crtcgam->blue[i] = vals[2][i];
> }
>
> XRRSetCrtcGamma(p->mydisplay, p->crtc, crtcgam);
> XSync(p->mydisplay, False); /* Flush the change out */
>
> XRRFreeGamma(crtcgam);
>
> Else it would use XF86VidModeSetGammaRamp()
At least with RandR 1.2, I suspect this could be an issue in the X
server rather than the driver.
--
Earthling Michel Dänzer | http://www.vmware.com
Libre software enthusiast | Debian, X and DRI developer
More information about the xorg-driver-ati
mailing list