penglezos / device_xiaomi_raphael

Device tree for Xiaomi Mi 9T Pro/Redmi K20 Pro
71 stars 10 forks source link

Random Reboots on lineage-21.0-20240723 build #36

Open MiZantr0pe opened 3 weeks ago

MiZantr0pe commented 3 weeks ago

Hi, penglezos!

I've been using the firmware for about a month. I installed it according to your instructions, used Lineage recovery, mindgaps, without installing additional magisk modules and other root stuff. During this time, there have already been 3 random reboots - one while using one of the messengers when starting the keyboard for typing, two reboots occurred in a state of rest, when the phone was just lying next to me on the table.

I attached the logcat.txt file, but I made it right after the phone rebooted. Sorry, but I don't know how to make a file that will show the problems that preceded the reboot of the device. Can you tell me how I can do this next time?

The guys from the 4pda forum also have reboots. Some have 5-7 reboots a day, while others (like me) - only after 100+ hours of stable operation.

logcat.txt

penglezos commented 3 weeks ago

Hi, thanks for your report!

First of all, you are not on the latest release, so please make sure you update accordingly. Regarding the "random reboots" from the logcat you posted I can't find anything problematic that can cause sudden reboots yet. I've been driving my LineageOS 21 builds daily for months without "random reboots" but we need to monitor it for sure. Did you by any chance changed the default kernel? are you encrypted or decrypted? did you flashed "legacy to dynamic" zip? Can you also provide the installed apps you have? Maybe you have an application that crashes the system I've seen that in the past with Skype (strange I know).

The guys from the 4pda forum also have reboots. Some have 5-7 reboots a day, while others (like me) - only after 100+ hours of stable operation.

I don't know what 4pda is neither I can accept that as a form of report.

MiZantr0pe commented 3 weeks ago

First of all, you are not on the latest release

Ok, about an hour ago I updated to the latest Lineage rom version. I'll watch its behavior.

Did you by any chance changed the default kernel?

Nope, there is default kernel, default lineage recovery from your installation guide and mindthegapps-package

are you encrypted or decrypted?

Im see "Encrypted" in "Encryption & Credentials" menu, and also I didn`t flash "legacy to dynamic" zip - because it wasn't in your installation guide, is it correct or not?

Can you also provide the installed apps you have?

Ok, let`s see files attached

screenshots.zip

penglezos commented 3 weeks ago

Yes you are encrypted. Holy shit there are so many apps installed. Let see how this release goes for you.

MiZantr0pe commented 3 weeks ago

Holy shit there are so many apps installed.

These screenshots also have system apps :D and I forgot to delete two pictures that duplicate the others

Can you tell me how I can export a list of applications as a TXT file without having to create a lot of screenshots?

Let see how this release goes for you.

You mean I should look at the behavior of the latest ROM version from August 20th? OK

but I don't know how to make a file that will show the problems that preceded the reboot of the device.

Can you please tell me how I can create a logcat.txt file next time so that it shows the problems that happened BEFORE rebooting the smartphone?

Tfviktor commented 3 weeks ago

I also have random reboots on 20240723.

MiZantr0pe commented 3 weeks ago

@Tfviktor hello! Let's help the developer - please answer his previous questions to me

Lazarus00001 commented 2 weeks ago

I also faced random reboot previous build and latest build also, I didn't report because i didn't find any log on /sys/fs/pstore/

penglezos commented 1 week ago

I think it's safe to say that after 8 plus days of consistent uptime (on this test) that there are NO random reboots occurred.

Screenshot_20240831-115432_Settings

MiZantr0pe commented 1 week ago

I think it's safe to say that after 8 plus days of consistent uptime (on this test) that there are NO random reboots occurred.

Hello! I have the same, 200 hours of stable work. But I'm not sure about stability yet - on the previous version the first reboot occurred after 500 hours uptime.

penglezos commented 1 week ago

I think it's safe to say that after 8 plus days of consistent uptime (on this test) that there are NO random reboots occurred.

Hello! I have the same, 200 hours of stable work. But I'm not sure about stability yet - on the previous version the first reboot occurred after 500 hours uptime.

Understandable my recent screenshot was just an example. I've been running my LineageOS 21 builds since mid November with more hours uptime without any random reboots whatsoever. 20 days of uptime on your previous result is in fact an indication of stability in my opinion. Based on the other non valid reports (here on Github) I can't do much. I've asked other users who use my builds if they experienced any random reboots and none of them had one.

MiZantr0pe commented 1 week ago

@penglezos After ~210 hours of work, the smartphone rebooted last night. It was just lying next to me, I was not using it at that moment. It was a complete reboot with the display of the Lineage OS logo. Please tell me how I can provide you the necessary information for analysis? The events in the logcat.txt file I created now no longer include events before the reboot that happened last night.

penglezos commented 1 week ago

@penglezos After ~210 hours of work, the smartphone rebooted last night. It was just lying next to me, I was not using it at that moment. It was a complete reboot with the display of the Lineage OS logo. Please tell me how I can provide you the necessary information for analysis? The events in the logcat.txt file I created now no longer include events before the reboot that happened last night.

That's sad to hear. Can you grab console-ramoops logs from /sys/fs/pstore ?

adb shell cat /sys/fs/pstore/console-ramoops-0 > console-ramoops.txt

MiZantr0pe commented 1 week ago

That's sad to hear. Can you grab console-ramoops logs from /sys/fs/pstore ?

adb shell cat /sys/fs/pstore/console-ramoops-0 > console-ramoops.txt

@penglezos I did what you said using adb:

cat: /sys/fs/pstore/console-ramoops-0: No such file or directory ^ the result of the command in the console looks like this. Am I doing something wrong?

penglezos commented 1 week ago

That's sad to hear. Can you grab console-ramoops logs from /sys/fs/pstore ? adb shell cat /sys/fs/pstore/console-ramoops-0 > console-ramoops.txt

@penglezos I did what you said using adb:

cat: /sys/fs/pstore/console-ramoops-0: No such file or directory ^ the result of the command in the console looks like this. Am I doing something wrong?

@MiZantr0pe and everyone willing to debug this please flash this kernel image in fastboot:

Link: https://we.tl/t-kTuGZNb91N

Next time you face "random reboot" immediately capture and send the log here via this command: adb shell cat /sys/fs/pstore/console-ramoops-0 > console-ramoops.txt or adb shell cat /sys/fs/pstore/console-ramoops > console-ramoops.txt

@MiZantr0pe in your case unfortunately this log never generated. Please if it's possible, flash this kernel run the command and send me the results, we might get lucky and capture any suspicious activity resulting in your random reboots. Personally I can't because I didn't faced yet nor other people that I asked.

Thanks for your time to report this, I'm trying to figure out why this happens only to limited amount of people but I don't have enough feedback.

Random reboots usually happen on a kernel panic and the only way that can be captured is this as far as I know that's why you can't capture it via logcat.

MiZantr0pe commented 1 week ago

@penglezos can you explain this boot.img that needs to be installed, - what is the difference between the default boot.img? Is it suitable for everyday use and can I not be afraid that it will not cause unstable work by itself? Because earlier you dont recommended change ROM's kernel 😅

  • verify that kernel is installed

How can I verify this?

penglezos commented 1 week ago

@penglezos can you explain this boot.img that needs to be installed, - what is the difference between the default boot.img? Is it suitable for everyday use and can I not be afraid that it will not cause unstable work by itself? Because earlier you dont recommended change ROM's kernel 😅

  • verify that kernel is installed

How can I verify this?

Nothing has changed its my own build kernel (same as the default) with working console-ramoops.

About phone > Android version

MiZantr0pe commented 1 week ago

@penglezos Unfortunately, capturing the log file does not work on your kernel, screenshots are attached

a2710c9c-b010-4513-84cc-1ce9e6e640db

2024-09-03_10-52
Lazarus00001 commented 1 week ago

@MiZantr0pe after flash boot.img and reboot into system enable usb debuging and after that u need to wait until random reboot happen again, then try to capture ramoops log

MiZantr0pe commented 1 week ago

@penglezos @Lazarus00001

u need to wait until random reboot happen again

I have another one reboot - no logs again! The reboot occurred when I unlocking phine, the unlocking animation froze and the smartphone turned off.

image

penglezos commented 1 week ago

@penglezos Unfortunately, capturing the log file does not work on your kernel, screenshots are attached

a2710c9c-b010-4513-84cc-1ce9e6e640db

2024-09-03_10-52

@MiZantr0pe

I assume you have adb debugging enabled and latest adb & fastboot tools installed.

Try to enable "Rooted debugging" from the developer settings.

Open command line and type:

what is the output?

MiZantr0pe commented 1 week ago

@penglezos

what is the output?

just nothing :( output is empty Rooted debugging have already enabled before today's reboot

image

penglezos commented 1 week ago
  • adb shell cat /sys/fs/pstore/console-ramoops-0 > console-ramoops.txt

It should look like this: Screenshot from 2024-09-03 14-31-42

and the log file:

Screenshot from 2024-09-03 14-33-00

I don't know what's wrong with your setup mines as you can see works. Are you using the latest SDK Platform-Tools from https://developer.android.com/tools/releases/platform-tools or something else?

MiZantr0pe commented 1 week ago

. Are you using the latest SDK Platform-Tools from https://developer.android.com/tools/releases/platform-tools or something else?

@penglezos I just downloaded platform-tools for windows from your link. Disabled developer options on the phone. Rebooted the phone. Enabled developer options again. Enabled the root debugging flag. Launched the terminal in the platform-tools folder, entered your 3 commands - the result did not change. Screenshots in the attachment.

image

penglezos commented 1 week ago

. Are you using the latest SDK Platform-Tools from https://developer.android.com/tools/releases/platform-tools or something else?

@penglezos I just downloaded platform-tools for windows from your link. Disabled developer options on the phone. Rebooted the phone. Enabled developer options again. Enabled the root debugging flag. Launched the terminal in the platform-tools folder, entered your 3 commands - the result did not change. Screenshots in the attachment.

image

I don't know what else to say mate mines working perfectly as you can see from the screenshots attached previously. Something is screwed at your end. Did you tried to flash stock ROM and clean flash LineageOS?

MiZantr0pe commented 1 week ago

Did you tried to flash stock ROM and clean flash LineageOS?

@penglezos no, I didn't do that because I think your flashing guide eliminates any issues that might have been caused by the previous ROM's junk. If I install the stock miui 12 ROM using miflash tool, need I to unlock the bootloader again or not?

penglezos commented 1 week ago

Did you tried to flash stock ROM and clean flash LineageOS?

@penglezos no, I didn't do that because I think your flashing guide eliminates any issues that might have been caused by the previous ROM's junk. If I install the stock miui 12 ROM using miflash tool, need I to unlock the bootloader again or not?

There's no need to reunlock the bootloader just make sure to apply the correct options. Check out the internet for instructions.

MiZantr0pe commented 1 week ago

@penglezos ok I'll try reflash the stock ROM and install your 20th august's Lineage today

MiZantr0pe commented 3 days ago

@penglezos ok, I re-flashed ROM v20.08.2024 over the official stock MIUI12, there were no reboots so far (~130 hours of work). I will continue to observe. I did not install your modified kernel just in case - everything is by default. I won't install the latest version from today for now - I hope that reboots on the version from August 20 will disappear, and then I will be able to use more recent versions of the firmware with complete confidence.

penglezos commented 3 days ago

@penglezos ok, I re-flashed ROM v20.08.2024 over the official stock MIUI12, there were no reboots so far (~130 hours of work). I will continue to observe. I did not install your modified kernel just in case - everything is by default. I won't install the latest version from today for now - I hope that reboots on the version from August 20 will disappear, and then I will be able to use more recent versions of the firmware with complete confidence.

I advise you to update straight to the latest release.