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,000
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
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
  • K3Nv2 @ K3Nv2:
    Toxic pills are best
  • SylverReZ @ SylverReZ:
    @Veho, He fucked around and found out.
  • SylverReZ @ SylverReZ:
    Lol Veho
  • AncientBoi @ AncientBoi:
    :O OMG. A Very EXPENSIVE way to find out :ohnoes:
  • Veho @ Veho:
    He was trying to whip shitties but instead he wiped out and ate shit.
    +1
  • AncientBoi @ AncientBoi:
    He was better off Whipping his own :shit:. :unsure::unsure::unsure: But then again.. Maybe not. Eeewww
  • K3Nv2 @ K3Nv2:
    Whip it real good
  • AncientBoi @ AncientBoi:
    Nah. Cool Whip is better :D
  • K3Nv2 @ K3Nv2:
    Cool wHip
  • AncientBoi @ AncientBoi:
    Especially on Chocolate Ice Cream :D:wub::D
    AncientBoi @ AncientBoi: Especially on Chocolate Ice Cream :D:wub::D