Try playing with the kernel level function key remapping that I added in my kernel:
If you're not using my kernel, you need to extract the patch that implements this feature from my kernel on github and compile your own.
I can write parameters even from inside the chrooted environment.
_that's Kernel key remapping function works perfectly, I can use the following commands (in Android terminal or within the chrooted environment, as root in both cases) to enable Esc, Del, Ins keys, and to use special keys as Function keys without needing to press Alt/Alt Gr:
echo 3 > /sys/module/asusdec/parameters/key_flags
Xserver XSDL sees Esc, Del and Ins keys (corresponding to Back, Lock, Volume Mute dock keys) as if they were the same key, that in the default XServer XSDL config is mapped to 'Unknown'.
So even if you try to remap them, you can choose only one option for ALL of them.
Do not touch XServer XSDL default key mapping settings .
Follow my previous post, point 2, and add to the $HOME/.lircrc config file the following lines:
begin prog = irexec remote = /dev/input/event1 button = KEY_ESC config = xte 'key Escape' repeat = 0 end begin prog = irexec remote = /dev/input/event1 button = KEY_DELETE config = xte 'key Delete' repeat = 0 end begin prog = irexec remote = /dev/input/event1 button = KEY_INSERT config = xte 'key Insert' repeat = 0 end
With _that's kernel key remapping functions, function keys (with no alt/Alt gr) and dock's special keys (with Alt/Alt Gr) are different key events, however XServer XSDL sees them as the same event, so you cannot remap them differently.
If you use function keys in your chrooted linux GUI, everithing is fine.
If you try to use dock's special keys (with Alt/Alt Gr to toggle wifi, bluetooth, adjust brightness etc.) you get the special key event AND the function key event at the same time.
So if you press Alt/AltGr+ToggleWifi you toggle wifi AND press F1 at the same time, so you may see the help window of the program you are using. And so on...
none found at the moment, I guess it would be necessary to modify XServer XSDL code.
Simply do not try use dock special keys (with Alt/AltGr) when you are inside your chrooted linux GUI
Anyway, thanks @_that!