Lost keyboard events after starting DBUS
Peter Åstrand
astrand at cendio.se
Tue Apr 21 03:05:30 PDT 2009
> After executing:
>
> eval `dbus-launch --sh-syntax --exit-with-session`
>
> in a xterm window, then keyboard events are occasionally lost. If you type,
> say, 1234567890, you will actually end up with something like 12356890. It's
The problem is actually not limited to Xvnc, I've been able to reproduce
it on a wide range of Xservers and platforms:
TigerVNC, X.Org 1.5.3: fails
xorg-x11-server-Xvfb-1.6.1-6.fc11.x86_64: fails
xorg-x11-server-Xvfb-1.5.3-15.fc10.i386: fails
xorg-x11-server-Xvfb-1.5.2-6.fc9.x86_64: fails (many events lost)
xorg-x11-server-Xorg-1.6.0-16.fc11.x86_64: fails
xorg-x11-server-Xorg-1.5.2-6.fc9.x86_64: fails
xorg-x11-server-Xorg-1.3.0.0-47.fc8: fails
In the Xvfb case, I was simulating keypresses using XSendEvent. If you
want to try this yourself, it's quite simple:
1. Login on the console, or unset XAUTHORITY.
2. xinit -- :47
3. eval `dbus-launch --sh-syntax --exit-with-session`
4. Start typing,
It seems like the rate of lost keys is basically one per second: By typing
one character per second, the problem is most easily triggered.
Using Wireshark, I've seen that all KeyPress events are actually delivered
to the application. It happens with both xterm and gnome-terminal, both
with bash and csh. I guess what's left is either:
1) A bug that's present in both xterm and gnome-terminal (seems unlikely)
or
2) Some kind of bug in libX11
Best regards,
---
Peter Åstrand ThinLinc Chief Developer
Cendio AB http://www.cendio.com
Wallenbergs gata 4
583 30 Linköping Phone: +46-13-21 46 00
More information about the xorg-devel
mailing list