xserver-multidpi/hw/xfree86/os-support
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
..
bsd xalloc+memset(0) -> xcalloc 2008-10-06 15:36:51 -04:00
bus xalloc+memset(0) -> xcalloc 2008-10-06 15:36:51 -04:00
hurd distcheck fixes 2008-07-20 16:30:24 +02:00
linux xfree86: if AllowEmptyInput is true, enable RAW mode on the console. 2008-10-16 21:35:27 +10:30
misc Remove some unused assembly code and assyntax.h 2008-08-18 16:46:36 -04:00
sco distcheck fixes 2008-07-20 16:30:24 +02:00
shared Remove some unused assembly code and assyntax.h 2008-08-18 16:46:36 -04:00
solaris xalloc+memset(0) -> xcalloc 2008-10-06 15:36:51 -04:00
sysv distcheck fixes 2008-07-20 16:30:24 +02:00
int10Defines.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
Makefile.am Remove some unused assembly code and assyntax.h 2008-08-18 16:46:36 -04:00
xf86_OSlib.h Unifdef ISC 2008-10-02 17:03:54 -04:00
xf86_OSproc.h Unifdef QNX. 2008-07-23 10:44:34 -04:00
xf86OSpriv.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00