<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Call for help: Testing headset buttons]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">currently it seems we are not supporting headset buttons for wired and BT headsets. In a first spike I want to gather informations from different headset and phones.</p>
<p dir="auto">If you own a wired or BT headset with buttons, plz do the following:</p>
<ul>
<li>Open a shell on your device</li>
<li><code>sudo mount / -o remount,rw</code></li>
<li><code>sudo apt update &amp;&amp; sudo apt install evtest</code></li>
</ul>
<p dir="auto"><strong>EDIT</strong>: It seems Bluetooth headsets might eventually already trigger the dialer and start doing something. Reports still welcome!</p>
<p dir="auto">This will install the evtest cmdline tool which will report various installed input devices. First, execute just that: <code>evtest</code>. You will get a list of potential input devices and a prompt to select one for testing.</p>
<p dir="auto">Now, go through that list and try the one that most likely sounds like it could be related to that buttons. Bluetooth devices will appear with their MAC address. Like this:</p>
<pre><code>Available devices:
/dev/input/event0:      qpnp_pon
/dev/input/event1:      sec_touchscreen
/dev/input/event2:      proximity_sensor
/dev/input/event3:      light_sensor
/dev/input/event4:      accelerometer_sensor
/dev/input/event5:      gyro_sensor
/dev/input/event6:      magnetic_sensor
/dev/input/event7:      gpio-keys
/dev/input/event8:      msm8226-tapan-snd-card Ear Jack
/dev/input/event9:      sec_jack
</code></pre>
<p dir="auto">Select the number corresponding to the entry, and then try to press the button and see if anything happens.</p>
<p dir="auto">In my case, I selected first event8, but that did not give any results, event9 was the right one.</p>
<p dir="auto">The result would look like this:</p>
<pre><code>Event: time 631.196568, -------------- SYN_REPORT ------------
Event: time 631.207360, type 1 (EV_KEY), code 226 (KEY_MEDIA), value 1
Event: time 631.207524, -------------- SYN_REPORT ------------
Event: time 631.335180, -------------- SYN_REPORT ------------
Event: time 631.335239, type 1 (EV_KEY), code 226 (KEY_MEDIA), value 0
</code></pre>
<p dir="auto">So that gives us the info that this key will trigger a KEY_MEDIA keypress event. Thats a useful information to later bind Lomiri, dialer etc to react on such a keypress properly. With this we could establish picking up the phone or ending a call properly.</p>
<p dir="auto">Plz answer to this thread with your test results, thanks!</p>
<p dir="auto">BR Florian</p>
]]></description><link>https://forums.ubports.com/topic/6072/call-for-help-testing-headset-buttons</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 13:44:21 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/6072.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 24 Apr 2021 09:25:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Wed, 12 May 2021 11:04:18 GMT]]></title><description><![CDATA[<p dir="auto">Nexus 5, RC Channel (2021-W18), 2 bluetooth headsets (Mpow M30 earbuds, Anker Sound Core Mini speaker): no events detected when pressing play/pause, volume buttons <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=6722c86c489" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":-(" alt="😞" /> but sound does work to both devices <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6722c86c489" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://forums.ubports.com/post/50572</link><guid isPermaLink="true">https://forums.ubports.com/post/50572</guid><dc:creator><![CDATA[rik]]></dc:creator><pubDate>Wed, 12 May 2021 11:04:18 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Wed, 12 May 2021 10:54:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rik" aria-label="Profile: rik">@<bdi>rik</bdi></a> Yeah the 2 events are okay, you could have different functions for a long and a short press, so thats why it needs to send press and release.</p>
]]></description><link>https://forums.ubports.com/post/50571</link><guid isPermaLink="true">https://forums.ubports.com/post/50571</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Wed, 12 May 2021 10:54:35 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Wed, 12 May 2021 11:05:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kugiigi" aria-label="Profile: kugiigi">@<bdi>kugiigi</bdi></a> this means the device you are inspecting isn't associated with your headset (or it isn't detecting any button presses). Try again with another device selected. If it is a bluetooth device and you have selected the correct device (by mac address for bluetooth) then I think that means unfortunately button detection isn't working for that device. Can you try other bluetooth devices and / or other wired headsets?</p>
<p dir="auto">UPDATE: I tried with 2 bluetooth devices and got no detected events either.....</p>
]]></description><link>https://forums.ubports.com/post/50570</link><guid isPermaLink="true">https://forums.ubports.com/post/50570</guid><dc:creator><![CDATA[rik]]></dc:creator><pubDate>Wed, 12 May 2021 11:05:24 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Wed, 12 May 2021 11:02:06 GMT]]></title><description><![CDATA[<p dir="auto">Nexus 5, RC Channel (2021-W18), wired headset w/ <code>play/pause</code>, <code>volume +</code>, <code>volume -</code> buttons:</p>
<pre><code>phablet@ubuntu-phablet:~$ sudo evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:	qpnp_pon
/dev/input/event1:	touch_dev
/dev/input/event2:	gpio-keys
/dev/input/event3:	hs_detect
/dev/input/event4:	msm8974-taiko-mtp-snd-card Button Jack
/dev/input/event5:	msm8974-taiko-mtp-snd-card Headset Jack
Select the device event number [0-5]: 3
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x1 product 0x1 version 0x1
Input device name: "hs_detect"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 114 (KEY_VOLUMEDOWN)
    Event code 115 (KEY_VOLUMEUP)
    Event code 226 (KEY_MEDIA)
  Event type 5 (EV_SW)
    Event code 2 (SW_HEADPHONE_INSERT) state 1
    Event code 4 (SW_MICROPHONE_INSERT) state 1
