Homebrew Discussion Team-Xecuter gives hint to Battery Desync issue

PRAGMA

Well-Known Member
OP
Member
Joined
Dec 29, 2015
Messages
2,258
Trophies
1
Location
Ireland
Website
github.com
XP
5,038
Country
Ireland
"If we had to give the community a hint as to where to start looking into this "battery desync" problem we'd suggest looking into how the Fuel Gauge IC (MAX17050, I2C1 addr 36) is being used by Nintendo's OS and by Linux."

[topic=507049]Source[/topic]

:switch: :switch: :switch:
 

m4xw

Ancient Deity
Developer
Joined
May 25, 2018
Messages
2,442
Trophies
1
Age
119
XP
6,958
Country
Germany
Oh yeah? Show us please. No one gives a fuck if someone knew it. Clearly it wasnt being posted anywhere, but now it is.

I've personally looked at the Issue just a few days after shofel release, wanna show my search requests for the MX chipset?

Just dropped it because of lack of time

--------------------- MERGED ---------------------------

pretty sure its a hint on how to fix it and not a hint that it exists

It just gives us a IC name as well as a I2C addr, both are well known even before homebrew existed on the switch in the form we know it

"Look and compare", I mean, thats common sense among coders. I mean come on..

Edit: I actually looked it up, while I have this exact chipset for some reason in my search history related to the Issues (probably looked up most of the maxim chipsets :P ) , I only find information to MAX77620, because those header files were copied, for the Power Management IC.

Edit2: https://github.com/fail0verflow/switch-linux/issues/6

So it was actually know. I really should stop now. I tricked myself

I didn't find any results to the actual fuel gauge used

Now, this gets interesting

Note: This probably isn't it, just funny in function https://github.com/torvalds/linux/blob/master/drivers/power/supply/max17042_battery.c#L717
(Tho it's a different file, too much beer, sry :P )

It is actually the driver for the batt as said by tardyp
"/* Write dQ_acc to 200% of Capacity and dP_acc to 200% */"

This probably isn't related, but given it drops at 50%, I already had the thought that maybe the capacity is written as double the amount (but since we can discharge it to low% if there isn't a load, can't really confirm it, but given horizon shuts off, it could just think there is no gas left, but the other way around could be valid too. According to the issue a different module gets loaded so it's maybe reading a 100% but expecting a 200% value, since the other module doesn't initialize the battery properly. Or it can be something completely different, it was late at night and I didn't skip through too much code)

So that actually looks suspicous, given I already had the idea of it
 
Last edited by m4xw,

Centergaming

Well-Known Member
Member
Joined
Apr 17, 2016
Messages
695
Trophies
0
XP
923
Country
United States
I've personally looked at the Issue just a few days after shofel release, wanna show my search requests for the MX chipset?

Just dropped it because of lack of time

--------------------- MERGED ---------------------------



It just gives us a IC name as well as a I2C addr, both are well known even before homebrew existed on the switch in the form we know it

"Look and compare", I mean, thats common sense among coders. I mean come on..

Edit: I actually looked it up, while I have this exact chipset for some reason in my search history related to the Issues (probably looked up most of the maxim chipsets :P ) , I only find information to MAX77620, because those header files were copied, for the Power Management IC.

I didn't find any results to the actual fuel gauge used

Now, this gets interesting

Note: This probably isn't it, just funny in function https://github.com/torvalds/linux/blob/master/drivers/power/supply/max17042_battery.c#L717

"/* Write dQ_acc to 200% of Capacity and dP_acc to 200% */"

This probably isn't related, but given it drops at 50%, I already had the thought that maybe the capacity is written as double the amount (but since we can discharge it to low% if there isn't a load, can't really confirm it, but given horizon shuts off, it could just think there is no gas left)

So that actually looks suspicous, given I already had the idea of it

Would you be able to fix this issue?
 
  • Like
Reactions: Red1Reaper

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    That sick boy yo
  • K3Nv2 @ K3Nv2:
    I was hoping I could add a custom ROM to this fire HD 10 tablet but guess no one's made twrp available
  • Psionic Roshambo @ Psionic Roshambo:
    Root it? Lol
  • Sicklyboy @ Sicklyboy:
    That shit is so locked down, tighter than a nun's ass
  • K3Nv2 @ K3Nv2:
    Don't know if that's even possible for the firmware
  • K3Nv2 @ K3Nv2:
    You can remove the bloat ware and ads easily but can't install a rom
  • K3Nv2 @ K3Nv2:
    20 some years later crash bandicoot still pisses me off
  • BigOnYa @ BigOnYa:
    Have you jail broke your ps4 yet?
  • K3Nv2 @ K3Nv2:
    I've been on since 9.0
    +1
  • BigOnYa @ BigOnYa:
    Are you gonna do your ps5 if the hack comes? Is there worries of bans, like the ps3
  • K3Nv2 @ K3Nv2:
    Probably not I got cross play friends
    +1
  • K3Nv2 @ K3Nv2:
    By then I'll have some little mini pc anyway
  • ZeroT21 @ ZeroT21:
    only ps5 updated to latest firmware can go on psn, jailbroken ones just don't use psn or they risk getting flagged or banned, altho spouting profanity in online play alredy does that
  • K3Nv2 @ K3Nv2:
    Keep current Gen consoles stock mod last gen imo
  • DinohScene @ DinohScene:
    Anyone dumb enough to get banned for spouting profanity deserves it.
  • Y @ YuseiFD:
    Then how come you do it and don't get banned ? or is it a question of getting caught doing it ?
  • BakerMan @ BakerMan:
    wtf is the point of banning swearing in games? that's utterly a dumb decision

    the new generation playing MWII won't be as hardened as the previous one playing original MW2
  • Veho @ Veho:
    What's the point of video games? Kids playing video games won't be as hardened as the previous ones getting shoved down a hillside.
    +1
  • BakerMan @ BakerMan:
    exactly my point
  • BakerMan @ BakerMan:
    kids, yall are fucking pussies, grow some asshair before you even dare touch My Friend Peppa Pig or Mario's Early Years
    BakerMan @ BakerMan: kids, yall are fucking pussies, grow some asshair before you even dare touch My Friend Peppa Pig...