Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] RK2023 and RGB30v1 battery drain while off #256

Open
sydarn opened this issue Jun 2, 2024 · 75 comments
Open

[BUG] RK2023 and RGB30v1 battery drain while off #256

sydarn opened this issue Jun 2, 2024 · 75 comments

Comments

@sydarn
Copy link
Collaborator

sydarn commented Jun 2, 2024

Describe the bug

RK2023 and RGB30v1 drains battery while being turned off.

How to reproduce

Steps to reproduce the behavior:
Leave the devices off, preferably with low charge for quicker feedback wait a few days and it's dead.

Information

  • ROCKNIX Version: [e.g. 20240517]
  • Hardware Platform: [e.g. Powkiddy RK2023, Powkiddy RGB30v1]

Log file

Not available

Context

Theory: RK2023 and RGB30v1 uses a different CPU voltage regulator than all other rk3566 devices.

@macromorgan
Copy link
Contributor

Just throwing my two cents in... I wonder if the device is really shutting off when you do a shutdown? My hypothesis if this turns out to be the case is a problem in the Arm Trusted Firmware. How long do you have to hold down the power button to turn it back on after a shutdown? If it's less than 2 seconds it was truly shut down, if it's more than 4 seconds the device was never really off to begin with.

@spycat88 spycat88 added HARDWARE and removed HARDWARE labels Jun 3, 2024
@sydarn
Copy link
Collaborator Author

sydarn commented Jun 5, 2024

I do not notice any difference in time I need to hold power to boot between the rgb30v1 and RG-Arc. A fast tap to the power button doesn't boot either, slightly longer 1-2 sec maybe will boot both.

@macromorgan
Copy link
Contributor

Damn, okay. Might have to probe the PMIC outputs one by one when it's off to see if we can figure out the power drain. Do you know if the X55 has a similar issue?

Thank you.

@sydarn
Copy link
Collaborator Author

sydarn commented Jun 5, 2024

X55 is the only PK rk3566 device I don't own, though we have several contributors that own it. And we have no reports of draining while off. The rgb10max3 and rgb20sx (with exception of wifi identical to a rgb30v2) does not have this issue.
So it seems to be isolated to these 2 revisions which are differing on the regulator.

When looking at the regulator in the dts, I saw that it specifies min voltage to 0.7125 volts (I know this is from BSP), while I think it's specced to 0.76V. BSP also have something called init voltage which doesn't exist on mainline. I will test raising the min voltage an do a test, but it takes a day or two.

@sydarn
Copy link
Collaborator Author

sydarn commented Jun 7, 2024

I am somewhat optimistic, but the battery reading was wrong when I started. So it had more juice than expected. This was the rgb30v1.

I am starting a test on the rk2023 which was dead now, I updated and charged it up to 7%. I will check every 24h from now on.

@sydarn
Copy link
Collaborator Author

sydarn commented Jun 9, 2024

