Do not display the screensaver

Adam Jackson ajax at nwnk.net
Wed May 19 07:45:11 PDT 2010


On Wed, 2010-05-19 at 19:01 +0800, Cui, Hunk wrote:
> Hi, Jackson,
> 	First thanks for your explanation, through the debugging, I found
> when I start the "fade to black", the gamma values will be setup to
> the default value (1.0), it will be transferred to the XServer. And in
> XServer, the value will be write into the VidModeSetGamma ->
> xf86ChangeGamma -> xf86RandR12ChangeGamma -> gamma_to_ramp (calculate
> the RGB values) -> RRCrtcGammaSet. Now I have some difficulty. In
> gamma_to_ramp step, I found the type of ramp value is CARD16. Why is
> not the CARD8? For R,G,B values, it only have 256bytes RAM.

X color specifications are 16 bits per channel.  If your gamma ramp is
less precise than that, your driver is allowed to truncate, but the
server's internal representation is abstracted away from the driver's
representation.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100519/6c180c93/attachment.pgp>


More information about the xorg-devel mailing list