Bug#470882: /dev/gpmctl freezes acknowledge

Gerfried Fuchs rhonda at deb.at
Wed Nov 12 13:43:19 UTC 2008


* Samuel Thibault <samuel.thibault at ens-lyon.org> [2008-11-11 22:24:53 CET]:
> The problem is that you both want a mouse on the text console and a
> mouse in X.  The correct way is to use a repeater: gpm reads
> /dev/input/mice, and repeats to X.  Now, gpm tries to play nice with X
> servers that would read /dev/input/mice themselves: if a repeater is not
> setup, then when not in text mode gpm closes the mouse (to let X open
> it).
> 
> The unfortunate effect here is that it waits without handling clients.
> The attached patch fixes that: when not in text mode, the mouse
> is closed, but the select() loop continues.  I had to change the
> timeout of select, I have made it 2 seconds, like the latency of the
> previously-used wait_text().  That should fix the hang of clients.

 Are you sure with that fix? I applied it and did a local rebuild, and
now pdmenu segfaults on any keypress after starting. I don't really call
that an improvment. :)

 Just to be sure I did it properly, I dumped your patch into
debian/patches/060_eliminate-hang-in-X11 and added it to the series
file, the rebuild did happen in a current sid chroot.

 So long,
Rhonda





More information about the pkg-gpm-devel mailing list