No the min voltage on the regulator had no effect, today I tried starting both of them after ~48h. They were both drained. :(

@Bapf
Copy link

Bapf commented Jun 10, 2024

Can confirm this on my RGB30v1.

@Soundtoxin
Copy link

Soundtoxin commented Jun 14, 2024

I believe I'm running into this on my RG353M as well. I don't recall having issues on JELOS, which I was using up until moving to ROCKNIX's latest release two days ago. Now I've had one day of the device being too dead to turn on without being plugged in, and another day where after 8-10 hours or so I'm at 36% when I had powered off around 80 or 90%.
Also, I seem to have a harder time turning my device on since moving to ROCKNIX, unsure if that's related. Pressing and holding the power button seems to do nothing a lot of the time and I have to really fight with it for a minute or two before I see any signs of life. I swear just holding the button a second or two worked consistently before.
edit: seeing the comment above about how if it doesn't turn right on it wasn't really off makes me think it really isn't turning off properly when I choose to shutdown in the menu. I've held the power button 8 seconds or so with it "off" now and will check back in some hours on the charge.
edit2: 8 or 9 hours later and I've managed to maintain most of the charge, within 3% of what I left it at. It also turned on after only a second or two holding the button, and on the first try. So I think the issue is indeed that it's not shutting down normally via software.
edit3: I thought I did the workaround the same way but after letting it sit a day and a half or so after powering it off on full charge it was bone-dry dead again and wouldn't turn on until I plugged it in.

@Bapf
Copy link

Bapf commented Jun 25, 2024

Updated to 20240612 yesterday.
Shut the device off this morning after charging, still at 100% 10 hours later. 🤞

@sydarn
Copy link
Collaborator Author

sydarn commented Jun 25, 2024

The battery indicator isn't the most reliable, I usually left them on low charge 10-30% (hard to know what). Left it 2-3 days, and when I tried to start them they were dead.

@sydarn
Copy link
Collaborator Author

sydarn commented Jun 27, 2024

There several user report of this also happening on RGB10 Max 3, though I never experienced it.
Additionally there is one user report on RK2023-WiFi model NOT having this issue.

@drmindflip
Copy link

Just wanted to chime in and clarify - futher to my comments on the other thread - this is definitely happening with my RGB10 Max 3. Turned off with a decent charge remaining two days ago, dead and unresponsive today, had to plug in for a bit before powering on.

(on 20240612)

@Bapf
Copy link

Bapf commented Jul 5, 2024

Ok, maybe a wild guess, but maybe someone could also confirm my findings:

I had my RGB30 lying on my table for the last few days -> almost no battery drain when turned off.
Then I put it back in my bag -> empty after 24 hours of being turned off.

Since the device has no mechanical on/off-switch: Is it possible that the new kernel monitors all buttons (not only the on/off button) when turned off and every time a button gets pressed (which happens quite often in my bag) the device wakes up for a short time which drains the battery?

@Soundtoxin
Copy link

I believe this is now fixed for me on the latest release with my RG353M. I updated within a half hour of 20240702 coming out. After sitting one day turned off, I didn't lose any charge. Two more days being off again it still seems fine.

@sydarn
Copy link
Collaborator Author

sydarn commented Jul 5, 2024

I never had any issues with other than rk2023 and rgb30v1, but I just started another test run on linux 6.10 (newer than the release)

@drmindflip
Copy link

Can confirm that this is still happening on Powkiddy RGB10 max3 - running 20240702

Turned off device with 60-70% power left, left in one place without moving or using it at all, totally dead after a couple of days - won't turn on.

@sydarn
Copy link
Collaborator Author

sydarn commented Jul 11, 2024

After updating linux 6.10, u-boot 2024.07 and latest ATF from rockchip the issue still persists.

@Zeudan
Copy link

Zeudan commented Jul 12, 2024

Hello, I have the same issue on the latest 20240702 on my RK3566 Arc-D. Went from 50% to 0% in one night

@sydarn
Copy link
Collaborator Author

sydarn commented Jul 12, 2024

Unless it's dead, it's most likely just a battery reading bug.

@Bapf
Copy link

Bapf commented Jul 15, 2024

Unless it's dead, it's most likely just a battery reading bug.

Is is dead!
To be clear: It is dead / the battery is empty in a way that even the RTC no longer works.
(To check: After charging the device again and booting it up at a location where there is no wifi available when I play a game and check the "last played" menu afterwards the game gets sorted to the middle/end of the list instead of to the top where it's supposed to end up. When wifi is available after powering the former drained device up this does not happen since it instantly syncs the time again after booting.)

@Zeudan
Copy link

Zeudan commented Jul 15, 2024

Unless it's dead, it's most likely just a battery reading bug.

Is the workaround to this issue to reconnect the battery? I've done that, and it showed the correct battery level for a few days. However, today the issue has reappeared.

@xsilas43
Copy link

Seeing this occur on both my RGB 10 Max 3 and RGB30.

@sydarn
Copy link
Collaborator Author

sydarn commented Aug 12, 2024

On my side rk2023, rg30v1, rgb30v2 and rgb20sx drain while off, but my rgb10max3 seems fine at least to a point where it could be off for weeks, and still powered on with 60%ish battery.

@xsilas43
Copy link

xsilas43 commented Aug 12, 2024

Strangely enough my RGB10 Max 3 was unaffected until I opened it up to install some Hall Sticks, maybe these are draining excessively while powered down? After disconnecting the battery this issue popped up. Turned it off around 60% on the 7th and now its completely dead.

@edemirkan
Copy link
Contributor

This could be related. My drain problem on my rgb30v1 also started at around the same time after installing the Hall Sticks.

@Bapf
Copy link

Bapf commented Aug 12, 2024

I don't think so. I have the issue on a 100% unmodified RGB30.

@xsilas43
Copy link

Did some further testing on other builds:

  • The 0206 build of JELOS did not produce this issue on both my RGB30 and RGB10 Max 3, sat overnight with 0 drain.
  • I also tried a 0401 build of JELOS based on commit f8cac7b, this build and any afterwards I tried did produce the exact same battery drain while off, around 10% per night give or take.

So it's looking like it may be related to some other change done within that date range and possibly not related to the kernel at all.

@sydarn
Copy link
Collaborator Author

sydarn commented Aug 13, 2024

We changed RK3566 build target to mainline linux just after the 0206 release.

@xsilas43
Copy link

Strange, I believe the build I used still had the BSP kernel, I also tried "KOLOS" which seems to be another fork of JELOS, which seems to be using the BSP kernel but based on a later release and the issue was there as well.

@sydarn
Copy link
Collaborator Author

sydarn commented Aug 17, 2024

Here is a dev-build with power management changes to powkiddy rk2023, rgb30v1/v2, rgb10max3 and rgb20sx:
https://filebin.net/kx1pbdycwgew084y

I'd appreciate if you could test it and see if you get any improvements.

@cndjonno
Copy link

I have the RK2023 Wifi Hardware Version 1.1 and having the same battery drain issue. Just upgraded to 20240815 and still drains. I have unplugged the battery, tried MEM, FREEZE and still drains about 5-6% per hour (guesstimate).

@xsilas43
Copy link

xsilas43 commented Aug 17, 2024

Might be on to something here, testing the 8-17 build on my RGB30 turned off this morning at 10:30 AM with 61%, just checked now (3:24 PM) and its still reading 61%. Will leave it off for the rest of the night and check tomorrow.

@cndjonno
Copy link

Might be on to something here, testing the 8-17 build on my RGB30 turned off this morning at 10:30 AM with 61%, just checked now (3:24 PM) and its still reading 61%. Will leave it off for the rest of the night and check tomorrow.

Did you mean 20250815? I don't see 817 in dev or main.

@Bapf
Copy link

Bapf commented Aug 17, 2024

Did you mean 20250815? I don't see 817 in dev or main.

They are there:

Here is a dev-build with power management changes to powkiddy rk2023, rgb30v1/v2, rgb10max3 and rgb20sx: https://filebin.net/kx1pbdycwgew084y

@cndjonno
Copy link

Did you mean 20250815? I don't see 817 in dev or main.

They are there:

Here is a dev-build with power management changes to powkiddy rk2023, rgb30v1/v2, rgb10max3 and rgb20sx: https://filebin.net/kx1pbdycwgew084y

Thanks for providing the link. I installed the linked update and it still drained the same amount and was dead by morning.

@sydarn
Copy link
Collaborator Author

sydarn commented Aug 18, 2024

@cndjonno
Which device do you have?

@xsilas43
Copy link

Seems like the 8-17 build resolved the drain on my rgb30, checked again this morning and its still sitting at 61%. This was on a clean flash with nothing setup, just flashed and then shut down after initially booting to ES. Dropped to 60% as I was typing this but I'd still consider that a huge success where I was previously losing around 10% per day while off.

@cndjonno
Copy link

@sydarn RK2023 Wifi Hardware version 1.1.

I have downloaded the full img.gz install and formatted a new card and will test that in case there was some configuration causing the issue with just the update and report back later today or tomorrow.

@purelygrey
Copy link

purelygrey commented Aug 18, 2024

Here is a dev-build with power management changes to powkiddy rk2023, rgb30v1/v2, rgb10max3 and rgb20sx: https://filebin.net/kx1pbdycwgew084y

I'd appreciate if you could test it and see if you get any improvements.

RGB30v2 so far:
Unplugged the battery for half an hour, charged it to 100%, powered it off from the ES menu.
It went from 100% down to 62% in 24 hours. I'll let it sit for another day and try the v1 as well

UPD: down to 22% after 48 hours, so around 40% loss per day

@xsilas43
Copy link

I went ahead and updated my old build with the 08-17 tar which had everything setup like wifi and syncthing, etc. Now the drain seems to have returned on my RGB30. In 6 hours or so its lost 10% from 75% to 65%.

While my RGB10 Max 3 went from 67% to 63% over the same period so it seems improved.

Might mess around with a clean flash on a separate sd and enabling things individually.

@wolflink2021
Copy link

I found another problem when I was using RK2023 equipment. When it was charged to 40%, it didn't seem to be recharged (and the indicator light went out). It was only when I switched to the SD card of JELOS system that I was fully charged.

@sydarn
Copy link
Collaborator Author

sydarn commented Aug 20, 2024

No this seems to have had no effect, just for reference this was the patch:
https://github.com/ROCKNIX/distribution/blob/dev/projects/Rockchip/patches/linux/RK3566/041-remove-always-on-pk-regulators.patch

@cndjonno
Copy link

@sydarn After reflashing that card with 817 build you provided it died shortly after 24 hours so probably 3+%/hour drain which was better than before but still pretty high. At some point I want to put a current meter on the battery to see if I can measure the drain under specific configs.

@sydarn
Copy link
Collaborator Author

sydarn commented Aug 20, 2024

Observations from my devices, I don't have numbers so it's just relative:
rk2023, rgb30v1 - drains fast, will drains out in a matter of days
rgb30v2, rgb20sx - drains slower will probably last more than a week.

My other 3 devices: rgb10max3, rg503 and Arc seemingly doesn't drain at all. Can lay unused for weeks, and still power up fine with loads of charge.

@purelygrey
Copy link

Some more observations, though not 100% Rocknix-related:

Turns out that battery in my rgb30v2 unit is labeled 606090 4000mAh, however it is not 606090, in reality it's more like 435590, so it's definitely not 4000mah I believe, because it is noticeably smaller. Since the label is lying I have no idea how much of the battery is there. Here's the pic of the said battery:
image

I replaced the battery with the (supposedly) true 606090 4000mAh, though I had to desolder the battery socket and solder the battery to the board. I'm using BSP-based distro on it (ArkOS), but even on that I had steady 15% or more loss per day with the stock battery. With the new battery it is still at 100% after 24 hours, just went to 99%. It also seems to heat up less, though I'm not exactly sure about that

Could it be that the "fake" stock battery is somehow discharging on its own and adding to the equation? Or is it just battery reading shenanigans?

@Macs75
Copy link

Macs75 commented Sep 3, 2024 via email

@purelygrey
Copy link

I think that disconnecting the battery has reset the device correctly, as this is one of the steps they suggest to do. Meanwhile I verified my battery discharges even when completely off, I also made sure to not touch any button when off and put it in its bag, but after a week is completely drained, doesn't turn on and needs to recharge.

On Tue, 3 Sept 2024 at 00:24, Sasha Soborov @.> wrote: Some more observations, though not 100% Rocknix-related: Turns out that battery in my rgb30v2 unit is labeled 606090 4000mAh, however it is not 606090, in reality it's more like 435590, so it's definitely not 4000mah I believe, because it is noticeably smaller. Since the label is lying I have no idea how much of the battery is there. Here's the pic of the said battery: image.png (view on web) https://github.com/user-attachments/assets/7ac453ea-bf1b-40bb-9689-d12f9082ee0f I replaced the battery with the (supposedly) true 606090 4000mAh, though I had to desolder the battery socket and solder the battery to the board. I'm using BSP-based distro on it (ArkOS), but even on that I had steady 15% or more loss per day with the stock battery. With the new battery it is still at 100% after 24 hours, just went to 99%. It also seems to heat up less, though I'm not exactly sure about that Could it be that the "fake" stock battery is somehow discharging on its own and adding to the equation? Or is it just battery reading shenanigans? — Reply to this email directly, view it on GitHub <#256 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCZXZEAZIG2WMSDNEIIFJDZUTQSVAVCNFSM6AAAAABIVHSGWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRVGM2DKMZVHE . You are receiving this because you are subscribed to this thread.Message ID: @.>

No, the reset didn't fix the drain completely when it had the old battery. I always reset it while testing and switching OSes, and it was always ~40% loss per day on Rocknix and about 15% per day on ArkOS

@mgrzeca
Copy link

mgrzeca commented Oct 8, 2024

I was completely fed up with this device and felt like throwing it in the trash. However, in a moment of desperation, I decided to give it another shot with the JELOS version from February. And... all the problems were solved. With ROCKNIX 20240815, the battery was draining within 2-3 days. After 12 days with JELOS, the battery is still at 98%. This clearly can't be a physical issue with the battery, but rather some kind of software problem.

@charin-nawaritloha
Copy link

I’m using version 20240815 on my RGB30, and I'm still encountering this bug. After shutting it down for three days, the battery showed 0% when I turned it back on 😢. However, I didn’t experience this issue when I switched back to ArkOS.

@mgrzeca
Copy link

mgrzeca commented Nov 20, 2024

My RGB30 is still at the same charge as it was in my last post from October 8th. During this time, I've played a few times, totaling about 20 minutes of gameplay. Right now, the battery is at 81%. I'm satisfied with the result. In the foreseeable future, I'll stick with JELOS-RK3566.aarch64-20240206...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests