Tutorial  Updated

Fix for Linux Battery issue

Here's a quick and easy fix for the turning off at 40% battery issue that people are seeing after running Linux. This is effectively the same fix as unplugging the battery, but does so without having to take apart the Switch.

Step 1: Download attached fusee-linux-battery-fix.rar
Step 2: Extract and load the binary with your favorite RCM Smash tool (I'm using TegraRcmSmash).
Step 3: You should see the typical fusee screen, at this point unplug the USB cable. The screen should go off.
Step 4 (optional?): Hold the power button for 10 seconds. Your switch won't turn on at this point, that's desired.
Step 5: Plug in a USB cable. Switch will turn on, and you're done.

This worked to fix my Switch, let me know if it works for you.

Edit:

Source is here:

github/crystalseedgba/BatteryFix/blob/master/fusee/src/main.c (Sorry it's not letting me post hyperlinks)

This doesn't fix the Linux bug, this is really just a crude workaround. At first I suspected that Linux is somehow mangling the battery gauge but this doesn't seem to be the case. The battery gauge reports around 40% and decent battery voltage when my Switch would turn off. I think Linux is misconfiguring some undervoltage lockout somewhere, but I don't know where.

Thanks to jjbredesen for his "How to make a custom Fusee payloads" tutorial.
 

Attachments

  • fusee-linux-battery-fix.rar
    14.2 KB · Views: 2,023
Last edited by Crystalseed,

Shadow LAG

Well-Known Member
Member
Joined
May 10, 2013
Messages
256
Trophies
1
Age
33
XP
568
Country
United States
Hold the phone. The way this is described, it sounds like you need to trigger bootrom > charging to bring the switch back to life if I am understanding correctly. People better be sure this isn't reliant on the bootrom as autorcm corrupts that. Autorcm can charge, but never trigger the battery / bootup sequence without first deploying a bootloader.

Has anyone confirmed bypassing this step by deploying a payload?
 
Last edited by Shadow LAG,

CTCaer

Developer
Developer
Joined
Mar 22, 2008
Messages
1,154
Trophies
0
XP
3,008
Country
Greece
Hold the phone. The way this is described, it sounds like you need to trigger bootrom > charging to bring the switch back to life if I am understanding correctly. People better be sure this isn't reliant on the bootrom as autorcm corrupts that. Autorcm can charge, but never trigger the battery / bootup sequence.

Has anyone confirmed bypassing this step by deploying a payload?
The re-enablement of the BATFET, aka battery re-connection, is triggered only by plugging your device to USB (wall adapter or PC).
This re-enables it and you can inject a payload, or with no autorcm it will power on the console.
 

Shadow LAG

Well-Known Member
Member
Joined
May 10, 2013
Messages
256
Trophies
1
Age
33
XP
568
Country
United States
The re-enablement of the BATFET, aka battery re-connection, is triggered only by plugging your device to USB (wall adapter or PC).
This re-enables it and you can inject a payload, or with no autorcm it will power on the console.

Thank you for the clarification. Sounds like this is the way to go then.
 

Xellar

Member
Newcomer
Joined
Sep 24, 2017
Messages
22
Trophies
0
Age
23
XP
185
Country
Switzerland
Here's a quick and easy fix for the turning off at 40% battery issue that people are seeing after running Linux. This is effectively the same fix as unplugging the battery, but does so without having to take apart the Switch.

Step 1: Download attached fusee-linux-battery-fix.rar
Step 2: Extract and load the binary with your favorite RCM Smash tool (I'm using TegraRcmSmash).
Step 3: You should see the typical fusee screen, at this point unplug the USB cable. The screen should go off.
Step 4 (optional?): Hold the power button for 10 seconds. Your switch won't turn on at this point, that's desired.
Step 5: Plug in a USB cable. Switch will turn on, and you're done.

This worked to fix my Switch, let me know if it works for you.

Edit:

Source is here:

github/crystalseedgba/BatteryFix/blob/master/fusee/src/main.c (Sorry it's not letting me post hyperlinks)

This doesn't fix the Linux bug, this is really just a crude workaround. At first I suspected that Linux is somehow mangling the battery gauge but this doesn't seem to be the case. The battery gauge reports around 40% and decent battery voltage when my Switch would turn off. I think Linux is misconfiguring some undervoltage lockout somewhere, but I don't know where.

Thanks to jjbredesen for his "How to make a custom Fusee payloads" tutorial.

https://github.com/crystalseedgba/BatteryFix here for everyone thats lazy.
And thanks that worked for me. :)
 
D

Deleted User

Guest
i don't really know if i done it right (i needed to plug my switch in to an ac adapter from my dock to turn on)
 

CatmanFan

Anxious and regretful
Member
Joined
Aug 14, 2016
Messages
1,962
Trophies
0
Website
www.youtube.com
XP
2,588
Country
Morocco
Step 1: Download attached fusee-linux-battery-fix.rar
Step 2: Extract and load the binary with your favorite RCM Smash tool (I'm using TegraRcmSmash).
Step 3: You should see the typical fusee screen, at this point unplug the USB cable. The screen should go off.
Step 4 (optional?): Hold the power button for 10 seconds. Your switch won't turn on at this point, that's desired.
Step 5: Plug in a USB cable. Switch will turn on, and you're done.
Is it absolutely required to do Step 4?
 

CatmanFan

Anxious and regretful
Member
Joined
Aug 14, 2016
Messages
1,962
Trophies
0
Website
www.youtube.com
XP
2,588
Country
Morocco
How was lakka? Will you keep using it?
Well, it was a mess to set up. At one point, I thought my Switch was bricked but it turned out it wasn't (what a relief). Right now, I still need Paragon extFS before I can transfer my ROMs over to the Switch.
I will probably use Lakka not very often, but only when I really feel like it.
 
  • Like
Reactions: Zumoly

GitGudScrub

Member
Newcomer
Joined
Jun 30, 2018
Messages
9
Trophies
0
Age
26
XP
81
Country
United Kingdom
This payload is brilliant, solved the battery desync issue.
was about to disassemble the switch to disconnect then reconnect the battery
thx
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Gonna love it when the next update blocks them