os-issue-tracker
os-issue-tracker copied to clipboard
Charging mode boots into regular OS
I'm having a small, but notable issue with my Pixel 8 Pro, if I turn off USB-C via Security tab in Settings, turn off the phone and plug it into charger, the phone powers on automatically (even tho changes in the settings should allow charging only when turned off, which makes me a little bit confused)
Is it normal? Maybe it's related to some battery settings?
I'm running latest stable.
When you plug the powered off phone into a charger, it boots into charging mode. The USB-C port control in the OS sets the mode that's used for the OS being booted into the regular mode. It doesn't apply to charging mode, recovery mode or fastbootd mode.
@thestinger hi, thanks for the reply
the issue is - it doesn't go into charging mode when turned off and pluging to a charger, it boots into full OS
@thestinger plz find the video of the behavior observed attached: https://streamable.com/fpxdwh
I am unable to reproduce this on a Pixel 6 with the latest version of the OS with both the "charging-only when locked, except before first unlock" setting, as well as the "off" setting. It would be good for someone with an 8th gen Pixel to confirm.
Non-Pro Pixel 8. I followed the steps in the video that the OP posted, but I can't reproduce. When the USB-C port is set to off and the phone is powered off, plugging in the charger will show the yellow boot state screen and then boot into charging mode. Perhaps other settings are interfering here, or perhaps only reproducable with a Pro?
@matchboxbananasynergy @FID02 thanks for your insight into this issue
I've factory resetted my phone, I haven't changed a single setting, except for turning off usb-c port obviously, however, the issue still persists when I turn off the phone, it boots into full GOS again, so I suppose we can exclude the possible reason being behind some weird setting I might have changed previously.
Can reproduce on panther running 2024052100
It would be great to see if devices that this happens on also have this happen when stock OS is installed. It would be good to confirm whether it's OS specific or not.
P8P can NOT reproduce
This is just a theory but I wonder if it's just a device defect for some small minority of devices?
My model is g1mnw. It just enter charging mode.
This behavior is caused by a bootloader variable named off-mode-charge. You can check the current state via fastboot getvar off-mode-charge.
If the variable is set to 1, the phone will enter charging mode when plugged in from off. If it is set to 0, the phone will simply boot into OS instead.
I'm not sure what causes the state of this variable to flip. You can, however, set the preferred mode manually by
fastboot oem off-mode-charge 0
to boot into OS automatically or
fastboot oem off-mode-charge 1
to boot into charging mode when plugged in instead.
If possible, GrapheneOS Settings should set this to 1 when USB-C Mode is toggled to None.
as @x5444 guided me on Discord, alongside HybridStaticAnimate user, and also given the suggestion from @matchboxbananasynergy I've done the following:
-
firstly, I've checked the fastboot variable
which should be fine, so I suppose we can easily say it's not this issue
-
then, following matchbox's suggestion, I've reflashed the Stock: the issue still persisted on Stock, which was weird, so I went to fastboot again to verify the
off-mode-chargevalue, which was again '1' -
to make sure that the value is fine, I've 'forced' the value to be '1' via
fastboot oem off-mode-charge 1however, after reboot, the issue still persisted
EDIT: please note that turning off usb-c via settings in GOS 'works', as it doesn't accept charge when the device is turned on, so I suppose the issue lies somewhere behind not going into the charging mode itself, rather than my initial thought that the issue was related to this feature
what is more, so far only @surfaceflinger replicated my ussue, but it was on a different model, which, at least to me, makes this even more interesting/weird
Not really clear what is going on here and if it's normal behavior.
Issue confirmed also for me, Pixel 7a. In my case, latest charge with phone turned off executed with success with the 2024062700 release.
With the release 2024070201 when I plug the powered off phone into a charger, it boots into full OS.
Not aware of this discussion, I've tried to use, instead of my original 30w google charger, also a standard usb charger but the issue persist.
So, after googling a bit, I've read this Issue and I've tried these steps:
- 'forced' the value to be '1' via fastboot oem off-mode-charge 1 with this result:
fastboot oem off-mode-charge 1 OKAY [ 0.001s] Finished. Total time: 0.001s
- rebooted the phone and after verified that the issue persists, I've checked if the variable was correctly set on the phone:
fastboot getvar off-mode-charge off-mode-charge: 1 Finished. Total time: 0.000s
As last step I've tried to change all the options related to USB-C via Security tab in Settings but without success, also with the setting USB-C port Off (where the description says that: "Doesn't impact the separate charging mode, which is activated by turning off the device and plugging it into a charger") the phone boots into full OS.
Usually, when I can do it, I chose to charge the phone powered off during the night so I can confirm that, in my case, the issue has started with the latest release.
Unfortunately I can't confirm from which of the latest two release the issue has started (I've tried to charge the phone from power off only with the release 2024070201).
In the changes since the 2024070200 release, is reported this: "avoid skipping toggling USB port after unlock in certain edge cases to make sure devices connected while locked are always detected when unlocking"; could be that there is something related to settings or functioning of the USB-C port that cause this issue?
Hi all, just to communicate that a factory reset has resolved the issue. I've waited the exit of a new release and then, with the issue always present, i've decided to try with the reset. Now the pixel 7a charges without problems from the powered off state and the draining of battery seems at the moment much better! Thankyou all for the support! I'll try to be present in future with direct tryouts to help with issues like this.
Hi guys, the problem seems to be reproducible. Last week the phone died completely over the night, I didn't remember to put the charger in and so on, in the morning, after connecting the charger to the phone, the phone has booted directly into the regular operating system. After a full charge from regular OS, I tried to power off and execute a new try.. so, after connecting the charger, the phone has booted another time into the regular OS! So, I tried to execute a factory reset and as for the last time, the phone has returned to charge also from power off. After the factory reset I've tried to power on and subsequently charge the phone from power off with different levels of battery and in all battery levels (20%, 40%, 60%, etc), the phone has always charged from power off. So, to be sure and try to reproduce the issue, I've let completely discharge another time the battery and the issue is returned; the sadly reality is that the phone won't no more charge from the power off state. So, the issue seems to arise when the battery is completely depleted and after this, the phone no more charge from the power off state; only a factory reset can revert the situation, - but not definitively -. The more strange thing in all of this is that seems like that the OS takes memory of the complete battery discharge event and after that it can no longer go back to charging from the power off state. Pixel 7a - Version: 2024071600
Happened to me a couple times yesterday. Phone booted directly into full os when plugged in while turned off. This morning I tried again, and it instead booted correctly into charging mode. I don't know what caused that behavior.
Pixel Fold with 2024090400 build
This issue applies to all Pixel phones with the stock OS. Have been able to reproduce this with a Pixel 7 Pro.
Still not really clear what's happening here and why it only happens to certain users.
Still not really clear what's happening here and why it only happens to certain users.
It seems that newer Pixels with a fully drained battery boot the full OS instead of the offline charging animation when connected to charging while powered off. It doesn't happen with a non-drained battery or with older Pixels. As far as I know, this is all there is to it, nothing complicated. Can others please confirm? (I suspect that at low battery charge levels close to zero, it has the same behavior as with a fully drained battery, so to be sure, the comparison needs to be between a fully drained battery and at least 20% charge or so.)
I've heard that iPhones do this. If it's true, then it's even more likely an intended feature than a bug.
I think it's a mistake to rush to label this as a bug. First observe, later judge.
Let me explain this issue clearer. Steps to reproduce:
- Set USB-C port to
Off - turn off Pixel
- connect Pixel to a charging cable
Expexted result is the Pixel enters charging mode without turning on. The actual result is some Pixel just turn on automatically. When it's on it can't be charged because of the USBC settings. This makes it impossible for users to charging their Pixel unless using wireless charging.
@zikada
Can others please confirm?
I did have the same theory and it works most of the time. However, it does not work all of the time. I think sometimes the phone went into charging mode despite having very low battery. Sometimes the phone with high battery still booted to the OS.
I tried to shutdown the phone manually at different battery levels. I also tried to shutdown after a manual reboot. I do not remember the exact results, but I remember that I couldn't find the exact determining factor. @zikada Try the to reboot and/or shutdown at different battery levels. If you still find it work all of the time for you, I may give it another tries.
My previous experiments were before the battery limit got introduced. Maybe things have changed by that feature, or by any other update after my experiments. I hope others have a better luck determining the real factor of deciding boot mode.
Guys I have a solution. You can connect Pixel to charging cable when it's on. Then you turn it off. Can anyone confirm this works?
@oppressor1761 I'm happy to confirm it worked, no matter the battery level; but I suppose it's not an ideal approach of handling this issue
You can connect Pixel to charging cable when it's on. Then you turn it off.
It can be a workaround if it worked, but it does not identify or solve the problem root. It is not always possible to do that, especially if the phone battery fully died.
For me, I do not like the phone to automatically turn ON, because I feel (not sure) the phone may disconnect and re-connect charging upon OS boot (or upon shutdown and switching to off-charger mode in your workaround).
Also, when USB-C protection is set to "Charging-only when locked", and you try to open the phone (for example, I prefer to turn off my data SIM while the phone is charging to preserve battery), the charger clearly dis-connect and re-connect so I would prefer to unlock the phone before connecting it to the (trusted) charger which is not possible if it turns ON after being fully battery-dead. (There is a middle ground option to "Charging-only except before first unlock").
With the Introduction of battery optimization (limit charging up to 80%), I would prefer to keep the phone ON, if it was already ON (in which case I can disable the data SIM if I wanted to).
Actually I think this auto-turn-on may be a firmware feature which Google implents for certain models due to regulation. In earlier iPhone generations, Apple implented separate charging mode only for China iPhone models. Apple completely cancels this feature in recent iPhone generations which means iPhone automatically turns on when connected to a charging cable.
may disconnect and re-connect charging upon OS boot (
What's the matter with this?
Also, when USB-C protection is set to "Charging-only when locked", and you try to open the phone (for example, I prefer to turn off my data SIM while the phone is charging to preserve battery), the charger clearly dis-connect and re-connect so I would prefer to unlock the phone before connecting it to the (trusted) charger which is not possible if it turns ON after being fully battery-dead. (There is a middle ground option to "Charging-only except before first unlock").
I don't understand it. Can you explain it clearer? Please note you can pause the starting process by tap the side button.
may disconnect and re-connect charging upon OS boot
What's the matter with this?
I think it would hurt the battery. I think the charge process is better to be continuous from 20% to 80%. Disconnecting and reconnecting, at 40% for example, would mean charging from 20% to 40% which is not enough charging, and then charging from 40% to 80% which is not yet needed. So, having a good continuous charging is instinctively better (Please correct me if I am wrong).
For the same reasoning, I would prefer not to disconnect and reconnect the charger upon boot/shutdown, especially when the phone has around zero battery and it feels dangerous to disconnect and reconnect at very low battery levels.
Also, when USB-C protection is set to "Charging-only when locked", and you try to open the phone (for example, I prefer to turn off my data SIM while the phone is charging to preserve battery), the charger clearly dis-connect and re-connect so I would prefer to unlock the phone before connecting it to the (trusted) charger which is not possible if it turns ON after being fully battery-dead. (There is a middle ground option to "Charging-only except before first unlock").
I don't understand it. Can you explain it clearer? Please note you can pause the starting process by tap the side button.
When I use data SIM and the phone battery reach zero, the phone shutdowns. When I connect the phone to charger, the phone boots into normal OS, the data SIM will start working as well. I prefer to turn the SIM off while charging, so I has to unlock the phone just after it booted. Unlocking the phone, while USB-C protection is set to "Charging-only when locked", disconnect and reconnect the charger which is may hurt the battery.
In general, when the phone gets connected to the charger, if it was ON, it should stay ON. If it was OFF, it should stay OFF (OFF-charging mode). The user should have the option to turn the phone ON/OFF, and not be surprised by phone booting automatically.
Please note you can pause the starting process by tap the side button.
This will keep the screen ON for the whole time and would not have an indication of the current battery level.
Some fastboot OEM commands can control this.
Could be something Google does with some units or many people are running such a command somehow.
Edit: After looking through the comments GitHub hid for some reason, doesn't seem to be the issue.