Take a look here for the headphones problem: https://github.com/mer-hybris/hadk-faq#id36
----====( /dev/input/event0 )====---- Name: "qpnp_pon" ID: bus 0x0, vendor, 0x0, product 0x0, version 0x0 Type 0x00 (EV_SYN) Type 0x01 (EV_KEY) KEY_POWER ----====( /dev/input/event1 )====---- Name: "touch_dev" ID: bus 0x0, vendor, 0x0, product 0x0, version 0x0 Type 0x00 (EV_SYN) Type 0x03 (EV_ABS) ABS_MT_SLOT=0 [0,9] ABS_MT_TOUCH_MAJOR=0 [0,15] ABS_MT_POSITION_X=0 [0,1079] ABS_MT_POSITION_Y=0 [0,1919] ABS_MT_TRACKING_ID=0 [0,65535] ABS_MT_PRESSURE=0 [0,255] ----====( /dev/input/event2 )====---- Name: "gpio-keys" ID: bus 0x19, vendor, 0x1, product 0x1, version 0x100 Type 0x00 (EV_SYN) Type 0x01 (EV_KEY) KEY_VOLUMEDOWN KEY_VOLUMEUP Type 0x05 (EV_SW) SW_LID ----====( /dev/input/event3 )====---- Name: "hs_detect" ID: bus 0x0, vendor, 0x1, product 0x1, version 0x1 Type 0x00 (EV_SYN) Type 0x01 (EV_KEY) KEY_VOLUMEDOWN KEY_VOLUMEUP KEY_MEDIA Type 0x05 (EV_SW) SW_HEADPHONE_INSERT SW_MICROPHONE_INSERT ----====( /dev/input/event4 )====---- Name: "msm8974-taiko-mtp-snd-card Button Jack" ID: bus 0x0, vendor, 0x0, product 0x0, version 0x0 Type 0x00 (EV_SYN) Type 0x01 (EV_KEY) BTN_MISC BTN_1 BTN_2 BTN_3 BTN_4 BTN_5 BTN_6 BTN_7 ----====( /dev/input/event5 )====---- Name: "msm8974-taiko-mtp-snd-card Headset Jack" ID: bus 0x0, vendor, 0x0, product 0x0, version 0x0 Type 0x00 (EV_SYN) Type 0x05 (EV_SW) SW_HEADPHONE_INSERT SW_MICROPHONE_INSERT SW_LINEOUT_INSERT SW_HPHL_OVERCURRENT SW_HPHR_OVERCURRENT SW_UNSUPPORT_INSERT