My s5 crashes unpredictably.
LineageOS 14.1 doesn't seem to have pstore enabled, so there is no last_kmsg.
I got this script instead and ran it under Termux:
This constantly writes the log to a file ending 1, then 2, etc. when it gets to 600, it starts at 1 again (this is to stop it from filling up the whole SD card. The last modified log file reads as attached. It seems to work, but doesn't mention anything about a kernel panic. What do I do?
sm-g900f
lineageos 14.1
xposed enabled
root enabled
LineageOS 14.1 doesn't seem to have pstore enabled, so there is no last_kmsg.
I got this script instead and ran it under Termux:
Code:
#!/bin/sh
dir=/path/to/storage # Location of persistent storage
[[ -z "$dir/count" ]] && echo 0 >"$dir/count" # Seed the counter if missing
while sleep 0.25
do
count=$(( $(cat "$dir/count") +1 )) # Read the counter and increment
[[ $count -gt 600 ]] && count=1 # Reset so we can reuse diskspace
echo $count >"$dir/count" # Save the new value
dmesg >"$dir/dmesg.$count" # Write the data
done
This constantly writes the log to a file ending 1, then 2, etc. when it gets to 600, it starts at 1 again (this is to stop it from filling up the whole SD card. The last modified log file reads as attached. It seems to work, but doesn't mention anything about a kernel panic. What do I do?
sm-g900f
lineageos 14.1
xposed enabled
root enabled