When you boot a device without pressing any button at a physical keyboard, X will not map the keycodes and modifiers. Without the modifiers the virtual keyboard matchbox-keyboard breaks when using 'Shift', 'Alt' or 'Caps'. This patch adds a session file that maps the keycodes and modifiers with 'xmodmap' when loading X, fixing the matchbox-keyboard problem.
add shift = Shift_L Shift_R add lock = Caps_Lock add control = Control_L Control_R add mod1 = Alt_L add mod2 = Num_Lock add mod4 = Mode_switch