Homebrew CTR_Redshift - hardware-based blue light filter for old3DS and 2DS

  • Thread starter Sono
  • Start date
  • Views 87,687
  • Replies 163
  • Likes 44

Nutez

Assimilator of Lumas
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,814
Country
United Kingdom
  • Like
Reactions: Hmed

Nutez

Assimilator of Lumas
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,814
Country
United Kingdom
Edit: Updated firm here.

So I figured it out in the end, it was just a typo in my redshift.h file causing all the includes to break xD. Then I needed to add an '-lm' flag into the makefile as shown here: https://github.com/AuroraWright/Lum...a24c#diff-df3b0b90e9112ef9de99f7fb6e99c1acR16 to sort some "undefined reference to" errors.

Anyway, on to the good part...

I've attached firms for N3DS and O3DS - so please use the correct one! The only reason for the difference is that Luma chops the top menu option off for O3DS (to stop you accessing the "New 3DS menu..."). However, I wanted the redshift option to be top of the list so I could easily select it with my eyes closed.

The minor changes to Sono's original module implementation are all just my personal preferences:
  • SELECT now toggles LEDs (LEDs also toggle upon opening menu)
  • B instead returns to previous menu
  • UP/DOWN now navigate, RIGHT/LEFT change values
  • X applies changes to top screen
  • Text change from Luma blue to red/white
Big thanks to Sono for giving us CTR_Redshift in the first place and the Luma team for making it possible to add modules.

Edit: Added source files and fixed brightness >1 issue xD
 

Attachments

  • redshift_firms.zip
    264.3 KB · Views: 481
  • redshift_source.zip
    11.1 KB · Views: 273
Last edited by Nutez,

Der_Blockbuster

Well-Known Member
Member
Joined
Mar 2, 2016
Messages
878
Trophies
0
Age
24
XP
2,886
Country
Germany
Short Question, I compared my N3dsXL to the N2dsXl of my Girlfriend and noticed that both screens are a bit more yellow, so not really true white. Can this be fixed with this homebrew?
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,825
Trophies
2
Location
home
XP
9,374
Country
Hungary
Short Question, I compared my N3dsXL to the N2dsXl of my Girlfriend and noticed that both screens are a bit more yellow, so not really true white. Can this be fixed with this homebrew?

Completely can't be fixed due to the LCD characteristics, but you could make a LUT which is close enough to a good color palette.
 

Der_Blockbuster

Well-Known Member
Member
Joined
Mar 2, 2016
Messages
878
Trophies
0
Age
24
XP
2,886
Country
Germany
Completely can't be fixed due to the LCD characteristics, but you could make a LUT which is close enough to a good color palette.
Oh okay, thank you for the answer.
Can you help me? I've never used your homebrew, will this be running in the background at all times?
How difficult is it to change it?
I'm currently not @home so I can't try it on my own.

Appreciate the help!
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,825
Trophies
2
Location
home
XP
9,374
Country
Hungary
Oh okay, thank you for the answer.
Can you help me? I've never used your homebrew, will this be running in the background at all times?
How difficult is it to change it?
I'm currently not @home so I can't try it on my own.

Appreciate the help!

I'd need to write a homebrew to do that.
It doesn't run in the background because it's hardware-based.

Also, have you tried this one? You can also make the screen a little bit more blue. In fact, I think there is an option to adjust the gamma for each color individually.

If you go the bruteforce way then afaik you can keep the button held while adjusting to adjust the LUT in real time.
 

Der_Blockbuster

Well-Known Member
Member
Joined
Mar 2, 2016
Messages
878
Trophies
0
Age
24
XP
2,886
Country
Germany
I'd need to write a homebrew to do that.
It doesn't run in the background because it's hardware-based.

Also, have you tried this one? You can also make the screen a little bit more blue. In fact, I think there is an option to adjust the gamma for each color individually.

If you go the bruteforce way then afaik you can keep the button held while adjusting to adjust the LUT in real time.
Yeah in the end, I just have to reduce the red a bit, but yeah the bruteforce method should get me where I want to.
I'll try that and talk back how It went.
 
  • Like
Reactions: Sono

PRAGMA

Well-Known Member
Member
Joined
Dec 29, 2015
Messages
2,258
Trophies
1
Location
Ireland
Website
github.com
XP
5,038
Country
Ireland
So I figured it out in the end, it was just a typo in my redshift.h file causing all the includes to break xD. Then I needed to add an '-lm' flag into the makefile as shown here: https://github.com/AuroraWright/Lum...a24c#diff-df3b0b90e9112ef9de99f7fb6e99c1acR16 to sort some "undefined reference to" errors.

Anyway, on to the good part...

I've attached firms for N3DS and O3DS - so please use the correct one! The only reason for the difference is that Luma chops the top menu option off for O3DS (to stop you accessing the "New 3DS menu..."). However, I wanted the redshift option to be top of the list so I could easily select it with my eyes closed.

