flat assembler
Message board for the users of flat assembler.

Index > Linux > [fasmg] noblue: takes the blue out of an X11 screen

Author
Thread Post new topic Reply to topic
sunfloro



Joined: 10 Oct 2026
Posts: 8
sunfloro 23 Nov 2026, 04:55
...I made a program with the help of claude fable 5.2. I have extreme sensitivity to short wavelength blue light.

The reason I made this instead of just using nightlight is, night light on a distro where it's possible to dim blue to zero generally also takes out a lot of the green, making a very low-constrast screen. noblue works differently. it zeroes the blue channel and leaves both red and green at 100%.

I am learning fasmg, and did review all of the code in this program. First I had the AI review it a few times, using different models to catch/improve different things. Then I did a read through with opus 5.5. Then I had fable do a review, then I reviewed it with fable 5.2, and read the entire code a 2nd time. The point at which I felt it was ready for public release was when the AI realized it didn't need to write anything, and made it a read only program.

If any of you also suffer from sensitivity to short wavelength blue light, I hope noblue is as life=changing for you as it's been for me. If any of you more experienced asm programmers have any feedback on what could be better, I'd be grateful.

https://github.com/sunflower-sunfloro/noblue
Post 23 Nov 2026, 04:55
View user's profile Send private message Reply with quote
Jessé



Joined: 03 May 2025
Posts: 158
Location: Brazil
Jessé 25 Nov 2026, 23:56
Very cool idea, even better being done in Assembly!

I've tested it under XLibre in an OLED screen - quite satisfactory result.
Quick question: this program changes all colors that has any blue on it, right?
Meaning it changes 65536 colors, so they will have blue channel = 0.
In the root window color table, right?
I'd like to hear the main theory behind the working mechanism, since I'm now too lazy to extract it off source code.
Since I think it might be useful to add some control over the blue channel, so different users might customize effect intensity.

Thanks...
Post 25 Nov 2026, 23:56
View user's profile Send private message Visit poster's website Reply with quote
sunfloro



Joined: 10 Oct 2026
Posts: 8
sunfloro 28 Nov 2026, 02:26
Thanks for trying it, and on XLibre too! An OLED is the best case: with no backlight, blue 0 means no blue light at all.

Not quite a colormap. noblue sets the graphics card's own color table (the gamma ramp) for each screen. The card runs every pixel through it on the way to the screen. It has a separate curve for red, green and blue. noblue leaves red and green at full strength and sets every blue entry to 0, so every color loses its blue at once. Then it asks the Linux kernel what is really in each table, and passes only if blue is 0 from top to bottom.

On the control: noblue stays a plain on/off tool, since for eyes like mine any blue is too much. But your idea is a good one, so here is lowblue: noblue's code, changed so that each color gets a level from 0 to 100, like "lowblue 100 100 30". The zip has the source, README, tests and license. It has passed its tests (165 checks) but has not been run on real hardware yet, so I'd be glad to hear how it does.

If you'd like to take it further, feel free to fork it and host it yourself. It's GPL version 3 only.


Description:
Download
Filename: lowblue.zip
Filesize: 49.21 KB
Downloaded: 8 Time(s)

Post 28 Nov 2026, 02:26
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.