stuck arrow key on zdoom 2.3.0 on linux.

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: stuck arrow key on zdoom 2.3.0 on linux.

Re: stuck arrow key on zdoom 2.3.0 on linux.

by Jim » Wed Apr 08, 2009 11:02 pm

Are those of you with this issue using Xorg 1.5? (For Ubuntu that's version 8.10 or newer)

If you are you might want to try adding the following to your xorg.conf:

Code: Select all

Section "Module"
       ...
       SubSection  "extmod"
         Option    "omit xfree86-dga"
       EndSubSection
       ...
EndSection
Courtesy of Gentoo's Xorg 1.5 upgrade documentation.

Re: stuck arrow key on zdoom 2.3.0 on linux.

by Zoe Gibbleman » Sun Mar 15, 2009 1:50 pm

skadoomer wrote: There are a few other bug topics about controls acting weird in linux.
Sadly I'm getting them too. They can happen in middle of game. When I call the menu to save the game, it just goes crazy, and keys lose their attached meaning. Interestingly when you exit menu and go back to game it works fine.

Hopefully, I'll look at it more closely at need kaiser/cif wad which is zdoom based.

Re: stuck arrow key on zdoom 2.3.0 on linux.

by randi » Wed Mar 11, 2009 11:17 pm

Heh. Now you've created a real user with that name. :)

Re: stuck arrow key on zdoom 2.3.0 on linux.

by Zoe Gibbleman » Wed Mar 11, 2009 11:45 am

randy wrote:Added as a cvar, sdl_nokeyrepeat. Note that I don't need it, since the keys repeat sanely for me.
Randy,

I have tested your fix and it does works for me.

Thanks a lot!

Re: stuck arrow key on zdoom 2.3.0 on linux.

by randi » Tue Mar 10, 2009 6:19 pm

Added as a cvar, sdl_nokeyrepeat. Note that I don't need it, since the keys repeat sanely for me.

Re: stuck arrow key on zdoom 2.3.0 on linux.

by Rachael » Tue Mar 10, 2009 1:56 pm

The fix you posted might be the only one that works. However, as I see it, it's very likely that a cvar will be implemented to control such behavior. And it's definitely not a problem in Windows, so any Windows version might not see such a cvar at all, or if it does it might have no effect. I really don't see that making it into the main code, however, without such an option... but I've been wrong about such things before. ;)

Re: stuck arrow key on zdoom 2.3.0 on linux.

by Guest » Sat Mar 07, 2009 3:35 pm

Code: Select all

diff src/sdl/i_input.cpp 
Index: src/sdl/i_input.cpp
===================================================================
--- src/sdl/i_input.cpp	(revision 1463)
+++ src/sdl/i_input.cpp	(working copy)
@@ -217,7 +217,7 @@
 		{
 			FlushDIKState ();
 			memset (DownState, 0, sizeof(DownState));
-			SDL_EnableKeyRepeat (SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
+			SDL_EnableKeyRepeat (0, SDL_DEFAULT_REPEAT_INTERVAL);
 			SDL_EnableUNICODE (1);
 		}
 		else
okay. the above code fixes the problem for me. I do not claim that's the right fix because it is NOT. However, I post it here in hope that perhaps it will inspire someone on the list as to what the real problem might be and point me in the right direction.

Re: stuck arrow key on zdoom 2.3.0 on linux.

by skadoomer » Sat Mar 07, 2009 3:24 pm

As I understand there are on the list other Linux users that run the 2.3.0 without any problems????
There are a few other bug topics about controls acting weird in linux. It seems to be a sparse problem that differs based on the users setup, and given the lack of a solid linux developer for zdoom (though there are a few well respected contributors), different things work for different people. What you have is something that works for most of the developers, not for the general population. Since you've tracked the bug this far (and given that you have enough skill to have gotten as far as you have), I recommend getting some input from either of the zdoom developers on this section of code (Graf or Randy) and writing a fix for yourself (if they can't re-produce your problem on their system). If its solid fix, it will be included into the source.
Pinky's ass wrote:Maybe avoiding triple posting? :|

Guests can't edit topics/posts, so there really is no other option.

Re: stuck arrow key on zdoom 2.3.0 on linux.

by Guest » Sat Mar 07, 2009 12:37 pm

For what's it worth.

I have determined that theMessagePump() gets called repeatedly. Thus I think that zdoom/trunk/src/sdl/i_input.cpp:SDL_PollEvent (&sev) constantly generates new data as if the key was pressed.

