X11 EvDev Touchscreen Driver : Disable Long

I'm setting up a kiosk system that automatically loads a webpage in full screen on boot-up. Standard stuff.

The problem is a hooked up an Acer touch screen which works fine with the evdev driver... but it works a little too well. If the user presses and holds down on the screen, a right-click is generated and the context menu appears. This causes a few problems for the interface and I need to disable this feature, but I haven't found a way to do that yet.

X11 configuration files are not something with which I have much experience. Does anyone have any experience getting rid of this feature? Is it possible to map the touchscreen to a generic mouse driver?

The system is: - Unbuntu Mate 15.04 - Raspberry Pi 2 - Window Manager: Matchbox - Browser: Chromium

So far, I've made the following changes to the 10-evdev.conf file in /usr/share/X11/xorg.conf.d

Section "InputClass"
 Identifier "evdev touchscreen catchall"
 MatchIsTouchscreen "on"
 MatchDevicePath "/dev/input/event*"
 Driver "evdev"
 **Option "ButtonMapping" "1 0 0 0 0"
 Option "Emulate3Buttons" "False"
 Option "EmulateWheel" "False"
 Option "EmulateThirdButton" "False"
 Option "EmulateThirdButtonTimeout" "100000"
 Option "EmulateThirdButtonMoveThreshold" "0"**
EndSection

None of it has had any effect on the right-click event being generated or the context menu appearing. However, if I put:

Option "Ignore" "on"

The touchscreen doesn't work at all, so I believe that is the proper section to change.

Anyone that can give me any insights would be greatly appreciated. Thank you in advance!


I recommend not changing the distribution-provided xorg.conf snippet but rather stacking your own on top, see here http://who-t.blogspot.com.au/2014/03/stacking-xorgconfd-snippets.html

Emulate3Buttons should be the right option, do make sure it shows up in the xorg.log though. Any option that is parsed by the driver is printed there, if it never shows up then it's not detected.

链接地址: http://www.djcxy.com/p/39328.html

上一篇: 如何设置一个接收Qt中每个Widget动作的Slot

下一篇: X11 EvDev触摸屏驱动程序:禁用长时间