Adventures in evdev-land

Christoph Brill egore at gmx.de
Wed Jan 23 13:25:01 PST 2008


Hi list,

my favourite distribution added xf86-input-evdev 1.2 to the packages. I
thought I'd test drive it around and see if it's really that much better
than xf86-input-kbd and xf86-input-mouse. That's where all the fun
started.
1.) I modified my xorg.conf to use evdev for the keyboard and stared X.
It started and I could type "hello". Good start.
2.) I modified xorg.conf again to use evdev for the mouse and started X.
Moving the mouse was successfull.
3.) I added keyboard-de.fdi (see attachment) to /etc/hal/fdi/policy and
restarted X (probably I restarted hal before). My keyboard was working
fine with german umlauts (I would type few right now but I can't... but
that's a later part of the story)
4.) I started using my system as I was used to do. But I had several
crashes. I found out that pressing the right mouse button on my mouse
would crash my system. Very ugly. Also the keyboard was acting like
crazy for any pageup, pagedown, left, right, ... button (like reporting
the down-key as Super_L according to evdev).
5.) I switchted back to kbd and mouse. My system still crashes when I
press the right mouse button and I can't get a german keymap anymore.
6.) I started using a non-framebuffer console with links to google for a
solution.
7.) Ask for help on xorg-devel because some must know if a guide to
successfull evdev with X exists.

Thanks in advance,
  Christoph Brill
-------------- next part --------------
Section "Module"
    Load        "dbe"  	# Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load        "freetype"
    Load       "glx"
#    Load       "dri"
EndSection

Section "Files"
    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/100dpi/"
    FontPath   "/usr/share/fonts/75dpi/"
    FontPath   "/usr/share/fonts/corefonts/"
    FontPath   "/usr/share/fonts/liberation-fonts-ttf/"
    FontPath   "/usr/share/fonts/mac4lin/"
    FontPath   "/usr/share/fonts/nicht-lustig/"
EndSection

Section "ServerFlags"
    Option "AIGLX"	"on"
EndSection

Section "InputDevice"
    Identifier "Keyboard1"
    Driver "kbd"
    Option "Device" "/dev/input/by-id/usb-Logitech_USB_Receiver-kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules" "xorg"
    Option "XkbModel" "logicd"
    Option "XkbLayout" "de"
    Option "XkbVariant"	"nodeadkeys"
EndSection

Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "IMPS/2"
    Option "Device" "/dev/input/by-id/usb-Logitech_USB_Receiver-mouse"
    Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
    Identifier "Mouse2"
    Driver "mouse"
    Option "Protocol" "IMPS/2"
    Option "Device" "/dev/input/by-id/usb-Logitech_Optical_USB_Mouse-mouse"
    Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
  Identifier "stylus"
  Driver "wacom"
  Option "Device" "/dev/input/by-id/usb-WACOM_CTE-640-U_V4.0-3-event-mouse"
  Option "Type" "stylus"
  Option "USB" "on"
  Option "CommonDBG" "11"
EndSection

Section "InputDevice"
  Identifier "eraser"
  Driver "wacom"
  Option "Device" "/dev/input/by-id/usb-WACOM_CTE-640-U_V4.0-3-event-mouse"
  Option "Type" "eraser"
  Option "USB" "on"
  Option "CommonDBG" "11"
EndSection

Section "InputDevice"
  Identifier "cursor"
  Driver "wacom"
  Option "Device" "/dev/input/by-id/usb-WACOM_CTE-640-U_V4.0-3-event-mouse"
  Option "Type" "eraser"
  Option "USB" "on"
  Option "CommonDBG" "11"
EndSection

Section "InputDevice"
  Identifier "pad"
  Driver "wacom"
  Option "Device" "/dev/input/by-id/usb-WACOM_CTE-640-U_V4.0-3-event-mouse"
  Option "Type" "eraser"
  Option "USB" "on"
  Option "CommonDBG" "11"
EndSection

Section "Monitor"
    Identifier  "ACER AL2017"
    HorizSync   30-82
    VertRefresh 56-76
    Option      "DPMS" "true"
EndSection

Section "Monitor"
    Identifier "ACER  AL2206W"
    HorizSync   30-82
    VertRefresh 56-76
    Option      "DPMS" "true"
EndSection

Section "Device"
    Identifier  "x1650"
    #Driver      "radeonhd"
    #Driver	 "fglrx"
    #Driver      "avivo"
    Driver      "radeon"
    Option      "AccelMethod" "EXA"
    #Option	 "ShadowFB" "true"
    #VideoRam    524288
    Option	"Rotation" "none"

    #Option "XAANoOffscreenPixmaps" "true"
    #Option "UseFastTLS" "0"
    #Option "backingstore" "true"
    #Option "TexturedVideo" "True"
    #Option "DRI" "true"
    #Option "PseudoColorVisuals" "on"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "x1650"
    Monitor     "ACER AL2206W"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1680x1050" "1280x1024" "1400x1050" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1680x1050" "1280x1024" "1400x1050" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1680x1050" "1280x1024" "1400x1050" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Mouse2" "SendCoreEvents"
    InputDevice "Keyboard1" "CoreKeyboard"
    #InputDevice "stylus"    "SendCoreEvents"
    #InputDevice "eraser"    "SendCoreEvents"
    #InputDevice "cursor"    "SendCoreEvents"
    #InputDevice "pad"
EndSection

Section "Extensions"
    Option "Composite" "enable"
    Option "RENDER" "enable"
    Option "XVideo" "enable"
EndSection

Section "DRI"
    Mode 0666
EndSection

-------------- next part --------------
A non-text attachment was scrubbed...
Name: keyboard-de.fdi
Type: application/xml
Size: 205 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20080123/36c83423/attachment.wsdl>


More information about the xorg mailing list