I have SDL-1.2.13-7.fc10.i386 and recommended SDL for zdoom is SDL 1.2.13 so it is not the problem.

As I understand there are on the list other Linux users that run the 2.3.0 without any problems????

Re: stuck arrow key on zdoom 2.3.0 on linux.

by Guest » Sat Mar 07, 2009 10:25 am

Zoe Gibbleman wrote:for what it is worth I have noticed that it only happens after I load doom2.wad (ie I start or restore saved game). no such problem occurs right after start up.
I think I was wrong above. It can start repeating w/out loading game first.

I have added a Print() inside of zdoom-2.3.0/src/m_menu.cpp:M_Responder() and it looks like the M_Responder() gets called repeatedly when some key gets stuck.

Thus it seems to me that in some circumstances the keys does not get eaten like they should be.

I still can't find the place where they are eaten like the comments claim though ought to be eaten.

Re: stuck arrow key on zdoom 2.3.0 on linux.

by Guest » Sat Mar 07, 2009 12:14 am

for what it is worth I have noticed that it only happens after I load doom2.wad (ie I start or restore saved game). no such problem occurs right after start up.

Re: stuck arrow key on zdoom 2.3.0 on linux.

by Guest » Fri Mar 06, 2009 3:52 pm

nope, it is still in r1463 :(

Code: Select all

/trunk/release/zdoom -nosound -iwad doom2 -file kaiser_6.wad 
ZDoom v2.3.0 - SVN revision 1463 - SDL version
Compiled on Mar  6 2009

M_LoadDefaults: Load system defaults.
W_Init: Init WADfiles.
 adding /home/guest/games/doom/zdoom/trunk/release/zdoom.pk3
 adding /usr/share/doom/doom2.wad (2919 lumps)
 adding kaiser_6.wad (144 lumps)
I_Init: Setting up machine state.
CPU Vendor ID: AuthenticAMD
  Name: AMD Athlon(tm) XP 1800+
  Family 6 (7), Model 6, Stepping 2
  Features: MMX SSE
V_Init: allocate screen.
S_Init: Setting up sound.
ST_Init: Init startup screen.
P_Init: Checking cmd-line parameters...
G_ParseMapInfo: Load map definitions.
S_InitData: Load sound definitions.
Texman.Init: Init texture manager.
ParseTeamInfo: Load team definitions.
LoadActors: Load actor definitions.
R_Init: Init Doom refresh subsystem.
DecalLibrary: Load decals.
Patch installed
M_Init: Init miscellaneous info.
P_Init: Init Playloop state.
ParseSBarInfo: Loading default status bar definition.
ParseSBarInfo: Loading custom status bar definition.
D_CheckNetGame: Checking network game status.
player 1 of 1 (1 nodes)
Resolution: 640 x 480
Playing demo DEMO1
Cannot play non-ZDoom demos.
(They would go out of sync badly.)
Playing demo DEMO2
Cannot play non-ZDoom demos.
(They would go out of sync badly.)
Playing demo DEMO3
Cannot play non-ZDoom demos.
(They would go out of sync badly.)

+MAP01 - The Community is Falling!!! OH NO!!!

Re: stuck arrow key on zdoom 2.3.0 on linux.

by Macil » Fri Mar 06, 2009 3:29 pm

[wiki]Compile ZDoom on Linux[/wiki] points out how to get zdoom from the svn (and compile it, but it would seem that you've got that down). The current revision is 1463 (which is a bit more up-to-date than 2.3.0), so I'd try that first.

Re: stuck arrow key on zdoom 2.3.0 on linux.

by Guest » Fri Mar 06, 2009 3:19 pm

pinky's ass,

those are just news flash as I find on new stuff.
for me this is essentially an show-stopper bug as I can't even save game easily. :cry:

Agent me,
can you recommend some svn version? This is the first time ever that I use zdoom, so I am newbie here.

For what it is worth, I am using kaiser_6.wad with doom2.wad
kaiser 6 wad -> http://www.doomworld.com/idgames/?id=12369

Like I said it is Linux Fedora 10 system with fmodapi42202linux.tar.gz, everything else is from default rpm repository.

Re: stuck arrow key on zdoom 2.3.0 on linux.

by Macil » Fri Mar 06, 2009 3:08 pm

He doesn't seem to have an account, so editing isn't really an option for him now :P

Do older SVN versions work fine? (Note that a lot of them don't compile on linux, so you'll have to jump around a bit.)

Top