Bug 161152

Summary: kdm doesn't accept keyboard/mouse input after logout
Product: kdm Reporter: Bernhard Rosenkraenzer <bero>
Component: generalAssignee: kdm bugs tracker <kdm-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: rdieter, tuju
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Patch for xorg xserver to fix this

Description Bernhard Rosenkraenzer 2008-04-22 14:35:18 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.3.0 
OS:                Linux

With current git Xorg, kdm stops accepting keyboard/mouse input after a logout:

1. Bootup
2. kdm ---> keyboard/mouse work
3. KDE ---> keyboard/mouse work
4. Logout
5. kdm ---> keyboard/mouse don't do anything at all, even keyboard LEDs don't work
6. ssh in, run "killall kdm" (kdm is automatically restarted by init)
7. keyboard/mouse work again

This happens both on trunk and on current 3.5 branch.

I suspect this is actually an X bug, but only kdm seems to trigger it (xdm seems to work).
Comment 1 Bernhard Rosenkraenzer 2008-04-22 14:47:53 UTC
Debugging some more, it definitely is an X bug -- xserver/dix/devices.c does DeleteInputDeviceRequest().
Comment 2 Bernhard Rosenkraenzer 2008-04-22 14:51:41 UTC
Created attachment 24478 [details]
Patch for xorg xserver to fix this

The attached patch (applied to xserver) fixes it. No need to do anything from
the KDE side, just putting in the patch for ppl coming across this bug report
when running into the same issue.
Comment 3 Oswald Buddenhagen 2008-04-28 16:51:02 UTC
ah, so the usual workaround TerminateServer=true would work here, too.
Comment 4 Bernhard Rosenkraenzer 2008-04-28 17:01:36 UTC
Yes, fixing the server is just the nicer thing to do ;)