xserver/hw/xfree86/os-support/linux
Arthur Taylor ff891bbf68 linux: Use K_OFF VT KB mode over K_RAW if available.
Linux kernels since 2.6.38 (March 2011) have an VT KB mode K_OFF in
which special keys (like Ctrl+C) are not interpreted and input is not
buffered. Use of this mode over K_RAW removes the need for a
xf86ConsoleHandler to drain the VT input buffer, removing the grief it
causes when it goes wrong or is (de)initialized out-of-order. (This
also saves a few needless context switches per key event.)

If K_OFF is not defined or not understood by the kernel, K_RAW and the
previous method is used as a fall-back.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Arthur Taylor <art@ified.ca>
Signed-off-by: Keith Packard <keithp@keithp.com>
2012-01-09 13:09:48 -08:00
..
int10 configure: change PCI function checking by a meaningful version of the library 2011-10-15 21:18:47 -07:00
Makefile.am linux: Remove ia64 domain I/O support code 2011-10-15 21:18:46 -07:00
lnx_acpi.c xfree86: Remove superfluous ifdef DEBUG checks. 2009-05-16 12:20:57 +10:00
lnx_agp.c linux: warning fix 2010-12-31 12:52:50 +00:00
lnx_apm.c Remove lnx_font.c and lnx.h 2009-11-06 06:23:26 -08:00
lnx_axp.c Use glibc's in/out routines 2009-11-16 20:17:29 -08:00
lnx_bell.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
lnx_ev56.c Use glibc's in/out routines 2009-11-16 20:17:29 -08:00
lnx_init.c linux: Use K_OFF VT KB mode over K_RAW if available. 2012-01-09 13:09:48 -08:00
lnx_kmod.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
lnx_video.c xfree86: Fix powerpc build with -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast 2011-11-18 11:26:02 -08:00