Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129292 - evdev doesnt reports multimedia keys events from a device that is both mouse and kbd
Summary: evdev doesnt reports multimedia keys events from a device that is both mouse ...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-08 17:38 UTC by Matheus Izvekov
Modified: 2008-12-05 14:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matheus Izvekov 2006-04-08 17:38:15 UTC
This is the device im trying to use with evdev
I: Bus=0003 Vendor=045e Product=00e3 Version=0053
N: Name="Microsft Microsoft Wireless Optical Desktop 2.20"
P: Phys=usb-0000:00:02.0-1/input1
S: Sysfs=/class/input/input1
H: Handlers=kbd mouse0 js0 event1 
B: EV=10000f
B: KEY=c0002 400 0 c000000 1f0001 10f80 78407 ffe739fa d971d7ff febeffdf ffefffff ffffffff fffffffe
B: REL=fc3
B: ABS=ffffff01 701ff

Its the mouse "part" of a usb device that is a combo, and the keyboard multimedia keys events come from this input. The problem is, when i use it with evdev, kbd stops receiving those events, and evdev doesnt report them either.

This is te device section im using in xorg.conf:
Section "InputDevice"
        Identifier  "Mice0"
        Driver      "evdev"
        Option      "Protocol" "Auto"
        Option      "Device" "/dev/input/event1"
EndSection

Im using the latest modular Xorg from this date. versions:
x11-base/xorg-x11 7.0-r1
x11-base/xorg-server 1.0.2-r3
x11-drivers/xf86-input-evdev 1.0.0.5

emerge --info
Portage 2.1_pre7-r4 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.4-r1, 2.6.16-c
k3 i686)
=================================================================
System uname: 2.6.16-ck3 i686 AMD Athlon(tm)
Gentoo Base System version 1.12.0_pre17
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/s
plash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/var/tmp/distfiles"
FEATURES="autoconfig candy ccache distlocks metadata-transfer sandbox sfperms st
rict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/
distributions/gentoo"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aalib acl acpi adns aim alsa apache2 apm audiofile avi bash-c
ompletion bidi bitmap-fonts bzip2 cairo caps cdr cli crypt cscope ctype cups cur
l dba dedicated doc dri dts dvd dvdr eds emacs emacs-w3 emboss encode ethereal e
xif expat extrafilters fastbuild fastcgi fbcon ffmpeg fftw flac flash foomaticdb
 force-cgi-redirect fortran ftp gd gif glut gphoto2 gpm gps gstreamer gtk gtk2 g
uile icq idn imagemagick imap imlib ipv6 isdnlog jabber jack java joystick jpeg 
lcms leim libcaca libg++ libwww mad maildir mbox mcal memlimit mikmod mime mmx m
ng motif mozilla mp3 mpeg msn mule ncurses nls nocd nowin nptl ntlm ntpl offensi
ve ogg oggvorbis opengl oscar oss pam pcre pdflib perl pic plotutils png posix p
ppd prelude python quicktime readline samba scanner sdl session simplexml slang 
slp snmp soap sockets speex spell spl sse ssl tcltk tcpd theora tiff tokenizer t
ruetype truetype-fonts type1-fonts udev unicode usb v4l2 vhosts videos vorbis wm
f x86 xface xine xinerama xml xml2 xprint xsl xv yahoo zlib elibc_glibc input_de
vices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse in
put_devices_vmmouse kernel_linux userland_GNU video_cards_apm video_cards_fbdev 
video_cards_nv video_cards_nvidia video_cards_v4l video_cards_vesa video_cards_v
ga video_cards_vmware"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLA
GS, PORTDIR_OVERLAY
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-09 03:40:48 UTC
Are you trying to use evdev for both the mouse and  keyboard? If not, please give that a shot.
Comment 2 Matheus Izvekov 2006-04-09 07:30:56 UTC
Then it doesnt work, i cant get the keyboard to work at all with evdev. Here is the device section i wrote for it:

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "evdev"
        Option      "Protocol" "Auto"
        Option      "Device" "/dev/input/event0"
EndSection
Comment 3 Xake 2006-04-12 12:16:41 UTC
..and using evdev for both the mouse and keyboard is nothing I recommend unless you try the latest version of evdev (1.1.0) which was released the day before this bug was created. It needs an update for xkbvdata also (currently I am running csv-version of this, but will bump locally an report back).
This version is a rewrite to make for example the keyboard-support a little bit better....
Comment 4 Matheus Izvekov 2006-04-12 13:01:10 UTC
I will try it when it hits portage, but i cant get evdev to work even with a keyboard alone.
Comment 5 Xake 2006-04-12 16:04:00 UTC
Remove "Protocol" and see what happends...
Comment 6 Matheus Izvekov 2006-04-12 16:52:44 UTC
removing the "Protocol" line didnt help. as usual i dont get any errors in the log file, just:

(**) Option "CoreKeyboard"
(**) Keyboard0: Core Keyboard
(**) Keyboard0: Device: "/dev/input/event0"
(II) Keyboard0: Found keys
(II) Keyboard0: Configuring as keyboard
Comment 7 Matheus Izvekov 2006-04-12 18:46:59 UTC
Just tried the evdev from cvs. With it, keyboard kind of works. All the alphanumeric ones works, but many keys have weird/swapped codes (like the directional arrows, win key, menu key, all the ones just above the directional keys, and maybe others i didnt test). Mouse works ok still, although i still cant get those "keyboard events" to work with it.

