| View previous topic :: View next topic |
| Author |
Message |
pholthau Guru


Joined: 27 Nov 2005 Posts: 358 Location: Bielefeld, Germany
|
Posted: Fri May 09, 2008 6:13 pm Post subject: X Keyboard weirdness [solved... finally] |
|
|
Hi!
My Keyboard is acting strange.
Xorg.0.log reports:
| Code: |
(**) AT Translated Set 2 keyboard: always reports core events
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type:
KEYBOARD)
|
BUT I have the following in xorg.conf (note that I try to use driver kbd):
| Code: |
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "XkbModel" "inspiron"
Option "AutoRepeat" "500 30"
Option "XkbLayout" "us"
EndSection
|
And I have an inspiron 8600 laptop. The problem is, that e.g. the arrow keys are interpreted as ALT_R, Print, Super_R and NoSymbol (reported by xev), making many of the keys unusable.
installed versions/use flags:
x11-base/xorg-server-1.4.0.90-r3
x11-drivers/xf86-input-keyboard-1.3.0
INPUT_DEVICES="evdev keyboard mouse synaptics"
please help, this is becoming really annoying... _________________ The message is Feierei, alder! The message is Gude Laune, alder! [Sven]
Last edited by pholthau on Thu Sep 18, 2008 9:01 am; edited 1 time in total |
|
| Back to top |
|
 |
jdmulloy Tux's lil' helper


Joined: 24 Dec 2004 Posts: 139 Location: Massachusetts, USA
|
Posted: Fri May 09, 2008 9:10 pm Post subject: |
|
|
Can you post the rest of those files or upload them somewhere so we can download them? Not sure why this is happening. Perhaps X isn't using your config file and is just generating one on the fly. _________________ Joe Mulloy | http://twitter.com/jdmulloy | Ron Paul in 2012! | 5-1-07 | Unban Playfool | Fire your "Too big to fail" bank http://moveyourmoney.info |
|
| Back to top |
|
 |
pholthau Guru


Joined: 27 Nov 2005 Posts: 358 Location: Bielefeld, Germany
|
Posted: Sat May 10, 2008 10:59 am Post subject: |
|
|
Uploaded the files here:
http://big.homeftp.net/~pholthau/
If I comment the Keyboard section in xorg.conf X refuses to start because the keyboard device isn't found (so i think it tries to read the relevant section) _________________ The message is Feierei, alder! The message is Gude Laune, alder! [Sven] |
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 3928
|
Posted: Sat May 10, 2008 4:35 pm Post subject: |
|
|
Not really, you are using hal/evdev.
First of all try this:
add following in Section "ServerLayout":
Option "AutoAddDevices"
Option "AutoEnableDevices"
Option "AllowEmptyInput"
then comment all your input devices (your xorg.conf suggests that keyboard and mouse should work, we'll
see later about synaptics)
next, do
cp /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi /usr/share/hal/fdi/policy/20thirdparty/10-my-keymap.fdi
in the new file change
<match key="info.capabilities" contains="input.keymap">
to
<match key="info.capabilities" contains="input.keyboard">
then restart hal (first exit X, cause it crashes when you restart hal)
then see if everything works.
If synaptics doesn't, uncomment its section only.
If keyboard doesn't, run
hal-find-by-capability --capability input.keys
followed by
hal-device <on each listed name>
post results. |
|
| Back to top |
|
 |
eigenman n00b

Joined: 13 Jul 2005 Posts: 58 Location: California
|
Posted: Sun May 11, 2008 6:28 pm Post subject: |
|
|
Are you using gnome? I have the exact same trouble, but it only shows up in gnome. I noticed it when I tried switching to gnome2.22 from KDE, and now I can't use the keys in gnome. When kdm starts, everything is fine, but when I log into gnome, the keys (well, mostly arrow keys) start acting weird. If I log into kde, and then switch to gnome, the keys work again.
Cheers,
eigenman |
|
| Back to top |
|
 |
pholthau Guru


