Jump to content


Photo

TDM doesn't get keyboard focus when launched!


  • Please log in to reply
15 replies to this topic

#1 Araneidae

Araneidae

    Member

  • Member
  • PipPip
  • 193 posts

Posted 23 January 2018 - 01:23 PM

I have a very strange issue with TDM on Fedora 27.  I have freshly installed 2.05 (and for comparison the 2.06 beta, only just heard about it) on a freshly installed Fedora 27 system ... and when I launch TDM from the command line the command line console continues to get my key presses!

 

Eventually I have found that if I have a second application running, then I can apparently Alt-Tab to it (ok, not quite stock, I've enabled Alternatetab in gnome-tweak-tool) and I get keyboard events and everything works properly ... in 2.06 beta, even sound works out of the box!

 

Is this a known problem with a more sensible known fix or workaround?

 

 

A couple of explanations for clarity.

  1. If I don't launch a game, but just start tdm, type keys, exit (using the menu), then all the keys I pressed are visible on my terminal application.
  2. When I have another application available it seems that after I press Alt-Tab the keyboard events go to TDM as they ought to.

This looks like a pretty obscure interaction with the Gnome desktop!



#2 AluminumHaste

AluminumHaste

    Darkmod Contributor

  • Development Role
  • PipPipPipPipPip
  • 6212 posts

Posted 23 January 2018 - 08:56 PM

I have a very strange issue with TDM on Fedora 27.

 

Lol, gaming on Linux, good luck!

Hopefully one of the resident *nix users have something useful to add.


I always assumed I'd taste like boot leather.

 

#3 Araneidae

Araneidae

    Member

  • Member
  • PipPip
  • 193 posts

Posted 24 January 2018 - 07:12 AM

Lol, gaming on Linux, good luck!

 

Well, I've managed to game on Linux for pretty well the whole of this century ... but it certainly is a frustrating experience.  I mean, just talking about TDM, I'm dismayed that it's taken so long to get sound working out of the box ... or on the other hand, I'm delighted that sound suddenly now just works on 2.06 beta!

 

My focus problem certainly is annoying.  I've had problems somewhat like this in the past with Wine (and worse), but I seem to have a weird workaround for the moment.



#4 AluminumHaste

AluminumHaste

    Darkmod Contributor

  • Development Role
  • PipPipPipPipPip
  • 6212 posts

Posted 24 January 2018 - 08:03 AM

I try switching to linux every couple of years but always end up give up. The crashes, the incompatibilities, the proprietary drivers..ugh.


  • Bikerdude, Judith and chakkman like this

I always assumed I'd taste like boot leather.

 

#5 Bikerdude

Bikerdude

    Mod hero

  • Member
  • PipPipPipPipPip
  • 20223 posts

Posted 24 January 2018 - 08:11 AM

I try switching to linux every couple of years but always end up give up. The crashes, the incompatibilities, the proprietary drivers..ugh.

same here.



#6 Araneidae

Araneidae

    Member

  • Member
  • PipPip
  • 193 posts

Posted 25 January 2018 - 03:28 AM

I'm hoping that at least somebody on the TDM development team uses Linux.



#7 Araneidae

Araneidae

    Member

  • Member
  • PipPip
  • 193 posts

Posted 02 February 2018 - 02:20 PM

How do I add tags?  This question should at least be tagged with "linux", if nothing else.



#8 Araneidae

Araneidae

    Member

  • Member
  • PipPip
  • 193 posts

Posted 16 September 2018 - 12:32 PM

I'm going to try bumping this question again; don't think "lol gaming on linux" is terribly useful, particularly as otherwise TDM seems to run very nicely.

 

I'm now running a fresh install of 64-bit 2.06 on Fedora 28.  Yesterday I was able to use alt-Tab to somehow move the focus over to the game, but today all keys go to the original launch console.  Any workaround to be able to actually play the game would be nice.

 

I'm pleasantly surprised to see that sound now seems to work perfectly out of the box, and graphics settings are easy and well behaved.  I think the only strange problem is the keyboard focus.



#9 duzenko

duzenko

    Advanced Member

  • Active Developer
  • PipPipPip
  • 1700 posts

Posted 16 September 2018 - 12:43 PM

We'd need a linux programmer who uses Fedora to fix this.

It's a pity that they largely ignore us.



#10 freyk

freyk

    Advanced Member

  • Member
  • PipPipPip
  • 700 posts

Posted 16 September 2018 - 11:00 PM

But there is always google,..

If i use that, but search for alt-tab problems or focus for doom 3 on linux, in stead of tdm, i got several sollutions.

Edited by freyk, 16 September 2018 - 11:01 PM.


#11 Araneidae

Araneidae

    Member

  • Member
  • PipPip
  • 193 posts

Posted 18 September 2018 - 01:39 PM

If i use that, but search for alt-tab problems or focus for doom 3 on linux, in stead of tdm, i got several sollutions.

 

Good for you.  Do you feel like posting them?

 

Have to say I'm not finding anything useful.  Maybe you're not actually reading the links you're finding, maybe your Google is primed differently, maybe you're using a different search engine, really I've got nothing to go on.

 

Unfortunately what I'm finding is pretty worthless:

 

  https://hardforum.co...-doom-3.841377/

This is someone back in 2004 with the same problem but no solution.

 

https://www.reddit.c...d_input_except/

This guy's problem went away on a restart.

 

https://steamcommuni...86532030362140/

Unhelpful

 

So freyk, if you've actually discovered something useful, perhaps you could be kind enough enlighten us?

 

 

Two things are different about the machine that's not working from other systems where I've had no problems: 1/ gnome 3; and 2/ Intel integrated graphics (which actually works very nicely).  Hard to see how this can be related though.



#12 freyk

freyk

    Advanced Member

  • Member
  • PipPipPip
  • 700 posts

Posted 19 September 2018 - 02:34 PM

Sure. https://www.google.c... linux keyboard



#13 Araneidae

Araneidae

    Member

  • Member
  • PipPip
  • 193 posts

Posted 20 September 2018 - 06:25 AM

freyk, are you being deliberately obtuse and unhelpful?



#14 chakkman

chakkman

    Advanced Member

  • Member
  • PipPipPip
  • 1027 posts

Posted 20 September 2018 - 10:51 AM

Did you try TDM on Ubuntu? Uses Gnome 3 too, so, maybe you can pinpoint a bit more whether it really is an issue related to Gnome 3.



#15 Araneidae

Araneidae

    Member

  • Member
  • PipPip
  • 193 posts

Posted 20 September 2018 - 11:27 AM

I guess I could use live boot to test that out ... hmm.  Guess I'll try and take a look.

 

Also I should try a different window manager, daft not to have tried that before now.



#16 stgatilov

stgatilov

    Lead Programmer

  • Active Developer
  • PipPipPip
  • 1049 posts

Posted 07 October 2018 - 08:19 AM

All current TDM developers use Windows as primary system.

Nevertheless, I regularly check TDM in a Linux VM. But using a VM adds one more level of weirdness to how input works, so it won't help.

Cabalistic also used native Linux for testing TDM. Maybe he can try it out, but it is unlikely he has Fedora.

You see: there are much more Linux distros than TDM developers.

 

Probably adding some call like XSetInputFocus in proper place can fix the problem, but someone who has this problem needs to test it.


  • duzenko likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users