Today I had to force-shutdown my machine after it froze during resume from suspend. Since the reboot, I've found that the p key doesn't work normally in X. It does work normally in the console.
Modified keypresses, e.g. shift-p, ctrl-p, do work normally.
Pressing p with xev running gives
FocusOut event, serial 34, synthetic NO, window 0x5000001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 34, synthetic NO, window 0x5000001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 34, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Could this problem be happening because of file corruption? What file would I check for corruption?
I've done an fsck on the system drive —by running tune2fs -C 200 /dev/sda3 before rebooting— which seems to have come up clean. I.E.
$ sudo tune2fs -l /dev/sda3 | grep 'state\|check'
Filesystem state: clean
Last checked: Sat Dec 11 12:27:16 2010
Next check after: Thu Jun 9 13:27:16 2011
I'm running an updated (last dist-upgrade done yesterday) ubuntu 10.10.