You are not logged in.

#1 2018-05-21 17:40:35

AviaTorX
Member
Registered: 2018-05-21
Posts: 2

i2c_hid_get_input: incomplete report on each power cycle

I have fresh arch installed on ASUS FX503  and everytime whenever I start or shutdown laptop. I get a same log message

i2c_hid i2c-ELAN1200:00: i2c_hid_get_input: incomplete report 16/16466

I installed libinput and following is output of command libinput list-devices

Device:           ELAN1200:00 04F3:303E Touchpad
Kernel:           /dev/input/event8
Group:            11
Seat:             seat0, default
Size:             103x71mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge
Click methods:    *button-areas clickfinger
Disable-w-typing: enabled
Accel profiles:   none
Rotation:         n/a

please help me to solve this problem

Offline

#2 2018-05-21 19:16:48

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: i2c_hid_get_input: incomplete report on each power cycle

https://github.com/torvalds/linux/blob/ … hid.c#L490
seems the touchpad is generating a 16466 bytes report which is longer than the 16 bytes max allowed.

Offline

#3 2018-05-21 20:22:49

AviaTorX
Member
Registered: 2018-05-21
Posts: 2

Re: i2c_hid_get_input: incomplete report on each power cycle

loqs wrote:

https://github.com/torvalds/linux/blob/ … hid.c#L490
seems the touchpad is generating a 16466 bytes report which is longer than the 16 bytes max allowed.

what can I do to solve this isse?

According to me following line

int size = le16_to_cpu(ihid->hdesc.wMaxInputLength);

is intializing size to 16 but

ihid->bufsize

is larger than size..which is not getting updated....Please correct me if I am wrong

so to solve this issue
How can I increase the size of buffer? ...explicitly
...Thanks for help!!

Offline

#4 2018-05-21 20:52:53

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: i2c_hid_get_input: incomplete report on each power cycle

If the size of the buffer was wrong then I would expect more reports to be oversized.  If you pass in larger reports than the code expects that could cause more serious kernel issues.
You could remote the dev_err call so that it will not produce the error message

	if ((ret_size > size) || (ret_size <= 2)) {
		return;
}

You could also consider discussing the issue upstream see what the kernel developers response is.

perl scripts/get_maintainer.pl drivers/hid/i2c-hid/i2c-hid.c 
Jiri Kosina <jikos@kernel.org> (maintainer:HID CORE LAYER,commit_signer:11/12=92%,authored:1/12=8%)
Benjamin Tissoires <benjamin.tissoires@redhat.com> (reviewer:HID CORE LAYER,commit_signer:4/12=33%)
Andy Shevchenko <andriy.shevchenko@linux.intel.com> (commit_signer:3/12=25%,authored:2/12=17%,added_lines:6/73=8%,removed_lines:7/46=15%)
Jani Nikula <jani.nikula@intel.com> (commit_signer:2/12=17%)
Dmitry Torokhov <dmitry.torokhov@gmail.com> (commit_signer:2/12=17%,authored:1/12=8%,added_lines:9/73=12%,removed_lines:23/46=50%)
Aaron Ma <aaron.ma@canonical.com> (authored:2/12=17%,added_lines:20/73=27%,removed_lines:6/46=13%)
Hans de Goede <hdegoede@redhat.com> (authored:2/12=17%,added_lines:19/73=26%)
Rajat Jain <rajatja@google.com> (added_lines:13/73=18%,removed_lines:5/46=11%)
linux-input@vger.kernel.org (open list:HID CORE LAYER)
linux-kernel@vger.kernel.org (open list)

I would try the linux-input list from the address above.

Offline

#5 2018-07-08 19:32:25

anfractuosity
Member
Registered: 2018-07-08
Posts: 3

Re: i2c_hid_get_input: incomplete report on each power cycle

I get the same issue, but with dmesg being completely full with the message.

I just found this - https://patchwork.kernel.org/patch/10374383/

And https://patchwork.kernel.org/patch/10482679/

Last edited by anfractuosity (2018-07-08 19:37:58)

Offline

#6 2018-07-08 19:52:04

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: i2c_hid_get_input: incomplete report on each power cycle

@anfractuosity if it is the same issue the patch you referenced will not fix the issue https://bbs.archlinux.org/viewtopic.php … 7#p1796337

Offline

#7 2018-07-08 21:29:24

anfractuosity
Member
Registered: 2018-07-08
Posts: 3

Re: i2c_hid_get_input: incomplete report on each power cycle

Oh cheers loqs, thanks a lot! I'll keep an eye on that thread.

Offline

#8 2018-07-08 21:47:22

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: i2c_hid_get_input: incomplete report on each power cycle

Unless your device is identical to uttarayan21's you might want to contact upstream as well.
Edit:
grammar your instead of you

Last edited by loqs (2018-07-08 21:47:41)

Offline

Board footer

Powered by FluxBB