Keyboard events for Chrome wayland server

89 views
Skip to first unread message

Jeffrey Kardatzke

unread,
Dec 10, 2018, 5:05:28 PM12/10/18
to Chromium-dev
I'm working on a problem in Crostini where we are seeing errant pressed keys getting sent from the Wayland server in Chrome.

Anybody know where the keyboard events that get sent out of the wayland server in Chrome originate from?  I was pointed to components/exo/keyboard.cc but after adding some logging I'm only seeing events in there on the login screen, but not afterwards.

Thanks,

--
Jeffrey Kardatzke
Google, Inc.

Scott Violet

unread,
Dec 10, 2018, 5:14:32 PM12/10/18
to Jeffrey Kardatzke, chromium-dev
Depends upon how far down in the stack you want to go. I believe ozone (evdev) is likely the place the events first enter the system. Slightly higher up is AshWindowTreeHostPlatform::DispatchEvent().

  -Scott

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CA%2BddPcMmABLxvhCc306R30Ear6yW3B9S1p_2Pdyx0f_Zew3R0Q%40mail.gmail.com.

Michael Spang

unread,
Dec 10, 2018, 5:28:39 PM12/10/18
to Scott Violet, jkard...@google.com, chromium-dev

Jeffrey Kardatzke

unread,
Dec 10, 2018, 5:29:05 PM12/10/18
to s...@chromium.org, Chromium-dev
OK, thanks...I'll take a look there.

And apparently I am getting the events in there after login...but something really odd is happening with the logging from Chrome in Chrome OS.  It'll log to the /var/log/ui/ui.LATEST file (which is a symlink) and then at some point shortly after login it switches that to a new file and entries I saw from doing a 'tail -F /var/log/ui/ui.LATEST' end up not appearing in those files at that point and no additional information is written to those files either...I have no idea what's happening with the logging in that scenario, but likely specific to Chrome OS.  And Chrome didn't crash when it switches to a new logfile either.

Jeffrey Kardatzke

unread,
Dec 10, 2018, 5:30:50 PM12/10/18
to sp...@chromium.org, s...@chromium.org, Chromium-dev
Ahhh, OK I can see them in /home/chronos/user/log/chrome at that point...thanks!
Reply all
Reply to author
Forward
0 new messages