Properties:
Testing ... (interrupt to exit)
Event: time 439671.235176, type 1 (EV_KEY), code 226 (KEY_MEDIA), value 1
Event: time 439671.235866, -------------- SYN_REPORT ------------
Event: time 439671.400194, type 1 (EV_KEY), code 226 (KEY_MEDIA), value 0
Event: time 439671.400336, -------------- SYN_REPORT ------------
</code></pre>
<p dir="auto">So the <code>volume +</code> and <code>volume -</code> buttons are not detected, but the <code>play / pause</code> button is detected (correctly) as <code>KEY_MEDIA</code>. However, pressing it 1 time gives 2 events, both the <code>value 1</code> and the <code>value 0</code> entries above are from a single key press.</p>
]]></description><link>https://forums.ubports.com/post/50569</link><guid isPermaLink="true">https://forums.ubports.com/post/50569</guid><dc:creator><![CDATA[rik]]></dc:creator><pubDate>Wed, 12 May 2021 11:02:06 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Wed, 12 May 2021 10:38:28 GMT]]></title><description><![CDATA[<p dir="auto">Oh, I didn't understand I could test wired ones <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=6722c86c489" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":D" alt="😄" /><br />
I have ones of those white, hard ones with 3 buttons, vol+, vol- and white button:</p>
<pre><code>Select the device event number [0-5]: 4
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
Input device name: "ACCDET"

Properties:
Testing ... (interrupt to exit)
Event: time 1620815706.095935, type 1 (EV_KEY), code 164 (KEY_PLAYPAUSE), value 1
Event: time 1620815706.095935, type 1 (EV_KEY), code 164 (KEY_PLAYPAUSE), value 0
</code></pre>
<p dir="auto">Only white central button works, not the volume ones</p>
]]></description><link>https://forums.ubports.com/post/50568</link><guid isPermaLink="true">https://forums.ubports.com/post/50568</guid><dc:creator><![CDATA[CiberSheep]]></dc:creator><pubDate>Wed, 12 May 2021 10:38:28 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Wed, 12 May 2021 10:22:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/povoq" aria-label="Profile: povoq">@<bdi>povoq</bdi></a> Ohh I see. That would be new, that USB devices work <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=6722c86c489" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://forums.ubports.com/post/50567</link><guid isPermaLink="true">https://forums.ubports.com/post/50567</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Wed, 12 May 2021 10:22:23 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Wed, 12 May 2021 10:06:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: flohack">@<bdi>flohack</bdi></a> Well, I was surprised as "wired" as in headphone jack is completly different from USB headsets.</p>
]]></description><link>https://forums.ubports.com/post/50566</link><guid isPermaLink="true">https://forums.ubports.com/post/50566</guid><dc:creator><![CDATA[poVoq]]></dc:creator><pubDate>Wed, 12 May 2021 10:06:02 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Wed, 12 May 2021 09:19:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/povoq" aria-label="Profile: povoq">@<bdi>povoq</bdi></a> Well headset audio should work for music with any headset (wired, BT) but call audio seems to be broken for BT.</p>
]]></description><link>https://forums.ubports.com/post/50564</link><guid isPermaLink="true">https://forums.ubports.com/post/50564</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Wed, 12 May 2021 09:19:34 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Tue, 11 May 2021 22:31:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/c4pp4" aria-label="Profile: c4pp4">@<bdi>c4pp4</bdi></a> Ah, cool, so USB headset audio is already supported? That would be nice to add to the button support as well.</p>
]]></description><link>https://forums.ubports.com/post/50560</link><guid isPermaLink="true">https://forums.ubports.com/post/50560</guid><dc:creator><![CDATA[poVoq]]></dc:creator><pubDate>Tue, 11 May 2021 22:31:25 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Tue, 11 May 2021 22:02:29 GMT]]></title><description><![CDATA[<p dir="auto">Device: Xiaomi Mi A2<br />
Wired USB earphones with three buttons: Mi Dual Driver Earphones (Type-C) (<a href="https://www.amazon.de/XIAOMI-Kopfh%C3%B6rer-Wei%C3%9F-Audio-Stecker/dp/B07MLRXJBC" rel="nofollow ugc">https://www.amazon.de/XIAOMI-Kopfhörer-Weiß-Audio-Stecker/dp/B07MLRXJBC</a>)</p>
<pre><code>Available devices:
/dev/input/event0:      qpnp_pon
/dev/input/event1:      NVTCapacitiveTouchScreen
/dev/input/event2:      uinput-goodix
/dev/input/event3:      hall-switch-input
/dev/input/event4:      gpio-keys
/dev/input/event5:      sdm660-snd-card Headset Jack
/dev/input/event6:      sdm660-snd-card Button Jack
/dev/input/event7:      uinput-fpc
Select the device event number [0-7]: 6
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "sdm660-snd-card Button Jack"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 114 (KEY_VOLUMEDOWN)
    Event code 115 (KEY_VOLUMEUP)
    Event code 226 (KEY_MEDIA)
    Event code 260 (BTN_4)
    Event code 261 (BTN_5)
    Event code 582 (KEY_VOICECOMMAND)
Properties:
  Property type 6 (?)
Testing ... (interrupt to exit)
Event: time 1620770065.854970, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
Event: time 1620770065.854970, -------------- SYN_REPORT ------------
Event: time 1620770065.855140, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 0
Event: time 1620770065.855140, -------------- SYN_REPORT ------------
Event: time 1620770067.377695, type 1 (EV_KEY), code 226 (KEY_MEDIA), value 1
Event: time 1620770067.377695, -------------- SYN_REPORT ------------
Event: time 1620770067.377772, type 1 (EV_KEY), code 226 (KEY_MEDIA), value 0
Event: time 1620770067.377772, -------------- SYN_REPORT ------------
Event: time 1620770068.851389, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 1
Event: time 1620770068.851389, -------------- SYN_REPORT ------------
Event: time 1620770068.851508, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0
Event: time 1620770068.851508, -------------- SYN_REPORT ------------
</code></pre>
]]></description><link>https://forums.ubports.com/post/50557</link><guid isPermaLink="true">https://forums.ubports.com/post/50557</guid><dc:creator><![CDATA[c4pp4]]></dc:creator><pubDate>Tue, 11 May 2021 22:02:29 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Thu, 29 Apr 2021 08:34:24 GMT]]></title><description><![CDATA[<p dir="auto">I'm a bit late, but here's my version of events:</p>
<p dir="auto">Devices:<br />
Cosmo Communicator<br />
PinePhone Rev1.2b</p>
<p dir="auto">Headsets:<br />
3 different sets of wired headsets, one with 3 buttons, one with 2 buttons, one with 1 button</p>
<p dir="auto">On the Cosmo, selecting:<br />
'/dev/input/event0:    ACCDET'</p>
<p dir="auto">For all buttons on all headsets I get:<br />
type 1 (EV_KEY), code 164 (KEY_PLAYPAUSE), value 0<br />
-------------- SYN_REPORT ------------<br />
type 1 (EV_KEY), code 164 (KEY_PLAYPAUSE), value 1<br />
-------------- SYN_REPORT ------------</p>
<p dir="auto">There were 'Event code 114 (KEY_VOLUMEDOWN)' and 'Event code 115 (KEY_VOLUMEUP)' amongst other things listed in the 'Supported events' list, but I didn't see them on any button press.</p>
<p dir="auto">On the PinePhone, after entering 'evtest' I got no 'Available devices', after entering 'sudo evtest' I got some choices, but none gave any response.</p>
]]></description><link>https://forums.ubports.com/post/50206</link><guid isPermaLink="true">https://forums.ubports.com/post/50206</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 29 Apr 2021 08:34:24 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Tue, 27 Apr 2021 19:12:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: flohack">@<bdi>flohack</bdi></a> So, I now played a song as a comparison and plugged in the Inears headset.<br />
The Jack has switched from speaker to earphone and I could hear the music, but the volume buttons did not work.<br />
In addition, the Evtest with &lt;6&gt;; with the same result as above (first test), namely nothing.</p>
]]></description><link>https://forums.ubports.com/post/50157</link><guid isPermaLink="true">https://forums.ubports.com/post/50157</guid><dc:creator><![CDATA[Mario.CH]]></dc:creator><pubDate>Tue, 27 Apr 2021 19:12:59 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Tue, 27 Apr 2021 17:33:35 GMT]]></title><description><![CDATA[<p dir="auto">@mario-ch Well partially, but normally the evdev for inserting and removing headsets is different from the button control. So with the button device nothing happened? I guess that would be the right one...</p>
]]></description><link>https://forums.ubports.com/post/50156</link><guid isPermaLink="true">https://forums.ubports.com/post/50156</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Tue, 27 Apr 2021 17:33:35 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Tue, 27 Apr 2021 17:31:16 GMT]]></title><description><![CDATA[<p dir="auto">Device Sony Xperia X (F5121)<br />
When plugging in the original Inears headset &lt;MHA750&gt;, the volume control changes from speaker to earphone, then drops right back to speaker after about 1.5 seconds.</p>
<p dir="auto">I tried the evtest anyway with the following 2 results, not sure if they are helpful. Because nothing really happened during the test run, not until I opened the &lt;write to file&gt; file to see what happened.</p>
<pre><code>Available devices:
/dev/input/event0:	qpnp_pon
/dev/input/event1:	bu520x1nvx
/dev/input/event2:	somc_chg_unplug_key
/dev/input/event3:	gpio-keys
/dev/input/event4:	clearpad
/dev/input/event5:	msm8976-tasha-snd-card Headset Jack
/dev/input/event6:	msm8976-tasha-snd-card Button Jack
Select the device event number  [0-6]: 6
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "msm8976-tasha-snd-card Button Jack"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 114 (KEY_VOLUMEDOWN)
    Event code 115 (KEY_VOLUMEUP)
    Event code 226 (KEY_MEDIA)
    Event code 260 (BTN_4)
    Event code 261 (BTN_5)
    Event code 582 (KEY_VOICECOMMAND)
