After having started X, my keyboard will cease to work for one or two minutes and then work for no reason. I'm using gnome/metacity right now, but if I use other window managers, it'll take longer for my keyboard to work at some random time. If I have gdm on boot, it won't work at all. I don't know how to diagnose this problem.

Any ideas? Thanks