Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

evdev and xorg conflict [Solved]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
vorgas
n00b
n00b
Posts: 48
Joined: Wed Nov 02, 2005 3:55 pm

evdev and xorg conflict [Solved]

  • Quote

Post by vorgas » Tue Jul 15, 2008 4:47 pm

The Problem
For some reason xorg is blocking the output of all raw evdev events (or, that's what I think is happening) to my keyboard and mouse. When I run evtest on my mouse device, it sees the mouse, displays the button list, but activity does not generate output. I had gentoo in the past, and this program worked, so I know it's possible. I got a new computer and installed 2008.0 and now it's not working.

Why I Think It's X
  • Make sure evdev was enabled in the kernel. 'zcat /proc/config.gz | grep EVDEV' returns 'CONFIG_INPUT_EVDEV=y'. Check.
  • Try it a console, to make sure the evdev process is working. './evtest /dev/input/event0' shows the mouse, displays the button list, and activity generates hordes of output. Check.
  • Try running evtest on my joystick in X. I get evdev output on all activity. Check.
  • Try running evtest on my mouse/keybord in KDE, Gnome, and whatever the basic desktop is when root runs 'startx'. It fails on all 3, as above.
My Setup
  • Gentoo 2008.0
  • gentoo-sources-2.6.25-r6
  • xorg-server-1.4.2. The INPUT_DEVICES includes evdev.
  • xf86-input-evdev-2.0.1
Note that the mouse is working, it's just not seeing all the events. Specifically, it's not allowing evdev events through. And before you tell me to use program xyz instead of evdev, I already have and it can't handle all the buttons on my mouse, keyboard, or joysticks. But there is a program I can use that works great for all 3, provided I can get to the evdev events.

/etc/X11/xorg.conf
In the interests of brevity, I have included only the info relevant to the mouse/keyboard. For the various revisions, whenever I commented out something, I put the revision number after the #, so I could regress as needed. If you need something else, let me know.

Code: Select all

Section "Module"
   ...
   Load "evdev"
   ...
EndSection

Section "InputDevice"
   Identifier "Keyboard0"
   # (0) Driver "kbd"
   Driver "evdev"
EndSection

Section "InputDevice"
  Identifier "Mouse0"
  # (0) Driver "mouse"
  Driver "evdev"
  # (1) Option "Protocol" "auto"
  # (1) ZAxisMapping "4 5 6 7"
  # (2) Option "Device" "/dev/input/mice"
  # (3) Option "Device" "/dev/input/mouse0"
  # (4) Option "Device" "/dev/input/event0"
  Option "evBits" "+1-2"
  Option "keyBits" "~272-287"
  Option "relBits" "~0-2 ~6 ~8"
  Opiton "Pass" "3"
EndSection
Thank you for your ideas.
Last edited by vorgas on Fri Jul 18, 2008 12:55 am, edited 1 time in total.
Top
vorgas
n00b
n00b
Posts: 48
Joined: Wed Nov 02, 2005 3:55 pm

The Solution

  • Quote

Post by vorgas » Fri Jul 18, 2008 12:54 am

After banging around on lots of forums looking for lots of things, it was a throwaway comment in an lirc forum that did the trick.

In the "ServerLayout" section of /etc/X11/xorg.conf I added: Option "AutoAddDevices" "False"

Of course, this made my keyboard stop working, so I had to set that as follows:
Driver "evdev"
Device "/dev/input/by-id/usb-Logitech_USB_Multimedia_Keyboard-event-kbd"

In the mouse section I had to make sure the Device was pointed to a non-evdev entry, like /dev/input/mouse0 or /dev/input/mice. Then I could use the evdev node for what I wanted. Yahoo!
Top
Post Reply

2 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic