Battery Charge Limit

  • Thread starter Thread starter l7777
  • Start date Start date
  • Views Views 2,594
  • Replies Replies 12

l7777

Well-Known Member
Member
Joined
Apr 13, 2022
Messages
726
Reaction score
557
Trophies
0
Location
Earth
XP
2,539
Country
United States
Does Atmosphere support battery charge limits? I see some charge settings listed here but it's unclear on exactly what they do/how they are used. I could take a guess and change some settings but I prefer to read documentation. The goal would be to use a 1 amp charge and stop charging around 80%. It's well known that lithium batteries will live longer if kept between 20% - 80% SOC and it's rare I'm away from power long enough to need the extra 20%. I've been using Switch OC Suite to do this but it appears that functionality is no longer being supported.
 
Does Atmosphere support battery charge limits? I see some charge settings listed here but it's unclear on exactly what they do/how they are used. I could take a guess and change some settings but I prefer to read documentation. The goal would be to use a 1 amp charge and stop charging around 80%. It's well known that lithium batteries will live longer if kept between 20% - 80% SOC and it's rare I'm away from power long enough to need the extra 20%. I've been using Switch OC Suite to do this but it appears that functionality is no longer being supported.
Did you ever find a way to do this?
 
Potentially also interesting is that the Switch 2 has implemented this right in HOS. It even has a note about sometimes charging to 100% to keep the battery % accurate.
 
Is there any recent homebrew that set charge limits?
My switch is docked for most of the day and It'd be great if it maintains the battery at 80%
 
There was a solution in another thread:


However, sys-clk-OC hasn't been updated for newer HOS versions and other clock tweaking utilities refuse to incorporate this. It's really a big shame, considering that as pointed out earlier, stock Switch 2 does this.

I am really not a big fan of having to deal with glued-on battery replacement all due to software not letting me limit charge in the first place, especially for docked play when I may want to disable charging entirely. L4T does it, even...!
 
I gave this a try. It seemed to work initially but then I purposely paused it for a travel trip, now it does not seem to limit charging any more.
 
I gave this a try. It seemed to work initially but then I purposely paused it for a travel trip, now it does not seem to limit charging any more.
Can you tell me more about how it doesn't seem to be working?
Keep in mind it will not stop charging if the Switch enters deep sleep WHILE still charging, that's a sysmodule limitation (as no sysmodule runs in deep sleep); in that case it'll only stop to charge when it wakes from sleep. It should stop normally if it reaches the set limit when awake or in shallow sleep, then stay there without issues.
 
Can you tell me more about how it doesn't seem to be working?
Keep in mind it will not stop charging if the Switch enters deep sleep WHILE still charging, that's a sysmodule limitation (as no sysmodule runs in deep sleep); in that case it'll only stop to charge when it wakes from sleep. It should stop normally if it reaches the set limit when awake or in shallow sleep, then stay there without issues.
Yes I was wondering if that was the case. What triggers the deep sleep state?
 
Yes I was wondering if that was the case. What triggers the deep sleep state?
When the Switch is put to sleep it initially goes into shallow sleep. If there's any background activity (game downloading, checking for updates, saves synchronizing, etc.) it stays in shallow (cpu active and sysmodules run), otherwise it goes to deep sleep (cpu sleeps and sysmodules do not run, so the battery charge limiter can't tell the system "Hey, I've reached the limit, stop charging").
 
Yes that has to be what's happening. It's holding at 80% again now. In my troubleshooting I did have Claude add the raw battery % and cell voltage to the overlay for easy diagnosis of battery desync or other battery health issues. PR submitted, feel free to merge or not.
 

Site & Scene News