connect i2c-hid touchscreen device and how to bring up?

538 views
Skip to first unread message

Scott Liu

unread,
May 9, 2017, 1:24:59 AM5/9/17
to Chromium OS dev
 I have an i2c-hid touchscreen device and works well on win10 OS.
and now I want to install chromium OS with board=x86-generic and trying to bring it up by i2c-hid driver.
Does it need preparation, like: i2c address, hid descriptor address, ACPI ID "PNP0C50" ?
thanks for help!

Dmitry Torokhov

unread,
May 9, 2017, 1:22:26 PM5/9/17
to Scott Liu, Chromium OS dev
Hi Scott,
If you are trying to install chromium OS on a device that originally
shipped with Win10, I'd expect the touchscreen already be described in
its ACPI tables, and i2c-hid should be able to locate the device (by
PNP0C50 CID) and get HID descriptor address from ACPI data.

If you are connecting a new touchscreen to some x86 device then you
will need to instantiate a new i2c_client device and attach instance
of struct i2c_hid_platform_data to it.

Hope this helps,
Dmitry
Message has been deleted

Scott Liu

unread,
May 10, 2017, 12:31:00 AM5/10/17
to Chromium OS dev, scot...@emc.com.tw

Hi Dmitry,
I appreciate your explanation.
After I built an image and run on x86 platform, however I encountered two problems:
1. keyboard is lost functionality and work around is by external USB keyboard.
2. Chromium os didn't recognize Elan's i2c device -> cat /sys/bus/i2c/devices/ and not seeing any elan i2c device.
    Does it mean there are some hardware/driver compatible issue?
    How can I confirm this compatible issue and overcome it if possible, thanks!!


BR,
Scott

Dmitry Torokhov

unread,
May 10, 2017, 6:01:50 PM5/10/17
to Scott Liu, Chromium OS dev
Hi Scott,

On Tue, May 9, 2017 at 9:31 PM, Scott Liu <scot...@emc.com.tw> wrote:
>
> Hi Dmitry,
> I appreciate your explanation.
> After I built an image and run on x86 platform, however I encountered two
> problems:
> 1. keyboard is lost functionality and work around is by external USB
> keyboard.

When you are saying that you lost keyboard functionality, are you
comparing to Windows or a generic Linux distro to Chrome OS?

> 2. Chromium os didn't recognize Elan's i2c device -> cat
> /sys/bus/i2c/devices/ and not seeing any elan i2c device.
> Does it mean there are some hardware/driver compatible issue?
> How can I confirm this compatible issue and overcome it if possible,
> thanks!!

Given that you are not providing any details whatsoever (no kernel
logs, no hardware description) it is impossible to say why some
devices do not work.

Thanks,
Dmitry

Scott Liu

unread,
May 11, 2017, 6:28:50 AM5/11/17
to Chromium OS dev, scot...@emc.com.tw
Hi Dmitry,


On Thursday, May 11, 2017 at 6:01:50 AM UTC+8, Dmitry Torokhov wrote:

When you are saying that you lost keyboard functionality, are you
comparing to Windows or a generic Linux distro to Chrome OS?

        The keyboard issue is that it works when chromium is on the login screen, I can input email address.

        After I choose "browse as guest" and keyboard is no longer functionality.

        And I run "evtest" program and I can see my input event comes up.
        But it may be chromium X window problem....I guess.


Given that you are not providing any details whatsoever (no kernel
logs, no hardware description) it is impossible to say why some
devices do not work.

OK, I will send log for debug.

thanks,
Scott
 

Scott

unread,
May 11, 2017, 11:01:59 AM5/11/17
to Chromium OS dev
Hi Dmitry,

從我的 iPad 傳送

Scott Liu <scot...@emc.com.tw> 於 2017年5月11日 下午6:28 寫道:

Hi Dmitry,

On Thursday, May 11, 2017 at 6:01:50 AM UTC+8, Dmitry Torokhov wrote:

When you are saying that you lost keyboard functionality, are you
comparing to Windows or a generic Linux distro to Chrome OS?

        The keyboard issue is that it works when chromium is on the login screen, I can input email address.

        After I choose "browse as guest" and keyboard is no longer functionality.

        And I run "evtest" program and I can see my input event comes up.
        But it may be chromium X window problem....I guess.

After I rebuild the R60 image, this issue is gone. Thanks!

BR,
Scott
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages