How can chromium mutli-touch on Linux?

2,767 views
Skip to first unread message

M.Yamada

unread,
Dec 3, 2013, 5:28:29 AM12/3/13
to chromi...@chromium.org
I want to achieve multi-touch gesture(e.g. Pinch zoom)  on Linux with chromium of now (over version 30).
I 'm aware that it has not been implemented in Chromium now.

I found, Patch has been made​in the article of "https://chromiumcodereview.appspot.com/9773024", 
but it seems that was not implemented.

Those patches cannot be used for me. Because it different from the source of now.

Please someone advice me.

Lei Zhang

unread,
Dec 3, 2013, 3:10:05 PM12/3/13
to yama...@gmail.com, Chromium-dev
If you really want to try it out, checkout the source code from ~20
months ago and try applying the patch.
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev

Sadrul Chowdhury

unread,
Dec 3, 2013, 4:11:04 PM12/3/13
to yama...@gmail.com, Chromium-dev
On Tue, Dec 3, 2013 at 5:28 AM, M.Yamada <yama...@gmail.com> wrote:
> I want to achieve multi-touch gesture(e.g. Pinch zoom) on Linux with
> chromium of now (over version 30).
> I 'm aware that it has not been implemented in Chromium now.

In a future version (when we have linux-aura), multi-touch should work
reasonably OK (https://codereview.chromium.org/89413002/).

Sadrul

>
> I found, Patch has been madein the article of
> "https://chromiumcodereview.appspot.com/9773024",
> but it seems that was not implemented.
>
> Those patches cannot be used for me. Because it different from the source of
> now.
>
> Please someone advice me.
>
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to chromium-dev...@chromium.org.

M.Yamada

unread,
Dec 3, 2013, 7:52:59 PM12/3/13
to chromi...@chromium.org, yama...@gmail.com
Hi, Lei 

I will try version 19.0.1060.0 .
I guess that it version is the version of the page of "Issue 9773024" nearly.

Thank you for your advice.


2013年12月4日水曜日 5時10分05秒 UTC+9 Lei Zhang:

M.Yamada

unread,
Dec 3, 2013, 8:24:18 PM12/3/13
to chromi...@chromium.org, yama...@gmail.com, sad...@chromium.org

Hi Sadrul.
Do you try the implementation of multi-touch on Linux/X11 now?
Can it be due to do a Pinch Zoom/Out, Flick, and Pain?
It is great if so.


M.Yamada


2013年12月4日水曜日 6時11分04秒 UTC+9 Sadrul Chowdhury:

M.Yamada

unread,
Dec 6, 2013, 4:26:05 AM12/6/13
to chromi...@chromium.org, yama...@gmail.com, sad...@chromium.org
Hi Sadrul Chowdhury

Congratulations  closed Issue 89413002: linux aura: Support touch events. 

I got source, and I will build.

Please, tell me.
What options gyp_chromium will be required?
I attached the following options.
Is there anything else ?

./build/gyp_chromium -D component=shared_library -D disable_nacl=1 -D werror="" -D use_aura=1

Thanks

  M.Yamada


2013年12月4日水曜日 10時24分18秒 UTC+9 M.Yamada:

Sadrul Chowdhury

unread,
Dec 6, 2013, 4:34:10 AM12/6/13
to M.Yamada, Chromium-dev
On Fri, Dec 6, 2013 at 4:26 AM, M.Yamada <yama...@gmail.com> wrote:
> Hi Sadrul Chowdhury
>
> Congratulations closed Issue 89413002: linux aura: Support touch events.
>
> I got source, and I will build.
>
> Please, tell me.
> What options gyp_chromium will be required?
> I attached the following options.
> Is there anything else ?
>
> ./build/gyp_chromium -D component=shared_library -D disable_nacl=1 -D
> werror="" -D use_aura=1

That should be sufficient. You may need to add
'--touch-events=enabled' flag when running chromium.

Sadrul

M.Yamada

unread,
Dec 8, 2013, 10:41:32 PM12/8/13
to chromi...@chromium.org, M.Yamada, sad...@chromium.org
Hi, Sadrul Chowdhury.

Thank you for the reply.
I really appreciate it.

I built the chroium, and  I ran chroium with the option of following the chromium.
  ./chrome --touch-events=enabled

But, Multi-touch is not running in my environment yet.

My environment:
  OS is ubuntu 12.04 LTS
  In I'm using a touch panel monitor.

INPUT DEVICE of the touch panel is assigned to /dev/input/event5.
It exists.

The mouse cursor moves to the position that touched when I touch the touch panel.
However, link or button does not respond.

When I browse the site of http://www.rbyers.net/eventTest.html, Events mousedown, mousemove, mouseup, scroll occurs.
However touch event does not occur.

Maybe my environment is bad or different.

Please tell me an advice.

Thank you.


2013年12月6日金曜日 18時34分10秒 UTC+9 Sadrul Chowdhury:

Sadrul Chowdhury

unread,
Dec 9, 2013, 10:23:22 PM12/9/13
to M.Yamada, Chromium-dev
On Sun, Dec 8, 2013 at 10:41 PM, M.Yamada <yama...@gmail.com> wrote:
> Hi, Sadrul Chowdhury.
>
> Thank you for the reply.
> I really appreciate it.
>
> I built the chroium, and I ran chroium with the option of following the
> chromium.
> ./chrome --touch-events=enabled
>
> But, Multi-touch is not running in my environment yet.
>
> My environment:
> OS is ubuntu 12.04 LTS
> In I'm using a touch panel monitor.
>
> INPUT DEVICE of the touch panel is assigned to /dev/input/event5.
> It exists.

What if you make the touchscreen a floating slave device instead?

To do this: run the 'xinput list' command, it will print something like:

⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech USB Optical Mouse id=8 [slave pointer (2)]
⎜ ↳ <touch-screen name> id=10
[slave pointer (2)]

You would then run 'xinput float 10' (the id for the touchscreen
listed above). This should get the touch-events working in chrome.
However, I understand this breaks interacting with other apps using
the touchscreen. I have filed http://crbug.com/327224 to keep track of
this. (you can run 'xinput reattach 10 2' to undo the change made from
'xinput float 10').

Sadrul

M.Yamada

unread,
Dec 11, 2013, 7:06:33 AM12/11/13
to chromi...@chromium.org, M.Yamada, sad...@chromium.org

Hi, Sadrul Chowdhury. 

I changed touchscreen device form 'slave pointer' to 'floating slave'.
And then the Chromium was to be able to touch.

And I added switch( '--enable-pinch' ) of startup of Chromium.
Chromium was able to Pinch zoom.

My startup command of Chromium:

./chrome --touch-events=enabled --enable-pinch

I am very glad. 
It is due to your contribution.
Thank you.

My next step,  I would like to run on ARM CPU board. (OS is ubuntu)
However, to cross-compile it is tough.

I hope that it provides a chrome latest version for ARM at site somewhere.

I will do my best to cross-compilation.
Thanks.


2013年12月10日火曜日 12時23分22秒 UTC+9 Sadrul Chowdhury:
Reply all
Reply to author
Forward
0 new messages