Sign in with
Sign up | Sign in
Your question

which keyvalue is bound to the earphones button?

Tags:
  • Phones
  • Android
  • Smartphones
  • Mapping
Last response: in Linux/Free BSD
Share
August 11, 2014 3:09:57 PM

hi,

I want to change the button mapping of my earphones button.
My phone normally pauses/plays the music when i click it, but i want to use it to skip to the next song. I thought it would be possible by changing the right keyvalue from MEDIA_PAUSE to MEDIA_NEXT. The thing is, i don't know which from the .kl files to use and which keyvalue to change. It comes down to t the question:
Does anyone know which keyvalue is bound to the earphones button?
Thanks in advance

More about : keyvalue bound earphones button

August 11, 2014 3:27:41 PM

The answer is hardware dependent. ie you will have to find out your self. The best way to do this is:
  1. sudo showkey -s
  2. ...
  3. usage: showkey [options...]
  4.  
  5. valid options are:
  6.  
  7. -h --help display this help text
  8. -a --ascii display the decimal/octal/hex values of the keys
  9. -s --scancodes display only the raw scan-codes
  10. -k --keycodes display only the interpreted keycodes (default)
m
0
l
August 11, 2014 3:38:24 PM

skittle said:
The answer is hardware dependent. ie you will have to find out your self. The best way to do this is:
  1. sudo showkey -s
  2. ...
  3. usage: showkey [options...]
  4.  
  5. valid options are:
  6.  
  7. -h --help display this help text
  8. -a --ascii display the decimal/octal/hex values of the keys
  9. -s --scancodes display only the raw scan-codes
  10. -k --keycodes display only the interpreted keycodes (default)


It's on an android device eh right?.. (samsung s advance)i wouldn't even know where to put those command lines?..
i think its one of the key values in e.g. system/usr/keylayout/qwerty.kl which is now mapped as pause, but has to be changed to 'next 'or something. only, i don't knwo which keyvalue. there are plenty keyvalues mapped as pause.
But thanks for the help.
m
0
l
!