• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[HowTo] Configure the WALKMAN Button

Search This thread

Kizoky

Senior Member
Jun 13, 2014
1,082
488
Between 2 Castles
Hi everyone. I couldn't find any tutorial for this, though this is the easiest one to do so.
You can edit this button to other app, or completely disable it.

Go to /system/usr/keylayout/gpio-keys.kl and find the file, and open it with any text editor: (YOU NEED ROOT!!)
PHP:
key 391   MP3               WAKE_DROPPED

You can change it to: CAMERA, FOCUS (This is both for the Camera app; CAMERA takes a photo, FOCUS is... focusing..)

If you want to disable it, you can simply change the column to:
PHP:
#key 391   MP3               WAKE_DROPPED
Just add "#" in the beginning, and Android will ignore it!

List of codes: (all keys changed to 391 in order to prevent some noob mistyping it)
PHP:
key 391   MEDIA_PLAY_PAUSE    WAKE
key 391   MEDIA_STOP          WAKE
key 391   MEDIA_NEXT          WAKE
key 391   MEDIA_PREVIOUS      WAKE
key 391   MEDIA_REWIND        WAKE
key 391   MEDIA_FAST_FORWARD  WAKE

Other codes: (May be unnecessary)
PHP:
key 391   BACK              WAKE_DROPPED
key 391   SOFT_RIGHT        WAKE
key 391   ENDCALL           WAKE_DROPPED
key 391   MENU              WAKE_DROPPED
key 391   SEARCH            WAKE_DROPPED
key 391   POUND
key 391   STAR
key 391   CALL              WAKE_DROPPED
key 391   DPAD_CENTER       WAKE_DROPPED
key 391   DPAD_DOWN         WAKE_DROPPED
key 391   DPAD_UP           WAKE_DROPPED
key 391   HOME              WAKE
key 391   DPAD_LEFT         WAKE_DROPPED
key 391   DPAD_RIGHT        WAKE_DROPPED
key 391   VOLUME_UP         WAKE
key 391   VOLUME_DOWN       WAKE
key 391   POWER             WAKE
key 391   CAMERA

key 391    LEFT_BRACKET
key 391    RIGHT_BRACKET

key 391    BACKSLASH
key 391    COMMA
key 391    PERIOD
key 391    SLASH
key 391    ENTER
        
key 391    ALT_LEFT
key 391   ALT_RIGHT
key 391    SHIFT_LEFT
key 391    SHIFT_RIGHT
key 391    TAB
key 391   SPACE
key 391   EXPLORER
key 391   ENVELOPE        

key 391    MINUS
key 391    EQUALS
key 391   AT

# On an AT keyboard: ESC, F10
key 391     BACK              WAKE_DROPPED
key 391    MENU              WAKE_DROPPED

Thanks for @MrGunBest for the guide!
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Hi everyone. I couldn't find any tutorial for this, though this is the easiest one to do so.
    You can edit this button to other app, or completely disable it.

    Go to /system/usr/keylayout/gpio-keys.kl and find the file, and open it with any text editor: (YOU NEED ROOT!!)
    PHP:
    key 391   MP3               WAKE_DROPPED

    You can change it to: CAMERA, FOCUS (This is both for the Camera app; CAMERA takes a photo, FOCUS is... focusing..)

    If you want to disable it, you can simply change the column to:
    PHP:
    #key 391   MP3               WAKE_DROPPED
    Just add "#" in the beginning, and Android will ignore it!

    List of codes: (all keys changed to 391 in order to prevent some noob mistyping it)
    PHP:
    key 391   MEDIA_PLAY_PAUSE    WAKE
    key 391   MEDIA_STOP          WAKE
    key 391   MEDIA_NEXT          WAKE
    key 391   MEDIA_PREVIOUS      WAKE
    key 391   MEDIA_REWIND        WAKE
    key 391   MEDIA_FAST_FORWARD  WAKE

    Other codes: (May be unnecessary)
    PHP:
    key 391   BACK              WAKE_DROPPED
    key 391   SOFT_RIGHT        WAKE
    key 391   ENDCALL           WAKE_DROPPED
    key 391   MENU              WAKE_DROPPED
    key 391   SEARCH            WAKE_DROPPED
    key 391   POUND
    key 391   STAR
    key 391   CALL              WAKE_DROPPED
    key 391   DPAD_CENTER       WAKE_DROPPED
    key 391   DPAD_DOWN         WAKE_DROPPED
    key 391   DPAD_UP           WAKE_DROPPED
    key 391   HOME              WAKE
    key 391   DPAD_LEFT         WAKE_DROPPED
    key 391   DPAD_RIGHT        WAKE_DROPPED
    key 391   VOLUME_UP         WAKE
    key 391   VOLUME_DOWN       WAKE
    key 391   POWER             WAKE
    key 391   CAMERA
    
    key 391    LEFT_BRACKET
    key 391    RIGHT_BRACKET
    
    key 391    BACKSLASH
    key 391    COMMA
    key 391    PERIOD
    key 391    SLASH
    key 391    ENTER
            
    key 391    ALT_LEFT
    key 391   ALT_RIGHT
    key 391    SHIFT_LEFT
    key 391    SHIFT_RIGHT
    key 391    TAB
    key 391   SPACE
    key 391   EXPLORER
    key 391   ENVELOPE        
    
    key 391    MINUS
    key 391    EQUALS
    key 391   AT
    
    # On an AT keyboard: ESC, F10
    key 391     BACK              WAKE_DROPPED
    key 391    MENU              WAKE_DROPPED

    Thanks for @MrGunBest for the guide!
    1
    It's possible to configure this to work as a media button for any app?
    1
    we can now use the walkman button as an alt button for terminal emulators :victory: