Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Sticky keys on FPS games
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Mon Feb 27, 2006 2:35 pm    Post subject: [solved] Sticky keys on FPS games Reply with quote

Hello, this is a strange problem that's been bugging me since I first installed Gentoo on my iBook G4, a year ago. When I'm playing an FPS game like Cube, Sauerbraten, Quake 1, Quake 2 or Quake 3, the keyboard seems to get stuck for awhile. For example, if I keep the "forward" key pressed for 2 or 3 seconds and then release it, the player will continue to walk forward for another few seconds, which makes the games unplayable. While on "automatic move", it processes mouse triggered action normally, but any keyboard triggered action will be delayed until the "automatic move" stops. Now comes the interestint bit: sometimes, after I put my iBook to sleep, the games start working correctly and will continue to work correctly until the next reboot.

Does anyone else have this problem? Any ideas on how to solve it?


Last edited by Sodki on Tue Dec 19, 2006 7:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Wed Mar 01, 2006 3:05 pm    Post subject: Reply with quote

So... I assume no-one except me experiences this? One strange thing is that I have the feeling the games started to work allright after the "double sleep" problem that pbbuttonsd had. I still have to confirm this.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 01, 2006 3:37 pm    Post subject: Reply with quote

The "double sleep" issue was fixed in pbbuttonsd 0.7.3.

Are you sure that your key repeat rate is set to something sane? Maybe try playing with kbdrate.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Wed Mar 01, 2006 4:53 pm    Post subject: Reply with quote

What I'm saying is that the "double sleep" bug usually fixed my problem. I'll have to downgrade pbbuttonsd to see if that's true. All the other games/apps work well, so I don't think it's related to kbdrate.
Back to top
View user's profile Send private message
alex6z
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2005
Posts: 119

PostPosted: Sun Mar 05, 2006 12:10 am    Post subject: Reply with quote

I think this has to do with how the kernel accesses the keyboard. AFAK the kernel thread (I think kthread) gets stalled in a kernel module or kernel function and stalls the other part of the kernel that is supposed to handle the keyboard, causing the key to appear pressed (or stuck unpressed). I have a linksys wireless USB adaptor with the at76c503c driver which seems to block the kernel thread. The system continues to run normally, and preempt as it should. The mouse doesn't freeze or anything, but the keyboard will lag sometimes when I use this driver and try to connect to a wireless node. Once it OOps'kthread on an x86 machine causing it to be killed. The the console wouldn't respond, but three-finger-salute cause init to reboot, whiched worked. X11 alse kept working. I think kthread takes care of the consoles, the keyboard on mac and maybe some other important things. So, check your kernel drivers for anything that could block in the kernel thread (kthread). Good luck :)
Back to top
View user's profile Send private message
chrisstankevitz
Guru
Guru


Joined: 14 Dec 2003
Posts: 472
Location: Santa Barbara, CA, USA

PostPosted: Sat May 13, 2006 2:54 am    Post subject: Re: Sticky keys on FPS games Reply with quote

Sodki wrote:
Quake 3, the keyboard seems to get stuck for awhile. For example, if I keep the "forward" key pressed for 2 or 3 seconds and then release it, the player will continue to walk forward


Me too on x86.
Back to top
View user's profile Send private message
alex6z
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2005
Posts: 119

PostPosted: Thu May 18, 2006 12:49 am    Post subject: Reply with quote

Do you have a USB keyboard?
Back to top
View user's profile Send private message
chrisstankevitz
Guru
Guru


Joined: 14 Dec 2003
Posts: 472
Location: Santa Barbara, CA, USA

PostPosted: Thu May 18, 2006 6:17 pm    Post subject: Reply with quote

alex6z wrote:
Do you have a USB keyboard?


Hi Alex,

I have a PS/2 keyboard. I also just realized this is a PPC thread, but I have an x86 dell.

Chris
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Tue Dec 19, 2006 7:26 pm    Post subject: Reply with quote

I don't know what happened, but this problem auto-solved itself without warning. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum