FS#12357 - Evdev causes keyboart to behave strangely

Attached to Project: Arch Linux
Opened by héctor (hacosta) - Saturday, 06 December 2008, 01:05 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 17 December 2008, 21:25 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity High
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Evdev from testing works like this for me.. if i want to type `f'
onkeypress f an f is displayed on screen
onkeyup f an d is displayed on screen


This task depends upon

Closed by  Jan de Groot (JGC)
Wednesday, 17 December 2008, 21:25 GMT
Reason for closing:  Works for me
Comment by Filip Wojciechowski (fwojciec) - Saturday, 06 December 2008, 01:59 GMT
Do you have an active (i.e. uncommented) xorg.conf entry for the keyboard and hotplugging enabled as well? Because it is possible that the driver is loaded twice and this causes problems.

See this discussion:debian-bugs-dist@lists.debian.org/msg586329.html"> http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg586329.html
And this commit which fixes this issue: http://cgit.freedesktop.org/xorg/driver/xf86-input-evdev/commit/?id=63af314368cec47b6b8266db331f2c820e7a071f
Comment by Jan de Groot (JGC) - Saturday, 06 December 2008, 09:37 GMT
That commit is already in the 2.1.0 final version if I can trust git for this.
Comment by Jan de Groot (JGC) - Saturday, 06 December 2008, 10:04 GMT
Can you attach xorg.conf and Xorg.0.log?
Comment by héctor (hacosta) - Saturday, 06 December 2008, 18:36 GMT
I commented out my keyboard entry as Fillip suggested, the problem still shows
Comment by Shem Valentine (xvalentinex) - Monday, 08 December 2008, 17:23 GMT
Your problem is this section.

Section "ServerFlags"
Option "AllowEmptyInput" "false"
EndSection

You need to comment that out.
Comment by héctor (hacosta) - Friday, 12 December 2008, 19:11 GMT
Err oh sorry... Shem's advice fixes it for me.
Comment by Carlos Eduardo (cemsbr) - Saturday, 13 December 2008, 14:31 GMT
I'm having problems with archlinux, but ubuntu is working fine. This is the output of "setxkbmap -print" in archlinux:

xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+br(abnt2)+inet(evdev)+br(thinkpad):2+level3(ralt_switch_for_alts_toggle):1+level3(ralt_switch_for_alts_toggle):2+group(alts_toggle)" };
xkb_geometry { include "pc(pc104)" };
};

And this is the output in Ubuntu:

xkb_keymap {
xkb_keycodes { include "evdev(abnt2)+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+br(thinkpad)+inet(evdev)" };
xkb_geometry { include "pc(abnt2)" };
};

Ubuntu uses the following config in /etc/default/console-setup to set up the correct keyboard in xorg.conf:
# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.
XKBMODEL="abnt2"
XKBLAYOUT="br"
XKBVARIANT="thinkpad"
XKBOPTIONS=""

How can I use my keyboard in archlinux?

This is /var/log/Xorg.0.log in Ubuntu (where it works):

(II) config/hal: Adding input device AT Translated Set 2 keyboard
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event1"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type:$
(**) Option "xkb_rules" "evdev"
(**) AT Translated Set 2 keyboard: xkb_rules: "evdev"
(**) Option "xkb_model" "abnt2"
(**) AT Translated Set 2 keyboard: xkb_model: "abnt2"
(**) Option "xkb_layout" "br"
(**) AT Translated Set 2 keyboard: xkb_layout: "br"
(**) Option "xkb_variant" "thinkpad"
(**) AT Translated Set 2 keyboard: xkb_variant: "thinkpad"

In archlinux, it is:

(II) config/hal: Adding input device AT Translated Set 2 keyboard
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event1"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type:$
(**) Option "xkb_rules" "base"
(**) AT Translated Set 2 keyboard: xkb_rules: "base"
(**) Option "xkb_model" "evdev"
(**) AT Translated Set 2 keyboard: xkb_model: "evdev"
(**) Option "xkb_layout" "us"
(**) AT Translated Set 2 keyboard: xkb_layout: "us"

I've also checked 10-keymap.fdi, and both distros have the same file. I wish I could go back to Arch soon :-(
Comment by Jan de Groot (JGC) - Saturday, 13 December 2008, 14:59 GMT
Carlos, you should have read the wiki article linked to from xorg-server-1.5-3's post_install.

Loading...