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

  • Thread starter Sono
  • Start date
  • Views 69,514
  • Replies 163
  • Likes 42

Nutez

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

Nutez

Assimilator of Lumas
Member
Joined
Jan 2, 2018
Messages
165
Trophies
0
Location
The other side of paradise.
XP
1,646
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: 339
  • redshift_source.zip
    11.1 KB · Views: 182
Last edited by Nutez,

Der_Blockbuster

Well-Known Member
Member
Joined
Mar 2, 2016
Messages
864
Trophies
0
Age
22
XP
2,602
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,514
Trophies
2
Location
rehabilitation center
XP
6,278
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
864
Trophies
0
Age
22
XP
2,602
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,514
Trophies
2
Location
rehabilitation center
XP
6,278
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
864
Trophies
0
Age
22
XP
2,602
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,202
Trophies
1
Location
127.0.0.1
Website
pragma.pw
XP
4,597
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
854
Trophies
0
Location
Netherlands
Website
cursors.pocketheaven.com
XP
650
Country
Netherlands
Last edited by jelbo,
  • Like
Reactions: Nutez

Nutez

Assimilator of Lumas
Member
Joined
Jan 2, 2018
Messages
165
Trophies
0
Location
The other side of paradise.
XP
1,646
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,202
Trophies
1
Location
127.0.0.1
Website
pragma.pw
XP
4,597
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,514
Trophies
2
Location
rehabilitation center
XP
6,278
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
General chit-chat
Help Users
    Dark_Phoras @ Dark_Phoras: No, the Wii U is good