Hacking Unofficial Luma build discussion

fmkid

Just another GBATemp's random guy
Member
Joined
Apr 23, 2015
Messages
1,911
Trophies
0
XP
1,424
Country
Colombia
Does this work with the latest firmware update yet?
I don't think so. This actual build is based-on Luma 10.2, which isn't compatible with the latest system version 11.14

Just remains to wait for a new version based-on latest Luma
 
  • Like
Reactions: Nutez

Nutez

Assimilator of Lumas
OP
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,813
Country
United Kingdom
Apologies for the slight delay, I was wrestling with the "new feature". The latest build now has Luma 10.2.1 and should therefore be compatible with system version 11.14.

The new feature is being able to set screen brightness below the preset minimum down to 1. Thankfully, the official Luma team provided the calculation to convert 'luminance' to brightness, but it took me a lot of trial and error to get the LCD registers to update correctly within a useful control flow (for reasons that I don't really understand XD)... Anyways, there are a few slight 'glitches' with using the low brightness, but there should be no impact on the regular and extended upper brightness limits.
 
Last edited by Nutez,

wavesofwar74

New Member
Newbie
Joined
Dec 1, 2020
Messages
1
Trophies
0
Age
34
XP
44
Country
United States
I feel like an absolute fool, but I can't figure out how to activate the features included in this unofficial Luma 10.2.1 build--namely the LCD brightness customization. I have the boot.firm placed in the root of the drive and everything appears to be working, but I can't seem to adjust brightness as described. Is there a simple button combo I'm missing?
 

Nutez

Assimilator of Lumas
OP
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,813
Country
United Kingdom
I feel like an absolute fool, but I can't figure out how to activate the features included in this unofficial Luma 10.2.1 build--namely the LCD brightness customization. I have the boot.firm placed in the root of the drive and everything appears to be working, but I can't seem to adjust brightness as described. Is there a simple button combo I'm missing?
No worries, the "Change screen brightness" interface works similarly to the official Luma version. When you select it from the Rosalina menu there is an explanation of the controls. However, tt might be that you need to press start first so that you can see both the top and bottom screens. Then try adjusting left and right a few times to see if there is a noticeable change in brightness.
 
Last edited by Nutez,
  • Like
Reactions: fmkid

Nutez

Assimilator of Lumas
OP
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,813
Country
United Kingdom
InputRedirection not working on this build, working on the official build.
Apologies, it's not something that I test for personally so it's probably been broken for a while. I brought in some changes from Nanquitas & PabloMK7 that I had missed before. Hopefully that will have fixed it.

New update expands on the TwlBg switcher PoC to now include AgbBg.cxi switching and open_agb_firm config.ini switching. Optionally, I'd suggest setting up Stellar's Open AGB Launcher as it allows you to suppress the power LED via Rosalina before launching into open_agb_firm from a home menu icon.
 
Last edited by Nutez,
  • Like
Reactions: fmkid

KungBore

Well-Known Member
Newcomer
Joined
Oct 9, 2020
Messages
62
Trophies
0
Age
32
XP
218
Country
Brazil
What exactly is this TwlBg? Can I use this to implement the screen brightness modifications in Rosalina to DS games?
 
Last edited by KungBore,

Nutez

Assimilator of Lumas
OP
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,813
Country
United Kingdom
What exactly is this TwlBg? Can I use this to implement the screen brightness modifications in Rosalina to DS games?
TwlBg.cxi is a file generated using Sono's TWPatcher. It allows you to choose different scaling and filters to apply in DS/i mode. Unfortunately, it's not able to turn down the actual backlight level like Rosalina can, but you are able to apply a bluelight filter and faux brightness-reduction filter.

Minor update: The Official Luma team added a new feature to show extra battery details that I thought was cool so I wanted to grab it early. Also, the custom screen filter interface will now display the previously saved values for the top screen on loading.
 

Sono

cripple piss
Developer
Joined
Oct 16, 2015
Messages
2,800
Trophies
2
Location
home
XP
9,221
Country
Hungary
I just remembered again that this build exists. I'll have to give it a try myself, as I actually like the idea of automatic CTR_Redshift.
I actually want to use the eShop, but I'm still on an ancient system version and ancient Luma, so I'll choose this.

Although I wonder, would you be interested in some of my other released and unreleased patches and system-modifying utilities?
Things like repurposing the 3D slider, software-controlled volume controls, completely disabling the 3DS speaker (headphone-jack only), etc.

Oh yes I remember using Sono's great LCD Tweaker before. Unfortunately, that was before I started messing around with homebrew myself, so I didn't save a copy of the (now unavailable) source code. The current brightness limits are imposed by the function used to set brightness. I don't really have experience with hardware and registers (library script-kiddie :ninja:), but maybe it can be done here?

The source code is actually still up, I just changed my github username :P

https://gist.github.com/SonoSooS/a1e339d67ef30b8394e572a2df6dcd27

It does use hardware regs, but the problem is that you need to patch gsp (especially on new3DS) to make it stay for more than a fraction of a second... Perhaps the better solution instead would be to patch the limitations of SetBrightnessRaw to allow the full range of brightness controls.
 

Nutez

Assimilator of Lumas
OP
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,813
Country
United Kingdom
I just remembered again that this build exists. I'll have to give it a try myself, as I actually like the idea of automatic CTR_Redshift.
I actually want to use the eShop, but I'm still on an ancient system version and ancient Luma, so I'll choose this.
Thanks, though I guess it's not really "full-auto" since it still needs to be applied via Rosalina first, but it does have the newer feature of being reapplied after sleep. I am interested in the idea of lowering the backlight and applying redshift as early as possible via holding a button when Luma is booting up. I'll need to experiment to see if I can get the timings right.

Although I wonder, would you be interested in some of my other released and unreleased patches and system-modifying utilities?
Things like repurposing the 3D slider, software-controlled volume controls, completely disabling the 3DS speaker (headphone-jack only), etc.
Absolutely, gotta catch 'em all! Your pioneering hardware work was what got me motivated to aggregate and tweak interesting Rosalina features haha. All that stuff sounds great, I just might actually have to work out how best to make features optional with config now XD.

The source code is actually still up, I just changed my github username :P

https://gist.github.com/SonoSooS/a1e339d67ef30b8394e572a2df6dcd27

It does use hardware regs, but the problem is that you need to patch gsp (especially on new3DS) to make it stay for more than a fraction of a second... Perhaps the better solution instead would be to patch the limitations of SetBrightnessRaw to allow the full range of brightness controls.
I forgot to check that :P. Patching SetBrightnessRaw sounds like a good plan, but I wouldn't know where to start on doing it XD. I was able to get low brightness working for now though with a hacky implementation.
 

fmkid

Just another GBATemp's random guy
Member
Joined
Apr 23, 2015
Messages
1,911
Trophies
0
XP
1,424
Country
Colombia
It would be great an option to save and then reload your actual settings about the 3DS screens brightness and color configuration after reboot the console (because afaik when you reboot the console, this settings are reseted to the normal values)
 

KungBore

Well-Known Member
Newcomer
Joined
Oct 9, 2020
Messages
62
Trophies
0
Age
32
XP
218
Country
Brazil
Hey, I'm having a strange issue with the latest version:

When I try to change screen brightness on Rosalina menu, the top screen reports an incorrect value (97 when it should be 48, like the bottom's) and if I change them, the top screen automatically goes to the maximum value (extended limit) and I can't change it unless I reboot the system.
 

Nutez

Assimilator of Lumas
OP
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,813
Country
United Kingdom
Hey, I'm having a strange issue with the latest version:

When I try to change screen brightness on Rosalina menu, the top screen reports an incorrect value (97 when it should be 48, like the bottom's) and if I change them, the top screen automatically goes to the maximum value (extended limit) and I can't change it unless I reboot the system.
Darn, I thought I had got it stable since it works on both my o3DS and n3DS consoles... Which console are you using? Have you had a screen replacement? Are you trying to use the extended limits? Could you try setting the brightness to the lowest level in the official system settings first? Does it make a difference if you press the d-pad quickly or hold it down? Putting the console to sleep is a quicker way to reset the brightness if things do go wrong.
 
  • Like
Reactions: KungBore

KungBore

Well-Known Member
Newcomer
Joined
Oct 9, 2020
Messages
62
Trophies
0
Age
32
XP
218
Country
Brazil
Darn, I thought I had got it stable since it works on both my o3DS and n3DS consoles... Which console are you using? Have you had a screen replacement? Are you trying to use the extended limits? Could you try setting the brightness to the lowest level in the official system settings first? Does it make a difference if you press the d-pad quickly or hold it down? Putting the console to sleep is a quicker way to reset the brightness if things do go wrong.

Hey! So, it actually only seems to happen when I play Mario Kart 7 and try to access the back light settings in-game. If I do it from the Home Menu or from Box Boy, it works as intended.

I have a New 3DS XL, never had a screen replacement. I didn't try using extended limits. I'll try setting the brightness to minimum in the system settings to check that, but the "set brightness on main menu first" workaround is good enough for me. Holding or tapping the d-pad doesn't change anything.

Edit: Oh yeah, I forgot to ask: what does the plugin loader do? I ask because it is set to [enabled] and I don't remember if I accidentally enabled it or what.
 
Last edited by KungBore,
  • Like
Reactions: Nutez

Nutez

Assimilator of Lumas
OP
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,813
Country
United Kingdom
Hey! So, it actually only seems to happen when I play Mario Kart 7 and try to access the back light settings in-game. If I do it from the Home Menu or from Box Boy, it works as intended.

I have a New 3DS XL, never had a screen replacement. I didn't try using extended limits. I'll try setting the brightness to minimum in the system settings to check that, but the "set brightness on main menu first" workaround is good enough for me. Holding or tapping the d-pad doesn't change anything.

Edit: Oh yeah, I forgot to ask: what does the plugin loader do? I ask because it is set to [enabled] and I don't remember if I accidentally enabled it or what.
Interesting, did you have the same problem with brightness using the official Luma build in Mario Kart 7? If you weren't using the extended limits then it shouldn't be using the extra code that I added (which is more likely to be unstable). I had a lot of trouble trying to implement the extended limits without constantly causing the max brightness bug you seem to have had. So unfortunately, I don't think I'll be able to solve that specific case and you will just need to use the workaround for now. Sorry about that...

To use the plugin loader: you'll need to setup the "default.3gx" plugin in "/luma/plugins" so you can activate it in-game by pressing the Select button. It's probably enabled by default but you can safely switch it off and it will stay off in future. The plugin is another way to active cheats and it also let's you search the in-game memory to create your own. The best place to get up-to-date information on that would be Nanquitas' Playground since the CTRPF thread can be confusing due to outdated discussions.
 

KungBore

Well-Known Member
Newcomer
Joined
Oct 9, 2020
Messages
62
Trophies
0
Age
32
XP
218
Country
Brazil
Interesting, did you have the same problem with brightness using the official Luma build in Mario Kart 7? If you weren't using the extended limits then it shouldn't be using the extra code that I added (which is more likely to be unstable). I had a lot of trouble trying to implement the extended limits without constantly causing the max brightness bug you seem to have had. So unfortunately, I don't think I'll be able to solve that specific case and you will just need to use the workaround for now. Sorry about that...

I didn't try Mario Kart 7 while I was using the official build.

About the fix, don't worry, I just reported it to help :)

To use the plugin loader: you'll need to setup the "default.3gx" plugin in "/luma/plugins" so you can activate it in-game by pressing the Select button. It's probably enabled by default but you can safely switch it off and it will stay off in future. The plugin is another way to active cheats and it also let's you search the in-game memory to create your own. The best place to get up-to-date information on that would be Nanquitas' Playground since the CTRPF thread can be confusing due to outdated discussions.

Oh, thanks!
 
  • Like
Reactions: Nutez

Sono

cripple piss
Developer
Joined
Oct 16, 2015
Messages
2,800
Trophies
2
Location
home
XP
9,221
Country
Hungary
I found an oopsie within less than a minute of use :ha:

You can accidentally press Y to turn off the bottom screen on a 2DS, and doesn't matter what buttons I press, there was no way to re-enable it without long-press powering off the 2DS.


Other than this oversight, it's pretty nice! I bet you had fun removing the menu item count limit.
Sadly can't say anything about the cheat system and such (because I don't need it), but the new features I do use are a nice addition.

Software volume and 3D slider when? B-)
 
  • Like
Reactions: Nutez and PabloMK7

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Sicklyboy @ Sicklyboy:
    maaaaan that's so awesome but I also don't want to fork over a hundo for it
  • Veho @ Veho:
    The fuuuuu---
  • Veho @ Veho:
    I thought it was an actual xBox at that price.
  • Sicklyboy @ Sicklyboy:
    I wanna grab a 360 Slim and a 360 E one of these days. Missed the boat of getting them at their lowest though, once they were discontinued. Could've got them for cheap back when I was a broke 20 something working at Target, but then again, I was a broke 20 something working at Target
  • Veho @ Veho:
    Being broke is no fun.
  • K3Nv2 @ K3Nv2:
    @Sicklyboy, $150 isn't that bad for a jtag slim on ebay
  • Veho @ Veho:
    I only wish it was actually playable.
  • Veho @ Veho:
    There's a guy on the Tube of You that makes playable mechanical arcade games out of Lego. This could work on the same principle.
  • Veho @ Veho:
    Just a couple of guys taking their manatee out for some fresh air, why you have to molest them?
  • Veho @ Veho:
    Stupid Chinese shop switched their shipping company and this one is slooooooow.
  • LeoTCK @ LeoTCK:
    STOP BUYING CHINESE CRAP THEN
  • LeoTCK @ LeoTCK:
    SUPPORT LOCAL PRODUCTS, MAKE REVOLUTION
  • LeoTCK @ LeoTCK:
    THEY KEEP REMOVING LOCAL SHIt AND REPLACING WItH INFERIOR CHINESE CRAP
  • LeoTCK @ LeoTCK:
    THATS WHY MY PARTNER CANT GET A GOOTWEAR HIS SIZE ANYMORE
  • LeoTCK @ LeoTCK:
    HE HAS BIG FOOT AND BIG DUCK
  • LeoTCK @ LeoTCK:
    d*ck i mean*
  • LeoTCK @ LeoTCK:
    lol
  • Veho @ Veho:
    Mkay.
  • Veho @ Veho:
    I just ordered another package from China just to spite you.
  • SylverReZ @ SylverReZ:
    Leo could not withstand communism.
  • SylverReZ @ SylverReZ:
    Its OUR products to begin with lol.
    SylverReZ @ SylverReZ: Its OUR products to begin with lol.