[PATCH] evdev - relax checks when reopening devices

Éric Piel E.A.B.Piel at tudelft.nl
Tue Nov 3 01:22:59 PST 2009


Op 03-11-09 08:11, Dmitry Torokhov schreef:
> Hi Peter,
> 
> Evdev is way too paranoid when checking whether it deals with the same
> device when switching consoles which causes people lose keyboards if
> they happen to adjust keymap after X starts. PLease consider applying
> the patch below.
> 
Hi,
What Dmitry didn't mention is that it should help with the bug described
here: https://bugs.freedesktop.org/show_bug.cgi?id=24687

Aka:
* start X
* do "setkeycodes ..." (as recommended in dmesg)
* suspend/resume
* you've lost your keyboard

I haven't tried this patch yet (because I only have xserver 1.6 and
compiling latest evdev with it is not so straightforward), but it looks
like it should solve the problem for my case :-)

See you,
Eric



More information about the xorg mailing list