[SHR-U] Change Aux key binding [was: Scummvm key binding]

Fox Mulder Quakeman1 at gmx.net
Tue May 11 18:48:03 CEST 2010


It seems that my topic about a game emulator was not the best choice to
ask the underlying question. :)

So the basic question was, if there is a way to temporarily change the
AUX key binding to something else like "F5" from the keyboard and back
to screenlock without reboot?

Like shown in the non-working script below it must have been possible in
the past.

Ciao,
     Rainer

Am 07.05.2010 22:32, schrieb Fox Mulder:
> Hi,
> 
> i installed scummvm_0.12.0_armv4t.ipk in shr-u and it uses a wrapper
> script to start real scummvm. In this script it tries to bind the AUX
> key to F5 before and bind original key to AUX after scummvm. But these
> functions do not work. This key remapping is really needed when working
> in fullscreen.
> 
> Here is the content from the script:
> #!/bin/sh
> 
> # Save current AUX Key mapping
> SAVE_KEY="$(xmodmap -pke | grep 'keycode 177')"
> 
> # Remove the Enlightenment binding for AUX
> enlightenment_remote -binding-key-del ANY "Keycode-177" \
> NONE 1 "simple_lock" ""
> 
> # Map AUX Key to F5
> xmodmap -e "keycode 177 = F5"
> 
> # Turn LCD feft
> xrandr -o left
> 
> # Start the scummvm in fullscreen mode
> scummvm.real --fullscreen --themepath=/usr/share/scummvm/
> 
> # Turn LCD normal
> xrandr -o normal
> 
> # Restore the AUX Key mapping
> xmodmap -e "$SAVE_KEY"
> 
> # Restore Enlightenment mapping
> enlightenment_remote -binding-key-add ANY "Keycode-177" \
> NONE 1 "simple_lock" ""
> 
> When i try these commands by hand i see that keycode 177 has no function
> listed (xmodmap -pke).
> Second thing is that the command "enlightenment_remote" doesn't have an
> option called "-binding-key-del".
> 
> Does anyone know how i could do the AUX key binding with shr-u to get
> scummvm useable again? :)



More information about the community mailing list