[?]Troubleshooting for phone restarting

kalex

Well-known member
Nov 22, 2010
446
23
18
A bit of topic question. Anyone know how to check why the phone restarted itself overnight? are there any logs kept somewhere on the device?
 
A bit of topic question. Anyone know how to check why the phone restarted itself overnight? are there any logs kept somewhere on the device?

/data/dontpanic/last_kmsg will contain the dmesg of the kernel that crashed.
 
  • Like
Reactions: kalex
Well technically for the record it just contains the last log. So if you rebooted again normally since the crash it won't have any crash details.
 
Is it possible to change the log settings so that instead of overwriting the log with only the last one, it appends (adds to) to the log, so that we can have a sort of running history? Or instead of appending to the log and making one single very long text file, can we perhaps set the logging susbsytem to create multiple log files, all named by date and time? For example, "LOG_12_02_2010_1100", "LOG_12_02_2010_1137", etc..

It seems to me that this would greatly aid in troubleshooting.
 
Not easily. Its defined in /init.rc so you'd need to rip the kernel apart and modify the ramdisk.
 
Even if doing so isn't the easiest thing to code, it seems to me that adding that ability to the logging subsystem would be a very useful addition, at least when your phone crashes.


Not easily. Its defined in /init.rc so you'd need to rip the kernel apart and modify the ramdisk.