Messages in this thread | | | Date | Mon, 25 Oct 2004 16:45:49 +0200 | From | Stelian Pop <> | Subject | Re: [PATCH 0/5] Sonypi driver model & PM changes |
| |
On Mon, Oct 25, 2004 at 03:57:43PM +0200, Vojtech Pavlik wrote:
> The number is 240 and it's the number of possible PS/2 scancode > combinations, and since at this time X can only understand the PS/2 > protocol (and not native Linux events), this is the only way how to pass > keypresses to X. > > I believe that although this way may be easier, it leads to madness.
It is also impossible for me to go this way because there is no way to put 20+ events between 226 and 240...
> > I also haven't looked yet at adding a new modifier in the console > > mode... > > IIRC X has only 8 modifier keys and all are already defined and you > can't define any more. But I doubt you're using all of them on your > keyboard. It should be possible to assign Fn to one of them.
That's what I thought too. However, it seems to work only when the keysym associated with the modifier is a well known key (Control_L, Control_R, Alt_L etc).
If I do (214 is the keycode generated by my Fn key): keycode 214 = Control_L clear mod3 add mod3 = Control_L then Fn + F1 will generate Mod3 + F1 (but Control_L will not work as a Control modifier anymore).
But if I do: keycode 214 = function clear mod3 add mod3 = function then (at least) WindowMaker does not see the modifier anymore (only a 'function' single key press is received).
Stelian. -- Stelian Pop <stelian@popies.net> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |