Key always pressed (sticky or blocked)

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
patkoscsaba
Level 1
Level 1
Posts: 5
Joined: Sun Jun 14, 2009 5:06 pm

Key always pressed (sticky or blocked)

Post by patkoscsaba »

Hi all. This is my first post here... sorry if this topic was already discussed, but I could not find anything related.

In applications run with wine, especially games (but not only) one or more keys seem to be pressed. I mean, even if I don't even touch the keyboard, the program thinks I continuously press UP ARROW and/or RIGHT ARROW.

This happens regardless of applications. Sometimes I can play hours with absolutely no problem, than I am suddenly getting continuous forwoard or other key.
Or in some applications (for example a word processor like application) when I get with the mouse outside of the edit area, it starts to scroll continuously up or down, left or right.

I repeat, this happens independent of the application. Same application can work for days without a problem, than suddenly broke.

Also, if I restart the application, or X, or the hole computer, it doesn't help at all. This problem seems to be completely random.

My system:
- Mandriva Linux 2009.1 64bits
- tried wine 1.1.20 -> 1.1.23
- nvidia gforce 8600gt
- KDE4.2.2 ( with or without 3D, it is the same)
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Key always pressed (sticky or blocked)

Post by vitamin »

patkoscsaba wrote:Or in some applications (for example a word processor like application) when I get with the mouse outside of the edit area, it starts to scroll continuously up or down, left or right.
Are you pressing those keys when you move mouse outside of the program's window? what is your focus policy is set to click to focus, or follow mouse?
patkoscsaba
Level 1
Level 1
Posts: 5
Joined: Sun Jun 14, 2009 5:06 pm

Post by patkoscsaba »

Focus policy is "click to focus", both in Linux and Wine.

I can reproduce this without ever touching the keyboard after starting the application in wine.

For example, I start SwishMax2.0, I click for a new flash movie, I draw with the mouse a rectangle in the edit area. Then i leave with the cursor that area (I place it over the timeline or a toolbar) without clicking or pressing any key ... it starts to scroll, as I suddenly hit an arrow.

Or in a game, I double-click the .exe in Dolphin (or run in from the command line), everything loads, than the game show the Main Menu. It immediately starts moving up (or down, but mostly up) the active menu item. I can stop it only if I keep pressed down to counteract the up action. This behavior follows into the gameplay, when a continuous up makes a FPS game unplayable.

I tried to delete ~./.wine and reinstall the different software, but I have no luck.

Even if you don't know a solution, at least please give me some ideas about how to debug this, how to find out what is going wrong...

PS: there are no key or keyboard related errors/messages in console if I start the respective programs from command line.
patkoscsaba
Level 1
Level 1
Posts: 5
Joined: Sun Jun 14, 2009 5:06 pm

Post by patkoscsaba »

Ah! And one more thing, this is not happening on my laptop, where I have Mandriva 2009.0 on 32bits and the same 1.1.23 wine.
nemethpeter2
Newbie
Newbie
Posts: 3
Joined: Mon Jun 15, 2009 6:41 pm

Re: Key always pressed (sticky or blocked)

Post by nemethpeter2 »

patkoscsaba wrote:Hi all. This is my first post here... sorry if this topic was already discussed, but I could not find anything related.

In applications run with wine, especially games (but not only) one or more keys seem to be pressed. I mean, even if I don't even touch the keyboard, the program thinks I continuously press UP ARROW and/or RIGHT ARROW.

My system:
- Mandriva Linux 2009.1 64bits
- tried wine 1.1.20 -> 1.1.23
- nvidia gforce 8600gt
- KDE4.2.2 ( with or without 3D, it is the same)
I have the same problem. I have an Ubuntu 9.04 64 bit
- tried wine 1.1.20 -> 1.1.23
- nvidia gforce 9600gt
- GNOME desktop

I tried Need Foor Speed ProStreet Demo. The LEFT key is stuck, so I can not turn right with my car :shock:
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Key always pressed (sticky or blocked)

Post by vitamin »

Do any of you have joystick plugged in?
nemethpeter2
Newbie
Newbie
Posts: 3
Joined: Mon Jun 15, 2009 6:41 pm

Re: Key always pressed (sticky or blocked)

Post by nemethpeter2 »

vitamin wrote:Do any of you have joystick plugged in?
No, I have no joystick at all. But, thanks for the tip. Wine somehow recognized my keyboard as a joystick too. So the program offered me to calibrate my "Microsoft Media Keyboard 3000" "joystick".

I moved away the js0 file from /dev/input and it is solved my problem.
nemethpeter2
Newbie
Newbie
Posts: 3
Joined: Mon Jun 15, 2009 6:41 pm

Re: Key always pressed (sticky or blocked)

Post by nemethpeter2 »

I looked around in my /dev/input/by-id directory and I found some intresting file:

lrwxrwxrwx 1 root root 9 2009-06-16 19:15 usb-Microsoft_Microsoft__Digital_Media_Keyboard_3000-event-joystick -> ../event5
lrwxrwxrwx 1 root root 9 2009-06-16 19:15 usb-Microsoft_Microsoft__Digital_Media_Keyboard_3000-event-kbd -> ../event4
lrwxrwxrwx 1 root root 6 2009-06-16 19:15 usb-Microsoft_Microsoft__Digital_Media_Keyboard_3000-joystick -> ../js0

I think this is the problem. My keyboard is not a joystick :lol:
patkoscsaba
Level 1
Level 1
Posts: 5
Joined: Sun Jun 14, 2009 5:06 pm

Post by patkoscsaba »

I have to try this! I also have no joystick but I have a M$ keyboard...
patkoscsaba
Level 1
Level 1
Posts: 5
Joined: Sun Jun 14, 2009 5:06 pm

Post by patkoscsaba »

Incredible! It solved my problem ... I removed /dev/input/-js0 and all is working perfect ... I hope the problem will not appear again.

It seems like M$ is sabotaging Linux with their keyboards ... keyboards, the only thing M$ can do really well...
Locked