Properties:
  Property type 6 (?)
Testing ... (interrupt to exit)

second test
&lt;dito&gt;
Select the device event number  [0-6]: 5
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "msm8976-tasha-snd-card Headset Jack"
Supported events:
  Event type 0 (EV_SYN)
  Event type 5 (EV_SW)
    Event code 2 (SW_HEADPHONE_INSERT) state 0
    Event code 4 (SW_MICROPHONE_INSERT) state 0
    Event code 6 (SW_LINEOUT_INSERT) state 0
    Event code 7 (SW_JACK_PHYSICAL_INSERT) state 0
    Event code 15 (?) state 0
    Event code 16 (?) state 0
    Event code 17 (?) state 0
    Event code 18 (?) state 0
Properties:
Testing ... (interrupt to exit)

Event: time 1619464909.762451, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 1
Event: time 1619464909.762451, type 5 (EV_SW), code 4 (SW_MICROPHONE_INSERT), value 1
Event: time 1619464909.762451, type 5 (EV_SW), code 7 (SW_JACK_PHYSICAL_INSERT), value 1
Event: time 1619464909.762451, type 5 (EV_SW), code 17 (?), value 1
Event: time 1619464909.762451, -------------- SYN_REPORT ------------
Event: time 1619464910.860134, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 0
Event: time 1619464910.860134, type 5 (EV_SW), code 4 (SW_MICROPHONE_INSERT), value 0
Event: time 1619464910.860134, type 5 (EV_SW), code 7 (SW_JACK_PHYSICAL_INSERT), value 0
Event: time 1619464910.860134, type 5 (EV_SW), code 17 (?), value 0
Event: time 1619464910.860134, -------------- SYN_REPORT ------------
Event: time 1619464946.781515, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 1
Event: time 1619464946.781515, type 5 (EV_SW), code 4 (SW_MICROPHONE_INSERT), value 1
Event: time 1619464946.781515, type 5 (EV_SW), code 7 (SW_JACK_PHYSICAL_INSERT), value 1
Event: time 1619464946.781515, type 5 (EV_SW), code 17 (?), value 1
Event: time 1619464946.781515, -------------- SYN_REPORT ------------
Event: time 1619464952.772939, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 0
Event: time 1619464952.772939, type 5 (EV_SW), code 4 (SW_MICROPHONE_INSERT), value 0
Event: time 1619464952.772939, type 5 (EV_SW), code 7 (SW_JACK_PHYSICAL_INSERT), value 0
Event: time 1619464952.772939, type 5 (EV_SW), code 17 (?), value 0

