触控驱动一直打印dmesg信息:i2c_hid_get_input: incomplete report

Ubuntu网站下报的bug中说问题解决了,不过在我这里并没有。看了以下源码虽然是改了,但问题还在。

This problem did not occur on the previous kernel version so there must have been a change to the “drivers/hid/i2c-hid/i2c-hid.c” file. This seems to be fixed in a recent commit here: https://github.com/torvalds/linux/commit/ef6eaf27274c0351f7059163918f3795da13199c

解决办法是下载当前使用的内核版本源码,直接进行修改编译生成定制内核,修改的源码部分如下:

找到下面这段代码:

dev_err修改成 dev_err_once, 这样有错误信息时只会打印一次。

接下来就是编译安装内核,参考另一篇文章: Post Views: 3,773