LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-31-2006, 04:44 PM   #1
Likosin
Member
 
Registered: Aug 2003
Location: NY
Distribution: Debian
Posts: 119

Rep: Reputation: 15
Using evdev causes Xorg to restart on keypress


When I try to use the 'evdev' drives for my mouse, like so,

Code:
Section "InputDevice"
        Identifier      "Logitech MX610"
        Driver    "evdev"
        Option    "Protocol"                "ExplorerPS/2"
        Option    "ZAxisMapping"        "6 7"
        Option    "Buttons"  "9"
        Option          "CorePointer"
        Option          "Phys"   "usb-*/input0"
EndSection
Xorg comes up fine, but restarts whenever I hit a key on my keyboard. The error log shows:

Code:
(II) evdev brain: Rescanning devices (1).
(EE) evdev.c (227): New device.
(**) Option "CorePointer"
(**) Logitech MX610-usb-0000:00:10.4-3.2/input0: Core Pointer
(II) Logitech MX610-usb-0000:00:10.4-3.2/input0: Found 4 relative axes.
(II) Logitech MX610-usb-0000:00:10.4-3.2/input0: Configuring as pointer.
(**) Logitech MX610-usb-0000:00:10.4-3.2/input0: HWHEELRelativeAxisButtons: 6 7.
(**) Logitech MX610-usb-0000:00:10.4-3.2/input0: WHEELRelativeAxisButtons: 4 5.
(II) Logitech MX610-usb-0000:00:10.4-3.2/input0: Found 16 mouse buttons
(II) Logitech MX610-usb-0000:00:10.4-3.2/input0: Configured 20 mouse buttons
(II) evdev brain: Gyration 1 -> Logitech USB Receiver 1.
(EE) evdev.c (227): New device.
(**) Option "CorePointer"
(**) Logitech MX610-usb-0000:00:10.1-2/input0: Core Pointer
(**) Logitech MX610-usb-0000:00:10.1-2/input0: XkbRules: "xorg"
(**) Logitech MX610-usb-0000:00:10.1-2/input0: XkbModel: "evdev"
(**) Logitech MX610-usb-0000:00:10.1-2/input0: XkbLayout: "us"
(WW) Logitech MX610-usb-0000:00:10.1-2/input0: does not have core pointer capabilities
(II) XINPUT: Adding extended input device "Logitech MX610-usb-0000:00:10.1-2/input0" (type: KEYBOARD)
(II) XINPUT: Adding extended input device "Logitech MX610-usb-0000:00:10.4-3.2/input0" (type: MOUSE)
(II) XINPUT: Adding extended input device "evdev brain" (type: evdev brain)
(II) XINPUT: Adding extended input device "Generic Keyboard" (type: KEYBOARD)
(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
(EE) evdev_btn.c (95): Registering 20 buttons.
(II) Logitech MX610-usb-0000:00:10.4-3.2/input0: Init
(II) Logitech MX610-usb-0000:00:10.1-2/input0: Init
(II) evdev brain: Rescanning devices (2).
(II) evdev brain: Logitech USB Receiver 2 -> Gyration 1.
(II) evdev brain: Logitech USB Receiver 2 -> Logitech USB Receiver 1.
(II) evdev brain: Gyrations Mouse 2 -> Gyration 1.
(II) Logitech MX610-usb-0000:00:10.4-3.2/input0: On
(II) Logitech MX610-usb-0000:00:10.1-2/input0: On
(II) Logitech MX610-usb-0000:00:10.1-2/input0: Off
(II) Logitech MX610-usb-0000:00:10.4-3.2/input0: Off
I actually have two mice "connected" to my system: A Logitech MX610, via a usb wireless dongle, and a Gyration Mouse. The Gyration Mouse is broken and I do not use it any more, but I use the keyboard that was sold with it...both use another dongle, which reports the keyboard *and* the mouse, even though the mouse is turned off. I do use the Gyration Keyboard, but I am interested in using evdev for my Logitech mouse.

Here is the contents of /proc/bus/input/devices...

Code:
$ cat /proc/bus/input/devices
I: Bus=0003 Vendor=0c16 Product=0001 Version=0120
N: Name="Gyration"
P: Phys=usb-0000:00:10.1-2/input0
S: Sysfs=/class/input/input0
H: Handlers=kbd event0
B: EV=120003
B: KEY=e080ffdf 1cfffff ffffffff fffffffe
B: LED=1f
 
I: Bus=0003 Vendor=0c16 Product=0001 Version=0120
N: Name="Gyration"
P: Phys=usb-0000:00:10.1-2/input1
S: Sysfs=/class/input/input1
H: Handlers=kbd mouse0 event1
B: EV=10000f
B: KEY=42c43a2 20d0400 0 0 1ff0001 c04 7c007 ffa039fa d841dfff 80beffcd 1cfffff febffbff dffffffe
B: REL=143
B: ABS=1 0
 
I: Bus=0003 Vendor=046d Product=c518 Version=4200
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:10.4-3.2/input0
S: Sysfs=/class/input/input2
H: Handlers=mouse1 event2
B: EV=7
B: KEY=ffff0000 0 0 0 0 0 0 0 0
B: REL=143
 
I: Bus=0003 Vendor=046d Product=c518 Version=4200
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:10.4-3.2/input1
S: Sysfs=/class/input/input3
H: Handlers=kbd event3
B: EV=f
B: KEY=c0002 400 0 0 1 f80 78000 6039fa d84157ad 8e0000 0 0 0
B: REL=40
B: ABS=1 0
 
I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/class/input/input4
H: Handlers=kbd event4
B: EV=40001
B: SND=6
 
Old 04-01-2006, 12:34 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Not sure if evdev in Xorg is the same as evdev in the kernel. I know it is used in relation to synaptic touchpad driver. But you can give this a try.

I am guessing evdev is compiled into your kernel. You can check by typing 'lsmod ' and see if it listed. You can also try ' modprobe evdev ' to see if it will load. If neither work you might try building the kernel and make evdev as a module. Then reboot with the new kernel and do a ' modprobe evdev ' before starting X. Only other choice is stay with the mouse driver.

Brian1
 
Old 04-02-2006, 08:18 AM   #3
Likosin
Member
 
Registered: Aug 2003
Location: NY
Distribution: Debian
Posts: 119

Original Poster
Rep: Reputation: 15
I'm using a stock Debian kernel, so 'evdev' is a kernel module, and it is loaded when I'm doing all this. I'd stay with the 'mouse' driver, but then I can't use all the buttons on my mouse...

But thanks for the reply!
 
Old 04-02-2006, 12:39 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Very odd mouse over all. I did find a page that has a little difference in the xorg.conf file. But it is in a language I can not read.
http://linuxforum.ru/index.php?showtopic=18281

In a later post there is the command ' xev ' listed. It is an app that run from the command can show keycodes to some mouse buttons and keyboard key presses. Run that and see if the buttons produce anything. If they do then you should be able to map it to what you want it to do.

Post back here if you get it going with how you did it.
Brian1
 
Old 04-02-2006, 01:07 PM   #5
Likosin
Member
 
Registered: Aug 2003
Location: NY
Distribution: Debian
Posts: 119

Original Poster
Rep: Reputation: 15
Aah, that forum post is in Russian, a language that I happen to speak. The user is having trouble not only with his mouse, but with his keyboard. I have my keyboard all figured out, but not my mouse. Indeed, running 'xev' reports that almost all the buttons are reported, except the two I want most: the left and right scrollwheel tilt...
 
Old 04-03-2006, 04:10 PM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Well at lost on what to do next. Good luck.

Brian1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
evdev with xorg 6.9 ganja_guru Linux - Software 1 12-25-2005 12:46 PM
X Server (xorg 6.8.2) restart problems yitzhakbg Linux - Software 3 10-13-2005 08:26 PM
Evdev in X Soltis Slackware 7 03-29-2005 01:32 PM
catching a keypress on X MD3 Programming 0 02-14-2005 02:07 PM
patch and evdev problems godhugh Linux - Newbie 0 01-06-2005 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration