Closed amazingfate closed 10 months ago
After replacing "!!disable" by 0, and uncommenting pen dump buf print, I can't get pen dump buf printed when drawing with pen with or without bluetooth connected.
When touching screen with finger I can see dump buf printed started with FF FF
.
I think xiaomi elish is using a new driver for its touchscreen pen. I can see kernel driver has loaded a firmware named novatek_nt36523_k81a_fw02_pen.bin
, and I can't see this from xiaomi's kernel code elish-r-oss. I will give up this pen on xiaomi elish.
We are now using nt36523 touchscreen driver from @lujianhua. And https://github.com/map220v/sm8150-mainline/commit/bdec74573c383fad5a5300f8c6a33cc96caa15d3 has enabled pen support. I am running xiaomi pad 5 pro with the same touchscreen driver and that enble-pen patch. I bought a xiaomi smart pen and I can pair it via bluetooth by method from this XDA post. But only the two keys on pen works as
PgUp
andPgDn
. I can see no events from commandlibinput-debug-events
when drawing on touchscreen.At the moment Windows has already supported xiaomi smart pen. So I guess there is still some work to get done on linux system side(kernel driver or userspace libinput?)
Here is my NVT driver log: