On ב', 2005-10-31 at 10:32 +0200, Shachar Shemesh wrote: > The X case may be different (I don't know). X grabs the alt-Fx > combination from the kernel, and gives it ctrl-alt-Fx instead. I'm not > sure whether that's a user space thing or a kernel thing.
Alt-Fx switching at the textual console is managed by the kernel but user-configurable as part of the console keyboard mapping. Run 'dumpkeys' and look for the Console_1, Console_2 etc. mappings. Alt-Ctrl-Fx switch is entirely userspace. By merit of running as root, X can switch the console into Raw Keyboard Mode, which means it intercepts scancodes directly and avoids Linux keyboard keycodes and mapping. The magic that makes Alt-Ctrl-Fx work is the XKB mapping into XF86_Switch_VT_1 psuedo-keysyms -- see /usr/X11R6/lib/X11/xkb/symbols/srvr_ctrl. To find out how X does what it does programatically, try strace'ing chvt. ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]