Hacking Question How to put back the Switch into shipping mode?

igoticecream

Well-Known Member
OP
Newcomer
Joined
Jul 6, 2018
Messages
55
Trophies
0
Age
36
XP
369
Country
Spain
Ok so turns out the switch still consume battery even if it's off. I'd like to store my backup vulnerable switch and preserve battery life.

I was digging in the forum and turns out that in order to put it back into shipping mode, one have to turn off BATFET. There's a function in CTCaer's hekate that can archive this (github[.]com/CTCaer/hekate/blob/master/ipl/bq24193.c#L149) and the code in the main that calls this is commented with a nasty warning that one could end up pluging back the battery manually (github[.]com/CTCaer/hekate/blob/master/ipl/main.c#L2331)

Is this the code that I'm looking for? Does anyone have successfully turned off BATFET with that piece of code and can confirm that plugging the adapter back connects the battery?
 

mariogamer

Well-Known Member
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
Ok so turns out the switch still consume battery even if it's off. I'd like to store my backup vulnerable switch and preserve battery life.

I was digging in the forum and turns out that in order to put it back into shipping mode, one have to turn off BATFET. There's a function in CTCaer's hekate that can archive this (github[.]com/CTCaer/hekate/blob/master/ipl/bq24193.c#L149) and the code in the main that calls this is commented with a nasty warning that one could end up pluging back the battery manually (github[.]com/CTCaer/hekate/blob/master/ipl/main.c#L2331)

Is this the code that I'm looking for? Does anyone have successfully turned off BATFET with that piece of code and can confirm that plugging the adapter back connects the battery?
It's simpler than that. Turn it off using Hekate's Power off function. This turn off the SoC completely.

The BATFET thingy was a fix to the battery desync, by completely reseting the battery config, until natinusala&perillamint found out only a single value needed to be changed.
 
Last edited by mariogamer,

igoticecream

Well-Known Member
OP
Newcomer
Joined
Jul 6, 2018
Messages
55
Trophies
0
Age
36
XP
369
Country
Spain
The code of the hekate's Power off function doesnt seem to disconnect the battery, just a regular turn off like the physical button does
 

mariogamer

Well-Known Member
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
The code of the function doesnt seem to disconnect the battery, just a regular turn off like the physical button does
Nvm actually, shipping mode is the BATFET thingy, sorry.

However the hekate power off doesn't power off like a normal one. It does power off more stuff.

And I can confirm too.
 
Last edited by mariogamer,

CTCaer

Developer
Developer
Joined
Mar 22, 2008
Messages
1,154
Trophies
0
XP
3,008
Country
Greece
@mariogamer
He asks for shipping mode.
The power off does not disable fuel gauge, battery charger and pmic completely.

The commented code with the BATFET disconnection is exactly what OP wants (shipping mode).
And to disable shipping mode you just connect the switch wall charger (although 2-3 users had problem with this).

The storage usage of this, should be like this:
Disable AutoRCM if on.
Charge to 3.75V.
Disconnect USB.
Run it. It will force shutoff.

To reenable:
Connect wall adapter.
If the voltage is lower than 3.2V, it will not turn on right away.

Edit:
The 3.75V is among the best storage voltages for 3.7V li-on batteries.
 
Last edited by CTCaer,

mariogamer

Well-Known Member
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
@mariogamer
He asks for shipping mode.
The power off does not disable fuel gauge, battery charger and pmic completely.

The commented code with the BATFET disconnection is exactly what OP wants (shipping mode).
And to disable shipping mode you just connect the switch wall charger (although 2-3 users had problem with this).

The storage usage of this, should be like this:
Disable AutoRCM if on.
Charge to 3.75V.
Disconnect USB.
Run it. It will force shutoff.

To reenable:
Connect wall adapter.
If the voltage is lower than 3.2V, it will not turn on right away.
Yeah I edited my post already, sorry.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Xdqwerty @ Xdqwerty:
    also gonna install twilight menu in my r4 flashcard
  • Psionic Roshambo @ Psionic Roshambo:
    One thing that just occurred to me.... The sound on the 2600 sucked less back then the harsh sound we hear now is from infinitely better speakers we have now, back when the 2600 was new speakers produced a almost muffled sound, like CRTs made old graphics look slightly better.
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if I could recommend that to some emulation devs that perhaps the sound could use some smoothing out to simulate those old TVs
  • Psionic Roshambo @ Psionic Roshambo:
    I think a few of the early systems could benefit from that, at least up to the 8 bit generation, by the 16 bit generation I think TVs had gotten a lot better in almost every way
  • Xdqwerty @ Xdqwerty:
    i dont have an sd card adapter but I have an usb sd card adapter
  • K3Nv2 @ K3Nv2:
    Old people games
  • Xdqwerty @ Xdqwerty:
    its not the one that comes with the r4
  • Xdqwerty @ Xdqwerty:
    doesnt work (my flashcard is from r4isdhc.com)
  • Xdqwerty @ Xdqwerty:
    might install ysmenu first
  • Psionic Roshambo @ Psionic Roshambo:
    Try Wood firmware
  • Psionic Roshambo @ Psionic Roshambo:
    For your R4
  • Psionic Roshambo @ Psionic Roshambo:
    It's old but it's the best firmware out for DS stuff
  • Xdqwerty @ Xdqwerty:
    it says it only works for the original R4, R4i Gold (r4ids.cn), R4iDSN (r4idsn.com) and Acekard R.P.G.
  • Xdqwerty @ Xdqwerty:
    nvm it does support mine
  • Xdqwerty @ Xdqwerty:
    but why choose it over ysmenu @Psionic Roshambo?
  • Xdqwerty @ Xdqwerty:
    bc im stupid?
  • Xdqwerty @ Xdqwerty:
    yea ik im stupid
  • Xdqwerty @ Xdqwerty:
    good night
  • Psionic Roshambo @ Psionic Roshambo:
    Just give it a try, but honestly if you have a 3DS you can play DS games without a card just off the internal SD card
  • Psionic Roshambo @ Psionic Roshambo:
    Slightly slower loading but a bit more convenient
  • BakerMan @ BakerMan:
    guys, my fuckin headphones have an out of place speaker
  • K3Nv2 @ K3Nv2:
    Did you try wearing them?
    B @ btjunior: @Xdqwerty 16