Interesting part of the log:

(II) evdev brain: Rescanning devices (1).
(**) Option "CoreKeyboard"
(**) Keyboard0-usb-0000:00:02.0-1/input0: Core Keyboard 
(**) Option "XkbModel" "pc105"
(**) Option "XkbLayout" "us"
(**) Option "XkbVariant" "intl"
(II) evdev brain: Rescanning devices (2).
(**) Option "CorePointer"
(**) Mice0-usb-0000:00:02.0-1/input1: Core Pointer
(II) Mice0-usb-0000:00:02.0-1/input1: Found 36 absolute axes.
(II) Mice0-usb-0000:00:02.0-1/input1: Configuring as pointer.
(**) Mice0-usb-0000:00:02.0-1/input1: Configuring in Absolute mode.
(**) Mice0-usb-0000:00:02.0-1/input1: AbsoluteScreen: 0.
(II) Mice0-usb-0000:00:02.0-1/input1: Found 8 relative axes.
(II) Mice0-usb-0000:00:02.0-1/input1: Configuring as pointer.
(**) Mice0-usb-0000:00:02.0-1/input1: HWHEELRelativeAxisButtons: 6 7.
(**) Mice0-usb-0000:00:02.0-1/input1: WHEELRelativeAxisButtons: 4 5.
(II) Mice0-usb-0000:00:02.0-1/input1: Found 60 mouse buttons
(II) Mice0-usb-0000:00:02.0-1/input1: Configured 64 mouse buttons
(II) XINPUT: Adding extended input device "Mice0-usb-0000:00:02.0-1/input1" (type: KEYBOARD)
(II) XINPUT: Adding extended input device "Keyboard0-usb-0000:00:02.0-1/input0" (type: KEYBOARD)
(II) XINPUT: Adding extended input device "evdev brain" (type: evdev brain)
(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
(II) Keyboard0-usb-0000:00:02.0-1/input0: Init
(**) Mice0-usb-0000:00:02.0-1/input1: 36 valuators.
(EE) evdev_btn.c (90): Registering 64 buttons.
(II) Mice0-usb-0000:00:02.0-1/input1: Init
(II) evdev brain: Rescanning devices (3).
(II) Keyboard0-usb-0000:00:02.0-1/input0: On
(II) Mice0-usb-0000:00:02.0-1/input1: On
Comment 8 Xake 2006-04-13 00:03:05 UTC
OPk, what I know want you too check is whether you have xkbdata och xkeyboard-config installed on your system.

If you have xkbdata pull it from cvs and install it, if you have xkeyboard do a local bump of it to 0.8 (just comment out the patch, I have not checked if it is needed anymore). After that add 

Option "XkbModel" "evdev"

to your
Section "InputDevice"
        Identifier  "Keyboard0"

To be honest I have not yet gotten the multimedia-kerys working myself yet, but I at least got events from most of them (I think there is one or two I have no reaction in xev for). So I guess the rest is just me being lazy.
Comment 9 Xake 2006-04-13 00:08:59 UTC
Oh, and I tried local bump of evdev, it will not merge with xorg-server less then 1.0.99.992 (i think it was, it dies during configuration). Anyhow that version is not yet in portage, so I guess we just have to wait for xorg-server-1.1.0 before trying out that package.
Comment 10 Matheus Izvekov 2006-04-13 08:15:02 UTC
I tried emerging them, but xkeyboard-config blocks xkbdata.
I didnt use portage to try evdev from cvs, i just pulled the sources and compiled them, and put the evdev_drv.so in the correct directory, saving a backup of the old one.
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-13 11:21:07 UTC
You need to unmerge xkbdata and emerge xkeyboard-config.
Comment 12 Matheus Izvekov 2006-04-13 12:06:32 UTC
tried with xkeyboard-config-0.8 and XkbModel "evdev"
Now almost everything is ok with the keyboard. the only wrong mapping is the "Menu" key which is wrongly mapped to symbol XF86Back. But still, the main problem is still not solved, i dont get any keyboard events from the mouse device when i use it with evdev, so i cant confirm on the mappings of the multimedia keys, because they come from that channel.
Comment 13 Matheus Izvekov 2006-04-13 12:13:16 UTC
Oh, forgot to mention, for some reason Super_L is not working alright. with xev i see the events from it pressing and releasing, but xbindkeys and windowmaker are not recognising some shortcuts i configured, like mod4+f. In fact, the "Capture" thing in wmakerconf for configuring the keyboard shortcuts doesnt get that im pressing the windows key.
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-16 13:53:02 UTC
Please report results with xkeyboard-config 0.8, evdev driver 1.1.1 and reopen.
Comment 15 Matheus Izvekov 2006-04-18 17:14:24 UTC
Nothing really changed, all the problems i mentioned persist with evdev 1.1.1 and xkeyboard-config 0.8
Comment 16 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-18 21:29:51 UTC
Go ahead and file this upstream against the evdev driver at bugs.freedesktop.org in the xorg product. Attach your xorg.conf and /var/log/Xorg.0.log. Then post the URL here.

Before doing so, make sure you can reproduce it when you aren't using any binary drivers.

Thanks!