Bug#470882: /dev/gpmctl freezes acknowledge

Kurt Roeckx kurt at roeckx.be
Sat Oct 25 19:27:11 UTC 2008


On Sat, Oct 25, 2008 at 08:47:08PM +0200, Christoph Berg wrote:
> [http://wiki.debian.org/BugSprint is to blame for me looking into this]
> 
> As the locking occurs on exactly the 7th event (using rxvt-unicode +
> pdmenu here), there must be kept some state somewhere. That's most
> likely gpm.

Restarting gpm makes it work again.

> So far I managed to find a way to work around the problem by starting
> gpm with the -F (force repeat) option:

I've always used the -R option which I probably don't need anymore,
so I guess that's why I couldn't reproduce it.

>       int fd = open_console(O_RDONLY);
>       if (ioctl(fd, KDGETMODE, &kd_mode) < 0)
>          gpm_report(GPM_PR_OOPS,GPM_MESS_IOCTL_KDGETMODE);
>       close(fd);
>       if(kd_mode != KD_TEXT && !option.repeater && !option.force_repeat) {
>          wait_text(&mouse_table[1].fd);

You know that you're looking at the code from experimental, right?


Kurt






More information about the pkg-gpm-devel mailing list