Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Doom3: arrow keys don't get correct keycode
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
corrosif
Apprentice
Apprentice


Joined: 21 Dec 2003
Posts: 199
Location: France

PostPosted: Thu Apr 09, 2009 10:40 pm    Post subject: Doom3: arrow keys don't get correct keycode Reply with quote

Hello,

Some days ago, arrow keys didn't work anymore in Doom3 on my computer.
When configuring the controls, they all get the keycode 0x00.
Other keyboard keys (such as A, Q) are working fine however.

Other games such as Quake4 (which is based on the same kind of engine) or Return to Castle Wolfenstein don't suffer this problem.

Is this related to a recent xorg update?
Does anyone else have the same problem?

For info, I am using portage ebuild games-fps/doom3-1.3.1304.
_________________
S'il n'y a pas de solution, alors il n'y a pas de problème (logique Shadok).
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1709

PostPosted: Thu Apr 09, 2009 10:57 pm    Post subject: Reply with quote

I would venture a guess that your doom 3 config file got messed up. I'm afraid I'm not in front of my home computer right now so I don't know which file that is exactly.
Back to top
View user's profile Send private message
corrosif
Apprentice
Apprentice


Joined: 21 Dec 2003
Posts: 199
Location: France

PostPosted: Fri Apr 10, 2009 5:46 pm    Post subject: Reply with quote

Well, even after wipping my entire ~/.doom3/ directory and re-emerging the game, I still have the same problem...
I think the cause shall be elsewhere.
_________________
S'il n'y a pas de solution, alors il n'y a pas de problème (logique Shadok).
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Apr 10, 2009 10:04 pm    Post subject: Re: Doom3: arrow keys don't get correct keycode Reply with quote

corrosif wrote:
Is this related to a recent xorg update?

Sounds likely. But, my psychic helmet is malfunctioning today ;)

What have you updated since doom3 was working OK?
Back to top
View user's profile Send private message
corrosif
Apprentice
Apprentice


Joined: 21 Dec 2003
Posts: 199
Location: France

PostPosted: Fri Apr 10, 2009 10:33 pm    Post subject: Reply with quote

On Apr 08, 2009, I had a bunch of updates related to xorg, from which:

Code:
x11-base/xorg-server-1.5.3-r5
x11-drivers/xf86-input-keyboard-1.3.2
x11-drivers/xf86-input-evdev-2.1.3

_________________
S'il n'y a pas de solution, alors il n'y a pas de problème (logique Shadok).
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Apr 10, 2009 10:43 pm    Post subject: Reply with quote

Post the usual files:

/etc/X11/xorg.conf
/var/log/Xorg.0.log

http://pastebin.ca/ is convenient for this.
Back to top
View user's profile Send private message
corrosif
Apprentice
Apprentice


Joined: 21 Dec 2003
Posts: 199
Location: France

PostPosted: Fri Apr 10, 2009 11:19 pm    Post subject: Reply with quote

My problem also happens in Warsow... I found a topic where it seems related to hardcoded keybindings:
http://www.warsow.net/forum/viewtopic.php?id=18443

They pretend it does not like the change from kbd to evdev...

Here is an extract of my xorg.conf showing my keyboard configuration:

Code:
Section "InputDevice"

    Identifier   "Keyboard1"
    Driver   "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbModel"   "pc105"
    Option "XkbLayout"   "fr"
    Option "XkbOptions" "grp:alt_shift_toggle"

EndSection

Section "ServerLayout"

  (...)
  InputDevice "Keyboard1" "CoreKeyboard"

EndSection


In /var/log/Xorg.0.log, I found the following messages:

Code:
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "fr"


So... I seem in fact to be using evdev instead of kbd.
It seems strange, as the driver I specified in my xorg.conf is xkb...

By the way, downgrading from xf86-input-evdev-2.1.3 back to xf86-input-evdev-1.1.5-r1 does not seem to solve anything.
_________________
S'il n'y a pas de solution, alors il n'y a pas de problème (logique Shadok).


Last edited by corrosif on Fri Apr 10, 2009 11:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Apr 11, 2009 3:51 am    Post subject: Reply with quote

You probably want:

Code:
Section "ServerFlags"
    # http://wiki.archlinux.org/index.php/Xorg_input_hotplugging
    Option "AutoAddDevices" "off"
EndSection
Back to top
View user's profile Send private message
corrosif
Apprentice
Apprentice


Joined: 21 Dec 2003
Posts: 199
Location: France

PostPosted: Sat Apr 11, 2009 8:50 am    Post subject: Reply with quote

Is there no other way for forcing the use of the kbd driver for the keyboard?
I mean, device recognition is really useful for other peripherals like my mouse or touchpad (they don't seam to work with your option, although they are configured in my xorg.conf).

EDIT:
After emerging xf86-input-evdev, I get the following warning:

Code:
 * If your XKB (keyboard settings) stopped working,
 * you may uninstall this driver or move your XKB configuration.
 * Download an example from http://dev.gentoo.org/~compnerd/temp/hal-config-examples/
 * (these will be installed with sys-apps/hal soon),
 * and drop it into /etc/hal/fdi/policy/


Unfortunately, this web link is broken...
I managed to find a related resource on a japanese web site, which leads to think (but I am not entirely sure) that this link provides a file /etc/hal/fdi/policy/use-kbd-driver.fdi whose content is:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keys">
        <merge key="input.x11_driver" type="string">evdev</merge>
    </match>
  </device>
</deviceinfo>


It does not seem correct as the specified driver is evdev...
So I tried to get inspired by it, and integrate the interesting line in my /etc/hal/fdi/policy/10-x11-input.fdi (this time specifying the use of kbd driver):

Code:
<?xml version="1.0" encoding="utf-8"?>
<deviceinfo version="0.2">     
   <match key="info.capabilities" contains="input.keys">
      <!-- Option "XkbModel" "pc105" -->
      <merge key="input.x11_driver" type="string">kbd</merge>
      <merge key="input.xkb.model" type="string">pc105</merge>
      <merge key="input.xkb.layout" type="string">fr</merge>
      <merge key="input.xkb.rules" type="string">xorg</merge>
      <merge key="input.xkb.options" type="strlist">grp:alt_shift_toggle</merge>
   </match>
</deviceinfo>


When using this version of my file, X gets random key inputs, even if I am not typing (and the mouse moves by itself)!

Is there some mirror of http://dev.gentoo.org/~compnerd/temp/hal-config-examples/, so that I can maybe get a proper content for this use-kbd-driver.fdi file?
_________________
S'il n'y a pas de solution, alors il n'y a pas de problème (logique Shadok).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players 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