[Redmi Note 9S / Note 9 Pro (Indian Model) Question] ROMNinja:
Hi everyone,

I have a Redmi Note 9S (Curtana) with 6GB RAM and 128GB storage. Recently, I replaced my device's display with a third-party one. The display works perfectly with the stock firmware, but the touch functionality stops working with any custom ROM and even in TWRP.

Details:​

Device: Redmi Note 9S (Curtana)

Firmware: Stock firmware works fine with the third-party display.

Issue: Touchscreen not working on any custom ROM or TWRP.

ROMs Tried: pixelOS

Logs from dmesg | grep -i touch:​

[ 0.297809] xiaomi_touch_probe enter
[ 0.297812] xiaomi_touch_parse_dt touch,name:xiaomi-touch
[ 0.297839] xiaomi_touch_probe over
[ 0.521005] [FTS_TS/I]fts_ts_probe:Touch Screen(SPI BUS) driver prboe...
[ 0.521019] [FTS_TS/I]fts_parse_dt:max touch number:10, irq gpio:9, reset gpio:8
[ 0.521225] [FTS_TS/I]fts_ts_enable_regulator:Already disable touch regulator
[ 0.580647] [FTS_TS/I]fts_init_touchmode_data:ENTER into
[ 0.580652] [FTS_TS/I]fts_init_touchmode_data:mode:0, set cur:0, get cur:0, def:0 min:0 max:1
[ 0.580655] [FTS_TS/I]fts_init_touchmode_data:mode:1, set cur:0, get cur:0, def:0 min:0 max:1
[ 0.580657] [FTS_TS/I]fts_init_touchmode_data:mode:2, set cur:0, get cur:0, def:0 min:35 max:50
[ 0.580660] [FTS_TS/I]fts_init_touchmode_data:mode:3, set cur:0, get cur:0, def:0 min:64 max:255
[ 0.580662] [FTS_TS/I]fts_init_touchmode_data:mode:4, set cur:0, get cur:0, def:0 min:0 max:0
[ 0.580665] [FTS_TS/I]fts_init_touchmode_data:mode:5, set cur:0, get cur:0, def:0 min:0 max:0
[ 0.580667] [FTS_TS/I]fts_init_touchmode_data:mode:6, set cur:0, get cur:0, def:0 min:0 max:0
[ 0.580669] [FTS_TS/I]fts_init_touchmode_data:mode:7, set cur:0, get cur:0, def:2 min:0 max:3
[ 0.580672] [FTS_TS/I]fts_init_touchmode_data:mode:8, set cur:0, get cur:0, def:0 min:0 max:3
[ 0.580674] [FTS_TS/I]fts_init_touchmode_data:mode:9, set cur:0, get cur:0, def:0 min:0 max:0
[ 0.580676] [FTS_TS/I]fts_init_touchmode_data:mode:10, set cur:0, get cur:0, def:0 min:0 max:0
[ 0.580679] [FTS_TS/I]fts_init_touchmode_data:mode:11, set cur:0, get cur:0, def:0 min:0 max:0
[ 0.580681] [FTS_TS/I]fts_init_touchmode_data:mode:12, set cur:0, get cur:0, def:0 min:0 max:0
[ 0.580683] [FTS_TS/I]fts_init_touchmode_data:mode:13, set cur:0, get cur:0, def:0 min:0 max:0
[ 0.580686] [FTS_TS/I]fts_init_touchmode_data:mode:14, set cur:0, get cur:0, def:0 min:0 max:0
[ 0.580688] xiaomitouch_register_modedata
[ 0.580691] [FTS_TS/I]fts_ts_probe:Touch Screen(SPI BUS) driver prboe successfully
[ 0.580717] [NVT-ts] nvt_driver_init 3306: Unknow Touch
[ 1.896766] init: Parsing file /vendor/etc/init/vendor.xiaomi.hardware.touchfeature@1.0-service.rc...
[ 8.161408] init: starting service 'touchfeature-hal-1-0'...
[ 10.022465] init: processing action (boot) from (/vendor/etc/init/vendor.xiaomi.hardware.touchfeature@1.0-service.rc:5)
[ 17.124402] [FTS_TS/I]fts_ts_enable_regulator:Already disable touch regulator
[ 33.317630] [LCT_TP_PALM] lct_proc_tp_palm_write (line 188): Disable Touchpad ...
[ 33.721763] [LCT_TP_PALM] lct_proc_tp_palm_write (line 196): Set Touchpad successfully!
[ 234.646184] [LCT_TP_PALM] lct_proc_tp_palm_write (line 178): Enbale Touchpad ...
[ 234.787407] [FTS_TS/E]fts_read_touchdata:touch data(0) abnormal,ret:-5
[ 235.054691] [LCT_TP_PALM] lct_proc_tp_palm_write (line 196): Set Touchpad successfully!
[ 236.134905] [LCT_TP_PALM] lct_proc_tp_palm_write (line 188): Disable Touchpad ...
[ 236.540873] [LCT_TP_PALM] lct_proc_tp_palm_write (line 196): Set Touchpad successfully!
[ 250.746065] [FTS_TS/I]fts_read_parse_touchdata:abnormal touch data from fw
[ 250.762740] [FTS_TS/I]fts_read_parse_touchdata:abnormal touch data from fw
[ 283.277555] [FTS_TS/I]fts_read_parse_touchdata:abnormal touch data from fw
[ 301.873791] [FTS_TS/I]fts_read_parse_touchdata:abnormal touch data from fw
[ 301.890603] [FTS_TS/I]fts_read_parse_touchdata:abnormal touch data from fw
[ 328.039146] [FTS_TS/I]fts_read_parse_touchdata:abnormal touch data from fw
[ 328.055951] [FTS_TS/I]fts_read_parse_touchdata:abnormal touch data from fw

Request:​

Has anyone faced a similar issue with a third-party display on the Redmi Note 9S (Curtana)?

Can anyone provide guidance on how to integrate the necessary touch drivers into the custom ROM or TWRP?

Are there any custom kernels available that support third-party displays on custom ROMs for this device?

Any help or pointers would be greatly appreciated. Thank you!