Discussion Team-Xecuter gives hint to Battery Desync issue

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by PRAGMA, Jun 11, 2018.

  1. PRAGMA
    OP

    PRAGMA GBAtemp Advanced Maniac

    Member
    9
    Dec 29, 2015
    Ireland
    127.0.0.1
    "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."

    Source

    :switch: :switch: :switch:
     
    NoNAND and McWhiters9511 like this.
  2. m4xw

    m4xw GBAtemp Advanced Fan

    Member
    8
    May 25, 2018
    Germany
    Last edited by m4xw, Jun 12, 2018
  3. PRAGMA
    OP

    PRAGMA GBAtemp Advanced Maniac

    Member
    9
    Dec 29, 2015
    Ireland
    127.0.0.1
    Oh yeah? Show us please. No one gives a fuck if someone knew it. Clearly it wasnt being posted anywhere, but now it is.
     
  4. KazoWAR

    KazoWAR GBAtemp Advanced Maniac

    Member
    7
    Aug 12, 2008
    United States
    Winter Haven
    pretty sure its a hint on how to fix it and not a hint that it exists
     
    Mazamin, cearp and vpd like this.
  5. m4xw

    m4xw GBAtemp Advanced Fan

    Member
    8
    May 25, 2018
    Germany
    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

    — Posts automatically merged - Please don't double post! —

    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: http://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 http://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, Jun 12, 2018
    julialy, jakibaki, lordelan and 7 others like this.
  6. Centergaming

    Centergaming GBAtemp Advanced Fan

    Member
    3
    Apr 17, 2016
    United States
    Would you be able to fix this issue?
     
    Red1Reaper likes this.
  7. m4xw

    m4xw GBAtemp Advanced Fan

    Member
    8
    May 25, 2018
    Germany
    I shouldn't look at code with that much beer, its the wrong file :D

    Double wrong makes right!

    But my oberverations are still the same
     
    Last edited by m4xw, Jun 12, 2018
    Centergaming likes this.
  8. natinusala

    natinusala The guy who writes Linux on Switch guides

    Member
    7
    Dec 1, 2012
    France
  9. g00s3y

    g00s3y Asshole

    Member
    5
    Aug 6, 2008
    United States
    FL
    Looks like it was posted on GitHub.

    Calm down Mr internet tough guy...
     
  10. Centergaming

    Centergaming GBAtemp Advanced Fan

    Member
    3
    Apr 17, 2016
    United States
    m4xw was right, it was here since day 1. (Calm your tits)
     
    baretbh likes this.
  11. CatmanFan

    CatmanFan Top 10 Most Lit Trends

    Member
    6
    Aug 14, 2016
    Morocco
    Here since day 1?
    Well, darn, I feel like someone should've fixed it by now, considering how long it has been since that issue was posted.
     
  12. Centergaming

    Centergaming GBAtemp Advanced Fan

    Member
    3
    Apr 17, 2016
    United States
    Ikr, it seems very difficult.
     
  13. natinusala

    natinusala The guy who writes Linux on Switch guides

    Member
    7
    Dec 1, 2012
    France
    Because nobody gives a shit because Linux is useless for now ?
     
    m4xw and pandavova like this.
  14. Zumoly

    Zumoly GBATemp Analyst

    Member
    3
    Apr 27, 2018
    Mali
    Yorosso
    I personally want it fixed for lakka only.
     
  15. Phenj

    Phenj GBAtemp Regular

    Member
    2
    May 22, 2018
    Italy
    >lakka and hw acceleration
     
  16. Trunks2304

    Trunks2304 Advanced Member

    Newcomer
    1
    May 23, 2018
    United Kingdom
    coming from you that is weird to read...what about lakka for emulation?
     
  17. KevinX8

    KevinX8 Proud user of The Dark Theme

    Member
    4
    May 12, 2016
    Down there
    The sound doesn't work and wifi sucks on it, most cores don't even boot. Would hardly consider it usable for everyday usage.
     
    Trunks2304 and Centergaming like this.
  18. natinusala

    natinusala The guy who writes Linux on Switch guides

    Member
    7
    Dec 1, 2012
    France
    Next Lakka update will at least contain Bluetooth audio and full speed Wi-Fi / Bluetooth. Maybe not soon (Whiterun is beautiful in VR) though.

    edit : + i'm working on Moonlight so eh
     
    Last edited by natinusala, Jun 12, 2018
    danikei, piterayo and Centergaming like this.
  19. SeekNDstroy

    SeekNDstroy Member

    Newcomer
    1
    Apr 19, 2016
    United States
    Would that also include a battery fix please?
     
  20. DiJornios

    DiJornios GBAtemp Regular

    Member
    2
    May 18, 2018
    United States
    Smh if you guys want a battery fix so bad then why don't you figure it out?
     
    natinusala and Centergaming like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice