Lineage based port for Xperia 10 V (zambezi)

A little info from me regarding the charging mode threshold limitation:

The journal shows that the kernel or driver is running a watchdog that changes the status in the file /sys/class/battchg_ext/smart_charging_interruption from 1 to 0 after almost exactly half an hour.

Aug 27 12:00:54 Xperia10V kernel: [charge_info_status]usb_present:1 / usb_online:1 / usb_voltage:5029408 / usb_current:125865 / chg_type:5                  batt_present:1 / batt_status:1 / batt_temp:316 / batt_current:0 / batt_voltage:4258268 / batt_soc:88 chg->typec_mode = 6
Aug 27 12:00:54 Xperia10V kernel: [charge_info_other] connector_temp = 0 thermal_status =5 water_det = 0 system_temp_level = 0 otg_current = 1000000 fv = 4480000 
Aug 27 12:00:55 Xperia10V kernel: [drm:sde_connector_check_status_work:2557] [sde error]Check err_flag status 0
Aug 27 12:00:56 Xperia10V kernel: (virq:irq_count)- 4:1056049 14:692727 206:646492 20:329363 6:179007 172:88999 297:55562 1:45660 21:29081 173:26951 
Aug 27 12:00:56 Xperia10V kernel: (cpu:irq_count)- 0:2242607 1:272214 2:163726 3:174138 4:66603 5:72747 6:99247 7:209287 
Aug 27 12:00:56 Xperia10V kernel: (ipi:irq_count)- 0:5856012 1:957276 2:0 3:0 4:8026 5:1128313 6:0 
Aug 27 12:00:56 Xperia10V kernel: pm7250b_charger: smblib_set_icl_current: set ICL to 1000000uA
Aug 27 12:00:56 Xperia10V kernel: ALG: cap_learning_update: [SOMC CL][OFF] charge_status:1 bsoc_cp:8474
Aug 27 12:00:56 Xperia10V healthd: battery l=88 v=4258 t=31.6 h=2 st=2 c=0 fc=5095000 cc=0 chg=a
Aug 27 12:00:59 Xperia10V kernel: [FTS_TS]get_flow_cnt:reg0x91,val:c7,last:c7
Aug 27 12:00:59 Xperia10V kernel: pm7250b_charger: smblib_somc_smart_charge_wdog_work: Smart Charge Watchdog timer has expired.
Aug 27 12:00:59 Xperia10V kernel: pm7250b_charger: smblib_set_icl_current: set ICL to 1000000uA
Aug 27 12:00:59 Xperia10V kernel: ALG: cap_learning_update: [SOMC CL][OFF] charge_status:1 bsoc_cp:8474
Aug 27 12:00:59 Xperia10V kernel: [charge_info_status]usb_present:1 / usb_online:1 / usb_voltage:5004496 / usb_current:141110 / chg_type:5                  batt_present:1 / batt_status:1 / batt_temp:316 / batt_current:0 / batt_voltage:4258268 / batt_soc:88 chg->typec_mode = 6

Setting /sys/class/qcom-battery/restrict_chg to 1 (echo 1 > /sys/class/qcom-battery/restrict_chg
) unfortunately doesn’t prevent the phone from charging.

2 Likes