Xserver modding and whatnot...

First of all I know it's not a very good title, but it was the best I could come up with, so feel free to suggest something else.

On to the problem at hand, which is that I'd like to intervene and change the image which is actually displayed on the monitor (before it is displayed obviously) and modify it. The algorithm I intent to apply is the same for all pixels, but it isn't something general like grayscale conversion or similar.

The best idea I can come up with as to how to handle this problem, are generally way to advanced for me, but then again they are pretty far fetched, just look at the title.

Anyway, if you got any idea, please let me know.

Best regards.

Edit:I should mention that this is to work on a standard Xserver with OpenBox or similar.

Re: Xserver modding and whatnot...

If you want to change the pixels X draws then you would work with the xserver not the graphics driver. Perhaps you can have a look at the source code for something like redshift to see how it gets between the xserver and the screen.

Re: Xserver modding and whatnot...

I don't know what redshift is, but I'll certainly look it up. I also assumed that it would be possible to do something with X, but I simply don't know enough about how such things work. I'm more of a console applications guy.

Re: Xserver modding and whatnot...

Depending on what the algorythm is that you are thinking of, you may want to look into Xlibs colormaps.

Responding to every redrawing of every client and any other screen activity on the server then recalculating and redrawing the whole screen would be extremely resource intensive. But if you modify the colormap you'll allow X to go about it's business but with new definitions for colors.

Re: Xserver modding and whatnot...

Trilby wrote:

Depending on what the algorythm is that you are thinking of, you may want to look into Xlibs colormaps.

Responding to every redrawing of every client and any other screen activity on the server then recalculating and redrawing the whole screen would be extremely resource intensive. But if you modify the colormap you'll allow X to go about it's business but with new definitions for colors.

My thoughts exactly. There would be a number of simple and similar algorithms, probably 7 in total, but only one i effect of the users choice. Well, that's the start of it anyway. Later I might want to expand upon the concept, but color maps still seem like the right direction.

Anyway, I have to hurry getting to a concert. Will be back later of course.