The minor changes to Sono's original module implementation are all just my personal preferences:
  • SELECT now toggles LEDs (LEDs also toggle upon opening menu)
  • B instead returns to previous menu
  • UP/DOWN now navigate, RIGHT/LEFT change values
  • X applies changes to top screen
  • Text change from Luma blue to red/white
Big thanks to Sono for giving us CTR_Redshift in the first place and the Luma team for making it possible to add modules.
Setting it to higher than 1 (for more brightness) does a bad:
Failed to fetch tweet https://twitter.com/PRAGMA/status/1064141841963065345
 
  • Like
Reactions: Itzumi

jelbo

Ōkami!
Member
Joined
Sep 12, 2003
Messages
868
Trophies
2
Location
Netherlands
Website
cursors.pocketheaven.com
XP
880
Country
Netherlands
Last edited by jelbo,
  • Like
Reactions: Nutez

Nutez

Assimilator of Lumas
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,814
Country
United Kingdom
Setting it to higher than 1 (for more brightness) does a bad:
https://twitter.com/PRAGMA/status/1064141841963065345
Ah, sorry that was me guessing the MAX_BRIGHTNESS value when making a header file. I'm sure I checked against the original cia & luma implementation and thought it could go up to 10: evidently not. I've rebuilt both firms to have 1.0 as max and provided my hacky source files for anyone who would like to critique and tweak.
 
  • Like
Reactions: jelbo

PRAGMA

Well-Known Member
Member
Joined
Dec 29, 2015
Messages
2,258
Trophies
1
Location
Ireland
Website
github.com
XP
5,038
Country
Ireland
Ah, sorry that was me guessing the MAX_BRIGHTNESS value when making a header file. I'm sure I checked against the original cia & luma implementation and thought it could go up to 10: evidently not. I've rebuilt both firms to have 1.0 as max and provided my hacky source files for anyone who would like to critique and tweak.
So theres absolutely no way to make the screen BRIGHTER thats the only reason I want this
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,825
Trophies
2
Location
home
XP
9,374
Country
Hungary
So theres absolutely no way to make the screen BRIGHTER thats the only reason I want this

If you have a new3DS then it's not possible until there will be a proper gsp patch which disables automatic brightness and someone writes a daemon inside Rosalina to look for 3D mode and switch between 2x brightness and 0.5x brightness accordingly.

2DS is the best in this regard because it doesn't have 3D, so the backlight will be kept until something happens.
 
  • Like
Reactions: jelbo

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Waste of the 128kb they take
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Tiger handhelds are good for one thing.... Occupying space in a landfill
  • K3Nv2 @ K3Nv2:
    They make good burning plastic
  • BigOnYa @ BigOnYa:
    Makes me wonder if the Pi5 can play PS2? If there's even a core for it yet.
  • K3Nv2 @ K3Nv2:
    Pi5 should be able to do ps2
  • Psionic Roshambo @ Psionic Roshambo:
    Try Dragon Quest VIII it ran perfectly on a core 2 Duo I had
  • Psionic Roshambo @ Psionic Roshambo:
    Easiest game to run I found
  • K3Nv2 @ K3Nv2:
    Ps2 emulation is cake compared to 3 years ago
  • Psionic Roshambo @ Psionic Roshambo:
    Hardest is probably Gran Turismo 4
  • Psionic Roshambo @ Psionic Roshambo:
    It's much better now yes but Gran Turismo 4 is still the hardest one to emulate that I have in my collection
  • Psionic Roshambo @ Psionic Roshambo:
    Runs perfectly fine but it's as if I can feel it always on the boarder line of dropping a frame lol
  • BigOnYa @ BigOnYa:
    I ordered a spin ball couple days ago to add to my arcade cabinet, will be nice for games like golden tee, or bowling
  • Psionic Roshambo @ Psionic Roshambo:
    I always wanted a controller for like Ikari Warriors, Time Soldiers, Heavy Barrel, Forgotten Worlds games like those
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Not even sure what to call that controller
  • Xdqwerty @ Xdqwerty:
    an online friend I've known since 2021 left me :( bc my attitude is "cutty"
  • Psionic Roshambo @ Psionic Roshambo:
    Sylvester Stallone should have played Kyle Reese lol Arnold still as the Terminator
  • BakerMan @ BakerMan:
    TF DOES "CUTTY" EVEN MEAN?
  • Xdqwerty @ Xdqwerty:
    @BakerMan, he is peruvian so it's probably an idiom
  • BigOnYa @ BigOnYa:
    I thought Cutty was a west coast rapper
  • K3Nv2 @ K3Nv2:
    Cutter
  • Psionic Roshambo @ Psionic Roshambo:
    Dr Cutty
  • Psionic Roshambo @ Psionic Roshambo:
    It's from House MD lol
  • K3Nv2 @ K3Nv2:
    I took too much viagra Dr cutty oh wait
  • Ligudink @ Ligudink:
    What in the goddamn
    Ligudink @ Ligudink: What in the goddamn