Joined: 27 Nov 2005 Posts: 358 Location: Bielefeld, Germany
|
Posted: Mon May 12, 2008 1:31 pm Post subject: |
|
|
Thanks for your suggestions!
The keyboard is still misbehaving...
I will post the new Xorg.0.log this evening (the server is down at the moment)
| Code: |
illidan ~ # hal-find-by-capability --capability input.keys
/org/freedesktop/Hal/devices/platform_i8042_i8042_Kbd_Port_logicaldev_input
illidan ~ # hal-device `hal-find-by-capability --capability input.keys`
udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_Kbd_Port_logicaldev_input'
linux.device_file = '/dev/input/event0' (string)
input.xkb.model = 'evdev' (string)
input.product = 'AT Translated Set 2 keyboard' (string)
info.capabilities = { 'input', 'input.keyboard', 'input.keypad', 'input.keys', 'button' } (string list)
info.udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_Kbd_Port_logicaldev_input' (string)
linux.subsystem = 'input' (string)
input.originating_device = '/org/freedesktop/Hal/devices/platform_i8042_i8042_Kbd_Port' (string)
info.product = 'AT Translated Set 2 keyboard' (string)
linux.hotplug_type = 2 (0x2) (int)
input.xkb.rules = 'base' (string)
linux.sysfs_path = '/sys/class/input/input0/event0' (string)
info.addons.singleton = { 'hald-addon-input' } (string list)
input.x11_driver = 'evdev' (string)
info.category = 'input' (string)
input.xkb.layout = 'us' (string)
input.physical_device = '/org/freedesktop/Hal/devices/platform_i8042_i8042_Kbd_Port' (string)
input.device = '/dev/input/event0' (string)
info.callouts.add = { 'hal-setup-keymap' } (string list)
info.parent = '/org/freedesktop/Hal/devices/platform_i8042_i8042_Kbd_Port' (string)
input.xkb.variant = '' (string)
|
And I am using KDE, not GNOME. Maybe your problem is another one.... _________________ The message is Feierei, alder! The message is Gude Laune, alder! [Sven] |
|
| Back to top |
|
 |
La_Mirah n00b

Joined: 12 May 2008 Posts: 1
|
Posted: Mon May 12, 2008 8:26 pm Post subject: |
|
|
I've had that problem recenly; the evdev keyboard driver is still subpar. I have a brazilian ABNT2 USB keyboard, and my configurations also end up ignored by X; I have spent a couple of days figuring this out while the big libs recompile, and here is what I found out.
The proper keyboard configuration, '"XkbModel"="ebdev"', gets rejected if configured on the xorg.conf file. The keyboard mostly works after boot with a 'setxkbmap -model evdev -layout br -variant abnt2', which I put on /etc/xprofile as a temporary workaround; I'm guessing you use 'de' layout, so you probably need a 'setxkbmap -model ebdev -layout de'.
In ABNT2's case, there is also a modification needed in /etc/X11/xkb/keycodes/evdev in order to map keypress <AB11> to scancode 97, and comment out other sections that map either the keysim or the keycode to something else (under japanese keyboard key section, in my case). You'll need to manually test the keys on your keyboard, and fix misbehaving keys through judicious use of xev. |
|
| Back to top |
|
 |
My_World Guru


Joined: 01 Sep 2003 Posts: 339 Location: Kalahari Desert
|
Posted: Mon May 12, 2008 9:44 pm Post subject: |
|
|
Logout
ctrl+alt+F1 -> login as root
emerge hald
/etc/init.d/hald restart
ctrl+alt+F7 -> ctrl+alt+backspace (restart X)
Login and problem solved! _________________ "Ubuntu" - an African word meaning "Gentoo is too hard for me". |
|
| Back to top |
|
 |
pholthau Guru


Joined: 27 Nov 2005 Posts: 358 Location: Bielefeld, Germany
|
Posted: Thu Sep 18, 2008 9:00 am Post subject: |
|
|
Now that could be finally solved. Note to self: Remember to set KDE/Gnome whatever keyboard settings to "Evdev Managed Keyboard". No further steps needed. _________________ The message is Feierei, alder! The message is Gude Laune, alder! [Sven] |
|
| Back to top |
|
 |
|