GithubHelp home page GithubHelp logo

battery_desync_fix_nx's Introduction

Battery Desync Fix NX

Battery Desync Fix NX app allows you to calibrate your Fuel Gauge IC with values based on your Switch's factory calibration data.

This fixes issues with battery percentage being wrong.

HOS saves them at power off/reboot and restores them at boot.

The issue is theorized to be hardware bug in Fuel Gauge that is triggered by HOS or with stressing the battery too much.
Basically, it can happen on restore when Fuel Gauge has significantly different values from HOS last saved context.

How to calibrate your battery:

You must run this app in succession to your sysMMC and every emuMMC (if they exist). Otherwise the moment you switch to another one, it will desync again.

You can start from whichever you want.

Assuming you start with SYS CFW or OFW/Stock (you can start with EMU CFW, doesn't matter):

1. Boot SYS CFW
2. Run the app
3. Press X button for forcing init
4. Exit the app properly (press B)
5. If you want this for OFW, reboot and boot OFW or Stock.
6. Do 2 full charging cycles (??% -> 100% -> 0% -> 100% -> 0%)

- Do not reboot to something else until done!
- When HOS forces a sleep because battery is too low, wake it again and again
  until it shows red battery icon or empty small battery icon.
- In case HOS powered off, put charger to enter HOS.
  If it's stuck on black screen and small charger icon, unplug/plug after a bit so you can enter inside.
  Do not fully charge in there because HOS will restore the previous Fuel Gauge context the moment you boot.

7. After it's done and values are now good, enter the app and press A to save calibration to sd card.
8. Reboot into emuMMC, enter the app and press Y to restore the calibration from sd card.

Order doesn't matter. If you started with emuMMC for steps 1 to 7, you do the 8th step on sysMMC CFW/OFW instead.

Do not switch in-between SYS, EMU and anything else without finishing the 2 charging cycles and saving the calibration to sd.
Always be careful when rebooting until done.

If the process was done wrong, you will need to start from scratch.

Disclaimer:

No support is provided for that app at all. Use it at your own discretion!

This app is not to be included in packs, app stores, etc.
It is a specialized app that must only run if user has real issues with capacity full and percentage.

Easiest way to identify the issue is random up/downs on battery percentage and the 'capacity now' not matching voltage avg/oc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.