</code></pre>
<p dir="auto">Is this helpful ?</p>
]]></description><link>https://forums.ubports.com/post/50155</link><guid isPermaLink="true">https://forums.ubports.com/post/50155</guid><dc:creator><![CDATA[Mario.CH]]></dc:creator><pubDate>Tue, 27 Apr 2021 17:31:16 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Tue, 27 Apr 2021 14:24:08 GMT]]></title><description><![CDATA[<p dir="auto">Ah, I guess. Sometimes it seems to get confused though switching away from bluetooth devices etc.</p>
]]></description><link>https://forums.ubports.com/post/50153</link><guid isPermaLink="true">https://forums.ubports.com/post/50153</guid><dc:creator><![CDATA[poVoq]]></dc:creator><pubDate>Tue, 27 Apr 2021 14:24:08 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Tue, 27 Apr 2021 13:02:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/povoq" aria-label="Profile: povoq">@<bdi>povoq</bdi></a> That should be the events that switch the audio sink to the headset. That should already be handled properly otherwise you would not hear anything <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=6722c86c489" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://forums.ubports.com/post/50152</link><guid isPermaLink="true">https://forums.ubports.com/post/50152</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Tue, 27 Apr 2021 13:02:23 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Tue, 27 Apr 2021 12:47:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: flohack">@<bdi>flohack</bdi></a> Cool, although bluetooth seems not too different either.</p>
<p dir="auto">On my wired headset and the Oneplus3 I also noticed evtest events on a different device for plugging in the headset and removing it from the headset socket. I guess that would also be useful to support in the music player?</p>
]]></description><link>https://forums.ubports.com/post/50150</link><guid isPermaLink="true">https://forums.ubports.com/post/50150</guid><dc:creator><![CDATA[poVoq]]></dc:creator><pubDate>Tue, 27 Apr 2021 12:47:46 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Tue, 27 Apr 2021 07:50:37 GMT]]></title><description><![CDATA[<p dir="auto">Thanks guys!<br />
Already a lot of good information. So the <strong>wired</strong> buttons it seems a bit easier, not so many variants:</p>
<ol>
<li>KEY_MEDIA and KEY_PLAYPAUSE need to be handled for media playback and calls</li>
<li>we can agree that the meaning is PLAY or PAUSE, also for the MEDIA event</li>
<li>In case Music is playing it will pause the music, or continue playback if state is PAUSE</li>
<li>In case a call is signalled, the button should only pick up the call. Media playback will already be stopped by the telephony framework.</li>
<li>In case a call is active, the button should only end the call. Media playback will already be started again by the telephony framework.</li>
</ol>
]]></description><link>https://forums.ubports.com/post/50147</link><guid isPermaLink="true">https://forums.ubports.com/post/50147</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Tue, 27 Apr 2021 07:50:37 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Tue, 27 Apr 2021 06:16:24 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: flohack">@<bdi>flohack</bdi></a> for working on this! My test:</p>
<p dir="auto">Wired headset with a single button, plugged into the BQ E4.5: the device appears as <code>/dev/input/event1:	ACCDET</code> and reacts like this on button presses:</p>
<pre><code>Event: time 1619503503.379042, type 1 (EV_KEY), code 164 (KEY_PLAYPAUSE), value 1
Event: time 1619503503.379054, type 1 (EV_KEY), code 164 (KEY_PLAYPAUSE), value 0
Event: time 1619503503.379059, -------------- SYN_REPORT ------------
</code></pre>
<p dir="auto">The same headset is seen on the Xiaomi Note 7 Pro as <code>/dev/input/event4:	sm6150-idp-snd-card Button Jack</code> and sends these two events on button press:</p>
<pre><code>Event: time 1619504074.039626, type 1 (EV_KEY), code 226 (KEY_MEDIA), value 1
Event: time 1619504074.039626, -------------- SYN_REPORT ------------
Event: time 1619504074.039777, type 1 (EV_KEY), code 226 (KEY_MEDIA), value 0
Event: time 1619504074.039777, -------------- SYN_REPORT ------------
</code></pre>
]]></description><link>https://forums.ubports.com/post/50145</link><guid isPermaLink="true">https://forums.ubports.com/post/50145</guid><dc:creator><![CDATA[mardy]]></dc:creator><pubDate>Tue, 27 Apr 2021 06:16:24 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Tue, 27 Apr 2021 00:52:57 GMT]]></title><description><![CDATA[<p dir="auto">Any chance we will see working bluetooth buttons in the music player on the dev channel soon? Really looking forward to finally be able to fast forward songs in my car again <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=6722c86c489" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://forums.ubports.com/post/50142</link><guid isPermaLink="true">https://forums.ubports.com/post/50142</guid><dc:creator><![CDATA[poVoq]]></dc:creator><pubDate>Tue, 27 Apr 2021 00:52:57 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Sun, 25 Apr 2021 16:53:50 GMT]]></title><description><![CDATA[<p dir="auto">This is on Lenovo M10 Plus FHD with Sony SBH24 BT headset. The system froze for a few moments when I pressed the first time but it registered them fine after that <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6722c86c489" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /><br />
Lots of supported events but it only has one button - play/pause <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=6722c86c489" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":D" alt="😄" /><br />
<img src="/assets/uploads/files/1619369522829-evtest.jpg" alt="evtest.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forums.ubports.com/post/50077</link><guid isPermaLink="true">https://forums.ubports.com/post/50077</guid><dc:creator><![CDATA[kugiigi]]></dc:creator><pubDate>Sun, 25 Apr 2021 16:53:50 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Sun, 25 Apr 2021 13:20:19 GMT]]></title><description><![CDATA[<p dir="auto">On my car bluetooth kit with OnePlus3 I get:<br />
code 163 (KEY_NEXTSONG)<br />
code 165 (KEY_PREVIOUSSONG)</p>
]]></description><link>https://forums.ubports.com/post/50069</link><guid isPermaLink="true">https://forums.ubports.com/post/50069</guid><dc:creator><![CDATA[poVoq]]></dc:creator><pubDate>Sun, 25 Apr 2021 13:20:19 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Sun, 25 Apr 2021 10:57:04 GMT]]></title><description><![CDATA[<p dir="auto">I tried this on a Nexus 5 with wired and BT headsets, I don't get anything. Not sure if I'm doing it right <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f605.png?v=6722c86c489" class="not-responsive emoji emoji-android emoji--sweat_smile" style="height:23px;width:auto;vertical-align:middle" title=":sweat_smile:" alt="😅" />  I just see <code>Testing....interrupt to stop</code></p>
]]></description><link>https://forums.ubports.com/post/50062</link><guid isPermaLink="true">https://forums.ubports.com/post/50062</guid><dc:creator><![CDATA[kugiigi]]></dc:creator><pubDate>Sun, 25 Apr 2021 10:57:04 GMT</pubDate></item><item><title><![CDATA[Reply to Call for help: Testing headset buttons on Sun, 25 Apr 2021 19:28:45 GMT]]></title><description><![CDATA[<p dir="auto">Tested on: E5, Mx4<br />
SPORT-BT headphones (3 buttons)</p>
<pre><code>Event: time 1619297943.459023, type 1 (EV_KEY), code 165 (KEY_PREVIOUSSONG), value 1
Event: time 1619297951.530449, type 1 (EV_KEY), code 163 (KEY_NEXTSONG), value 1
Event: time 1619298113.371200, type 1 (EV_KEY), code 200 (KEY_PLAYCD), value 1
</code></pre>
<p dir="auto">Tested on: E5, Mx4<br />
Netway Sport (3 buttons), i20 (car)<br />
None <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=6722c86c489" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
]]></description><link>https://forums.ubports.com/post/50028</link><guid isPermaLink="true">https://forums.ubports.com/post/50028</guid><dc:creator><![CDATA[CiberSheep]]></dc:creator><pubDate>Sun, 25 Apr 2021 19:28:45 GMT</pubDate></item></channel></rss>