Go to file
Peter Hutterer d936a4235c xfree86: if AllowEmptyInput is true, enable RAW mode on the console.
Usually, the console is set to RAW in the kbd driver. If we hotplug all input
devices (i.e. the evdev driver for keyboards) and the console is left as-is.
As a result, the evdev driver must put an EVIOCGRAB on the device to avoid
characters leaking onto the console. This again breaks many things, amongst
them lirc, in-kernel mouse button emulation and HAL.

This patch sets the console to RAW if AllowEmptyInput is on.

Use-cases:
1. AEI is off
  1.1. Only kbd driver is used - behaviour as-is.
  1.2. kbd and evdev driver is used: if evdev does not grab the device,
       duplicate events are generated.
2. AEI is on
  2.1. Only evdev driver is used - behaviour as-is, but evdev does not need
       to grab the device anymore.
  2.2. evdev and kbd are used: duplicate key events are generated if evdev
       does not grab the device.

1.2 is a marginal use-case that can be fixed by adding a "grab" option to the
evdev driver (update of xorg.conf is needed).

2.2 is an issue. If we have no ServerLayout section, AEI is on, but devices
specified in the xorg.conf are still added [1], resulting in duplicate events.
This is a common configuration and needs sorting out.

[1] 2eaed4a10f

Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2008-10-16 21:35:27 +10:30
composite Switching from Automatic to Manual redirect needs to unmap/remap 2008-09-19 20:58:32 -07:00
config config: print error code if NIDR fails. 2008-09-26 09:33:39 +09:30
damageext Unifdef ISC 2008-10-02 17:03:54 -04:00
dbe xalloc+bzero -> xcalloc 2008-10-06 14:19:30 -04:00
dix Xi: check all handlers before applying property changes. 2008-10-13 13:50:40 +10:30
doc Document zap/-retro interaction more. 2008-10-07 20:40:15 -04:00
exa exa: restore {x,y}{Src,Dst} to their original values when !done 2008-10-15 00:03:16 +02:00
fb Partially reverts commit 505c216d03. 2008-10-03 11:24:34 -07:00
glx GLX: fix build when dri2 _is_ available. 2008-10-15 21:46:27 +02:00
hw xfree86: if AllowEmptyInput is true, enable RAW mode on the console. 2008-10-16 21:35:27 +10:30
include Add backtrace definitions to dix-config.h.in 2008-10-14 13:00:50 -04:00
mi mieq: Backtrace when the queue overflows. 2008-10-10 16:33:57 -04:00
miext XQuartz: Some motion made towards supporting fullscreen. 2008-10-08 18:45:17 -07:00
os Move xorg_backtrace() up to the OS level so we can call it from DIX. 2008-10-10 16:28:10 -04:00
randr RANDR: Delivery output property events. 2008-10-06 12:22:57 -04:00
record Drop the never-called SkippedRequestCallback list. 2008-10-03 17:51:19 -04:00
render Build fix. 2008-10-06 18:47:06 -04:00
Xext xalloc+memset(0) -> xcalloc 2008-10-06 15:36:51 -04:00
xfixes Unifdef ISC 2008-10-02 17:03:54 -04:00
Xi Xi: check all handlers before applying property changes. 2008-10-13 13:50:40 +10:30
xkb xkb: squash canonical types into explicit ones on core reconstruction. 2008-09-26 09:33:39 +09:30
.gitignore Add cscope files to .gitignore 2008-09-05 06:10:37 -07:00
acinclude.m4 Update ac_define_dir macro in acinclude.m4 to 2008-04-12 version 2008-04-16 18:38:38 -07:00
autogen.sh autogen.sh: Pass --force to autoreconf 2008-07-22 16:55:26 +03:00
configure.ac Depend on xtrans >= 1.2.2 for TRANS_NOXAUTH 2008-10-07 10:07:03 -07:00
COPYING Revert "Update COPYING for SHA1 code" 2008-09-23 09:21:37 -07:00
cpprules.in For MANDEFS, also replace __mandir__ for $(mandir) which includes 2006-12-08 15:51:44 -06:00
Makefile.am XTrap delenda est. 2008-06-25 09:52:36 -04:00
xorg-server.m4 Add xorg-server.m4 for driver dependency checking. 2005-11-01 15:01:51 +00:00
xorg-server.pc.in Include pciaccess in the xorg-server.pc Requires line. 2008-04-15 14:51:51 -07:00