View Single Post
Posts: 27 | Thanked: 37 times | Joined on Jan 2012
#4
I just plugged in a headset and pressed its call button, while monitoring xev for output. It's picked up as the special XF86Phone button, much like the volume buttons (on phone and headset) are XF86AudioRaiseVolume and XF86AudioLowerVolume. Here's the result of a press & release:

Code:
KeyPress event, serial 30, synthetic NO, window 0x3a00001,
    root 0x4d, subw 0x0, time 694375665, (384,111), root:(386,149),
    state 0x0, keycode 177 (keysym 0x1008ff6e, XF86Phone), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 30, synthetic NO, window 0x3a00001,
    root 0x4d, subw 0x0, time 694375797, (384,111), root:(386,149),
    state 0x0, keycode 177 (keysym 0x1008ff6e, XF86Phone), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
This may be a helpful place to start if you come to writing some code.
 

The Following 2 Users Say Thank You to kazzie For This Useful Post: