bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

[Tarako] If the battery power is low ( 20% ), wifi debug, enable console is turned on and you web browse, the device will shut off by itself.



Firefox OS
4 years ago
4 years ago


(Reporter: nhirata, Assigned: Zhenqing Liu)


Gonk (Firefox OS)

Firefox Tracking Flags

(b2g-v1.3T affected)


1. turn on wifi debug, and enable console in dev settings
2. have the battery at around 20%
3. make sure that the device is not plugged in
4. go to news.google.com
5. click on a link
6. let the device go to sleep
7. tap the power button to wake the phone

Expected: the device will wake
Actual: the device stays black.

1. this doesn't seem to occur with wifi debug off and console is disabled.
Gaia      adb258b88485ccf1ff2e971de0fda547e4bb7149
Gecko     https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/e8b77a1c7c78
BuildID   20140609014001
Version   28.1
ro.build.date=Mon Jun  9 05:17:02 EDT 2014
I am not noming this, because I don't expect end users to turn on the wifi debug nor enable console.
status-b2g-v1.3T: --- → affected
By your test steps, I am wonder this is back screen issue or device shutdown. Is there any response when we insert charging cable after issue happened? If it's device shutdown, we should see the charging animation after cable in.
Moreover, is there slog for analyzing?
Flags: needinfo?(nhirata.bugzilla)
There was no charging animation; I think it was a back screen issue.  Once I plugged the device in, it would start responding.

Unfortunately, I don't have a slog.  The last slog I have is from 5/30
Flags: needinfo?(nhirata.bugzilla)
Is there a way to manually capture a slog?
Flags: needinfo?(dliang)
or would logcat be ok?

My battery is fully charged today so I am not sure if I can reproduce at this time.
Slog is enabled on userdebug build and please must insert SD card.
You can use below command to get slog
#adb pull /sdcard/slog slog

If device hang and black screen, you might be unable to connect adb and get log successfully.
If adb cannot be connected and no charging animation, please restart device and get slog again, we can check last_log of slog.

If it's out of battery to cause device shutdown, you will see battery animation when you attempt to connect device via usb cable. In this case, please remove the battery and get slog from SD card directly.

Slog is better, slog included kernel log and logcat.
Flags: needinfo?(dliang)
Hi James,
Do you know the format of shutdown and battery log in kernel log?
Flags: needinfo?(james.zhang)
Assignee: nobody → zhenqing.liu
Flags: needinfo?(james.zhang)

Comment 8

4 years ago
I tried several times at battery is about 14% low and everything is OK. Please make sure it is not because of battery loose.
As for the shutdown and battery log in the kernel, the keywords may be shutdown, battery_update, PM.
I can't seem to reproduce this using a more recent build.  I'm not sure what occurred.

Gaia      5611a68f5c039f62ae74b828feff1530ab066d3a
Gecko     https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/7011129d1abd
BuildID   20140612014001
Version   28.1
ro.build.date=Thu Jun 12 04:52:09 EDT 2014

I am going to close this as WFM.  Is that ok?
Last Resolved: 4 years ago
Flags: needinfo?(zhenqing.liu)
Resolution: --- → WORKSFORME

Comment 10

4 years ago
OK. At least for now. Thanks.
Flags: needinfo?(zhenqing.liu)
You need to log in before you can comment on or make changes to this bug.