Keys getting swapped round in KDE

0

After I run mplayer, the cursor keys on my keyboard get swapped with random keys on my keyboard...

Up = Print
Left = ISO_Level3_Shift
Right = Windows key
Down = Nothing

Restarting seems to fix the problem. The only sort-of work around I have is to turn off KHotkey daemon (which stops KSnapshot starting every time I press up). Changing the keyboard layout from one to another doesn't do anything, and also changing the keyboard model seems to have no effect. All other keys seem to work fine. I've never seen anything like this before.

What could I try?

Update:

Ah, actually it's not be mplayer. It's prooving to be very difficult to figure out exactly what is causing this to happen. It's fine when I first log in, but at some point the key swap occurs.

Nick Bolton

Posted 2009-12-14T14:23:53.113

Reputation: 2 941

Answers

1

Perhaps you have some key redefining going on in your MPlayer settings? Move ~/.mplayer/ away and try again.

Here's a work-around that aids you in debugging. Save your current working X keyboard layout to a file: setxkbmap -print | xkbcomp -xkb - -o ~/unborked.xkb Restore it any time: xkbcomp - $DISPLAY < ~/unborked.xkb

daxim

Posted 2009-12-14T14:23:53.113

Reputation: 1 072

Cool, I'll give that a try. – Nick Bolton – 2009-12-25T23:39:40.070