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,025
Last edited by Crystalseed,

ritchiedonovan

Member
Newcomer
Joined
Mar 15, 2009
Messages
6
Trophies
0
XP
198
Country
Noob needing help from the resident geniuses at gbatemp!

So I use sxos and and hadn't used my switch for a few months. I turned it on today and the battery was all over the place - said it was at 79% when it was practically at 0%. I charged it for 3 hours (it was on 100%) for a couple of hours and then removed the charging cable. It is taking a long time for the battery to go down - it's at 92% and I've had it on for over an hour. So I think this battery fix might be what I'm looking for? Is there an easy way to do it via SXOS? As I said I am pretty hopless at these sorts of things so any advice greatly appreciated!
 

TR_mahmutpek

medic
Member
Joined
Jul 28, 2015
Messages
1,424
Trophies
0
Age
24
XP
1,996
Country
Turkey
Noob needing help from the resident geniuses at gbatemp!

So I use sxos and and hadn't used my switch for a few months. I turned it on today and the battery was all over the place - said it was at 79% when it was practically at 0%. I charged it for 3 hours (it was on 100%) for a couple of hours and then removed the charging cable. It is taking a long time for the battery to go down - it's at 92% and I've had it on for over an hour. So I think this battery fix might be what I'm looking for? Is there an easy way to do it via SXOS? As I said I am pretty hopless at these sorts of things so any advice greatly appreciated!
Just send this payload, it wont break anything and probably fix the issue.
 
  • Like
Reactions: ritchiedonovan

gnmmarechal

Well-Known Member
Member
GBAtemp Patron
Joined
Jul 13, 2014
Messages
6,040
Trophies
2
Age
25
Location
https://gs2012.xyz
Website
gs2012.xyz
XP
6,001
Country
Portugal
I dont know about sx os, never used it but if i remember correctly, payload on dongle should be changeable. Search for that..
I don't think that's the case. The SX Pro is hardcoded to launch the boot.dat. Now, you can use the SX Gear boot.dat and load something else, buut yeah.
 

TR_mahmutpek

medic
Member
Joined
Jul 28, 2015
Messages
1,424
Trophies
0
Age
24
XP
1,996
Country
Turkey
How exactly did you use this? I injected this payload but my battery is still not fixed (still shuts off at around 40%), do I inject this payload when my battery reports to be at 100% or when it's at 40%?
My problem was this; My battery shows wrong percent, still I can play rougly 3 hours but switch battery dies at 50, than 75, than 90 etc. I send this payload and resetted the battery stats and back to normal. What is your switchs problem? Also I think you just need to send payload, no need to charge.
 

whateverg1012

Well-Known Member
Member
Joined
Sep 23, 2016
Messages
573
Trophies
0
XP
1,426
Country
United States
My problem was this; My battery shows wrong percent, still I can play rougly 3 hours but switch battery dies at 50, than 75, than 90 etc. I send this payload and resetted the battery stats and back to normal. What is your switchs problem? Also I think you just need to send payload, no need to charge.

I can also play around 3ish hours in handheld but my switch dies somewhere between 40-45% (so my battery is showing the wrong percent)

I sent this payload but it still dies around that point. The payload was sent properly because my clock got reset which indicated that it worked.

I've basically given up at this point though, just gonna accept that 40% is my new 0% now. Hoping it will fix itself over time.
 

TR_mahmutpek

medic
Member
Joined
Jul 28, 2015
Messages
1,424
Trophies
0
Age
24
XP
1,996
Country
Turkey
I can also play around 3ish hours in handheld but my switch dies somewhere between 40-45% (so my battery is showing the wrong percent)

I sent this payload but it still dies around that point. The payload was sent properly because my clock got reset which indicated that it worked.

I've basically given up at this point though, just gonna accept that 40% is my new 0% now. Hoping it will fix itself over time.
Interesting. It worked for me but on nearly impossible levels. I mean switch battery shows 100 or 99 but its actually 0 or 1 (yes!) and it cant charge itself because it reads battery 100 and rejects electricity i think. I sent this and worked. Showed 0 and charged normally. Maybe you should wait for worse percent :D or ask op, Ctcaer.

Oh, alternatively, you can dissasembly and eject switch battery manually, which this payload does that but you can try if you want. So maybe maybe will work.

Hope you will fix issue soon.
 
  • Like
Reactions: whateverg1012

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=_9PnFJMnYT0