[Samsung Galaxy J5 (2015) ROMs, Kernels, Recoveries] tweakradje:
[MENTION=7571048]Dyneteve[/MENTION]

Hi. I am testing your Oreo on the J510FN with the ROM I found here:

https://download.msm8916.com/ResurrectionRemix/j5xnlte/20180528/

It is working very well except for one little thing. I see huge CPU usage on the init process that drains the battery. But not every time I boot.

←[7m PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS
1 root 20 0 15M 2.1M 1.0M S 33.0 0.1 3:57.70 init
11078 root 20 0 5.7M 1.8M 1.1M R 5.0 0.0 0:01.83 top
10911 root 20 0 0 0 0 S 2.3 0.0 0:02.31 [kworker/u8:1]
237 logd 30 10 14M 4.2M 1.2M S 0.6 0.2 0:41.20 logd

Looks like the Thermal Engine keeps dying and starting. From logcat:

6-08 23:48:38.572 10434 10434 E ThermalEngine: thermal-engine lockup detected count=5:prev_count=5
6-08 23:48:38.800 10724 10724 I ThermalEngine: Thermal daemon started
6-08 23:48:38.801 10724 10724 I ThermalEngine: No target config file, falling back to '/system/etc/thermal-engine.conf'
6-08 23:48:38.801 10724 10724 I ThermalEngine: devices_manager_init: Init
6-08 23:48:38.801 10724 10724 I ThermalEngine: Number of gpus :1
6-08 23:48:38.801 10724 10724 I Thermal-IOCTL: KTM IOCTL interface "/dev/msm_thermal_query" opened
6-08 23:48:38.802 10727 10727 I thermal-engine: type=1400 audit(0.0:3648): avc: denied { connectto } for path="/dev/socket/qmux_radio/qmux_connect_socket"
6-08 23:48:38.802 10724 10724 E ThermalEngine: update_cpu_topology: Error reading cluster info node /sys/module/msm_thermal/cluster_info
6-08 23:48:38.802 10724 10724 E ThermalEngine: cpu[0] not found in any cluster
6-08 23:48:38.803 10724 10724 E ThermalEngine: cpu[1] not found in any cluster
6-08 23:48:38.803 10724 10724 E ThermalEngine: cpu[2] not found in any cluster
6-08 23:48:38.803 10724 10724 E ThermalEngine: cpu[3] not found in any cluster
6-08 23:48:38.803 10724 10724 E ThermalEngine: tmd_init_cluster_devs: Can't read number of clusters
6-08 23:48:38.803 10724 10724 E ThermalEngine: devices_init: Init cluster TMD failed -5
6-08 23:48:38.804 10724 10724 I ThermalEngine: vdd_rstr_init: Init KTM VDD RSTR enabled: 0
6-08 23:48:38.804 10724 10724 I ThermalEngine: sensors_manager_init: Init
6-08 23:48:38.808 10724 10724 E ThermalEngine: bcl_setup: Unexpected node error
6-08 23:48:38.808 10724 10724 E ThermalEngine: add_tgt_sensors_set: Error adding bcl
6-08 23:48:38.808 10724 10724 E ThermalEngine: sensors_init: Error adding BCL TS
6-08 23:48:38.808 10724 10724 E ThermalEngine: adc_sensors_setup: Error opening /sys/bus/spmi/devices/qpnp-vadc-5/xo_therm_pu2
6-08 23:48:38.808 10724 10724 E ThermalEngine: add_tgt_sensors_set: Error adding xo_therm_pu2
6-08 23:48:38.808 10724 10724 E ThermalEngine: sensors_init: Error adding ADC TS
6-08 23:48:38.810 10724 10724 E ThermalEngine: No hwmon device found in the kernel for sensor max170xx_battery
6-08 23:48:38.810 10724 10724 E ThermalEngine: add_tgt_sensors_set: Error adding max170xx_battery
6-08 23:48:38.810 10724 10724 E ThermalEngine: sensors_init: Error adding HWMON TS
6-08 23:48:38.811 10724 10724 E ThermalEngine: Device config file '/system/etc/thermal-engine-na.conf' does not exist
6-08 23:48:38.811 10724 10724 I ThermalEngine: No target config file, falling back to '/system/etc/thermal-engine.conf'
6-08 23:48:38.812 10724 10724 I ThermalEngine: Loading config file for virtual sensor
6-08 23:48:38.812 10724 10724 I ThermalEngine: Loading configuration file /system/etc/thermal-engine.conf
6-08 23:48:38.812 10724 10724 I ThermalEngine: Parsing section global
6-08 23:48:38.812 10724 10724 I ThermalEngine: Found field 'sampling'
6-08 23:48:38.812 10724 10724 E ThermalEngine: virtual_sensors_init: Error getting virtual sensors set
6-08 23:48:38.812 10724 10724 I ThermalEngine: Loading configuration file /system/etc/thermal-engine.conf
6-08 23:48:38.812 10724 10724 I ThermalEngine: Parsing section global
6-08 23:48:38.813 10724 10724 I ThermalEngine: Found field 'sampling'
6-08 23:48:38.813 10724 10724 I ThermalEngine: Created section 'SS-MSM-THERM'
6-08 23:48:38.813 10724 10724 I ThermalEngine: Algo Type 'ss'
6-08 23:48:38.813 10724 10724 I ThermalEngine: Parsing section SS-MSM-THERM

Maybe related -> dmesg is full of this:

[ 1332.342488] mevbug: Event. Dev: input5, Type: 2, Code: 0, Value: 132
[ 1332.342504] mevbug: Event. Dev: input5, Type: 2, Code: 1, Value: 271
[ 1332.342518] mevbug: Event. Dev: input5, Type: 2, Code: 2, Value: 8085
[ 1332.342531] mevbug: Event. Dev: input5, Type: 2, Code: 7, Value: 3518
[ 1332.342544] mevbug: Event. Dev: input5, Type: 2, Code: 9, Value: -1241049440
[ 1332.342557] mevbug: Event. Dev: input5, Type: 0, Code: 0, Value: 0

Do you need some info from me to fix that problem? Should I try another kernel?

Thanks