evdev fails with "Couldn't open mtdev device"

Peter Hutterer peter.hutterer at who-t.net
Tue Jul 12 15:46:09 PDT 2011


On Mon, Jul 11, 2011 at 11:24:28AM +0200, Florian Echtler wrote:
> Hi everyone,
> 
> I'm trying to configure a secondary X server for an auxiliary
> touchscreen, but I'm having some problems with the input
> configuration. To keep input for my main screen and the auxiliary
> screen separate, I'm using the following config for the secondary
> one:
> 
> Section "InputDevice"
>         Identifier "mimoTouch"
>         Driver "evdev"
> 	Option "CorePointer" "true"B

CorePointer is a default anyway, so yuou don't need it (besides, deprecated
upstream, see Option Floating)

>         Option "Device" "/dev/input/event2"
> EndSection
> 
> Section "ServerFlags"
>         Option "AllowEmptyInput" "true"

don't ever use this option. We've even removed it upstream now so people
can't use it anymore but I don't know if your server version carries the
patch.

>         Option "AutoAddDevices" "false"
>         Option "AutoEnableDevices" "false"
> EndSection
> 
> The idea is that the secondary server doesn't touch any devices from
> the primary, just the statically configured touchscreen device.
> However, I'm getting the following error (the touchscreen is
> single-touch):
> 
> (II) Using input driver 'evdev' for 'mimoTouch'
> (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
> (**) Option "CorePointer"
> (**) mimoTouch: always reports core events
> (**) mimoTouch: Device: "/dev/input/event2"
> (EE) mimoTouch: Couldn't open mtdev device
> (EE) ioctl EVIOCGNAME failed: Inappropriate ioctl for device
> (EE) PreInit returned 8 for "mimoTouch"
> (II) Unloading evdev

for the mtdev stuff, not sure. We don't carry that upstream yet and I'm not
sure what Ubuntu ships here. However, I do notice that your config says
event2 and your log snippet says event8. This may be the source for the
issue.

Cheers,
  Peter
 
> On the other hand, when I set AutoAddDevices to true, then evdev
> handles the touchscreen just fine:
> 
> (II) config/udev: Adding input device e2i Technology, Inc. USB
> Touchpanel (/dev/input/event8)
> (**) e2i Technology, Inc. USB Touchpanel: Applying InputClass "evdev
> touchscreen catchall"
> (II) Using input driver 'evdev' for 'e2i Technology, Inc. USB Touchpanel'
> (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
> (**) e2i Technology, Inc. USB Touchpanel: always reports core events
> (**) e2i Technology, Inc. USB Touchpanel: Device: "/dev/input/event8"
> (--) e2i Technology, Inc. USB Touchpanel: Found absolute axes
> (II) evdev-grail: failed to open grail, no gesture support
> (--) e2i Technology, Inc. USB Touchpanel: Found x and y absolute axes
> (--) e2i Technology, Inc. USB Touchpanel: Found absolute touchscreen
> (II) e2i Technology, Inc. USB Touchpanel: Configuring as touchscreen
> (**) e2i Technology, Inc. USB Touchpanel: YAxisMapping: buttons 4 and 5
> (**) e2i Technology, Inc. USB Touchpanel: EmulateWheelButton: 4,
> EmulateWheelInertia: 10, EmulateWheelTimeout: 200
> (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2.3/2-2.3:1.0/input/input31/event8"
> (II) XINPUT: Adding extended input device "e2i Technology, Inc. USB
> Touchpanel" (type: TOUCHSCREEN)
> (II) e2i Technology, Inc. USB Touchpanel: initialized for absolute axes.
> (**) e2i Technology, Inc. USB Touchpanel: (accel) keeping
> acceleration scheme 1
> (**) e2i Technology, Inc. USB Touchpanel: (accel) acceleration profile 0
> (**) e2i Technology, Inc. USB Touchpanel: (accel) acceleration
> factor: 2.000
> (**) e2i Technology, Inc. USB Touchpanel: (accel) acceleration
> threshold: 4
> 
> So my question is: what do I have to do to get the static config to
> work just like the auto-added config? OS is stock Ubuntu 11.04.
> 
> Thanks,
> Florian
> 



More information about the xorg mailing list