[Xiaomi Mi 5 Questions & Answers] wolkenjaeger:
I tried a little bit more and found this kernel message of LineageOS in /proc/last_kmsg.txt

These are the last lines of it - full log is attached.

It looks like the last command is something about the sound card - at least it mentions the msm8996 chipset, which is basically the motherboard. Probably its simply faulty.

.....
[ 3.729094] init: Starting service 'logd'...
[ 3.747924] audit: type=1400 audit(122922.466:4): avc: denied { dac_override } for pid=410 comm="logd" capability=1 scontext=u:r:logd:s0 tcontext=u:r:logd:s0 tclass=capability permissive=0
[ 3.747952] audit: type=1400 audit(122922.466:5): avc: denied { dac_read_search } for pid=410 comm="logd" capability=2 scontext=u:r:logd:s0 tcontext=u:r:logd:s0 tclass=capability permissive=0
[ 3.749586] logd.auditd: start
[ 3.749636] logd.klogd: 3749607559
[ 4.042019] init: (Loading properties from /system/build.prop took 0.00s.)
[ 4.042069] init: (Loading properties from /vendor/build.prop took 0.00s.)
[ 4.042092] init: (Loading properties from /factory/factory.prop took 0.00s.)
[ 4.043508] init: Starting service 'debuggerd'...
[ 4.044055] init: Starting service 'debuggerd64'...
[ 4.045329] init: Starting service 'vold'...
[ 4.046845] init: Not bootcharting.
[ 4.188190] init: Starting service 'exec 1 (/system/bin/tzdatacheck)'...
[ 4.198959] init: Service 'exec 1 (/system/bin/tzdatacheck)' (pid 427) exited with status 0
[ 4.213899] init: Starting service 'perfd'...
[ 4.216848] init: Starting service 'sysinit'...
[ 4.217870] init: (Loading properties from /data/local.prop took 0.00s.)
[ 4.218072] init: Starting service 'logd-reinit'...
[ 4.218723] init: write_file: Unable to open '/sys/block/dm-0/queue/read_ahead_kb': No such file or directory
[ 4.218753] init: write_file: Unable to open '/sys/block/dm-1/queue/read_ahead_kb': No such file or directory
[ 4.242160] logd.daemon: reinit
[ 4.267946] subsys-pil-tz 9300000.qcom,lpass: adsp: loading from 0x000000008fe00000 to 0x0000000091900000
[ 4.595222] subsys-pil-tz 9300000.qcom,lpass: adsp: Brought out of reset
[ 4.608501] msm8996-asoc-snd soc:sound-9335: ASoC: platform (null) not registered
[ 4.615271] diag: In diag_send_feature_mask_update, control channel is not open, p: 1, 0000000000000000
[ 4.615924] msm8996-asoc-snd soc:sound-9335: ASoC: platform (null) not registered
[ 4.617363] subsys-pil-tz 9300000.qcom,lpass: adsp: Power/Clock ready interrupt received
[ 4.617396] subsys-pil-tz 9300000.qcom,lpass: Subsystem error monitoring/handling services are up
[ 4.617429] L-Notify: Generel: 7
[ 4.617444] sysmon_send_event_no_qmi: Message sending failed -19
[ 4.617676] init: Service 'sysinit' (pid 430) exited with status 0
[ 4.617786] init: Service 'logd-reinit' (pid 431) exited with status 0
[ 4.617794] sysmon-qmi: sysmon_clnt_svc_arrive: Connection established between QMI handle and adsp's SSCTL service
[ 4.617864] subsys-restart: __subsystem_get(): Changing subsys fw_name to slpi_a1
[ 4.625565] subsys-pil-tz 1c00000.qcom,ssc: slpi: loading from 0x0000000091900000 to 0x0000000092300000
[ 4.627847] apr_tal:Q6 Is Up
[ 4.634086] msm8996-asoc-snd soc:sound-9335: ASoC: CODEC DAI tasha_vifeedback not registered