Re: Button events from headphone+micro combo

2021-03-30 Thread tomas
On Tue, Mar 30, 2021 at 11:18:11AM -0400, Stefan Monnier wrote: > > I'm sure this can be made in software, by looking at the mic > > input. Most probably even in user space. > > Now to find someone with enough time in her/his hands and who > > can be convinced into trying :-) > > What I find puzzl

Re: Button events from headphone+micro combo

2021-03-30 Thread Stefan Monnier
> I'm sure this can be made in software, by looking at the mic > input. Most probably even in user space. > Now to find someone with enough time in her/his hands and who > can be convinced into trying :-) What I find puzzling here is that this is a 100% standard feature on pretty much all Android

Re: Button events from headphone+micro combo

2021-03-30 Thread David
On Tue, 30 Mar 2021 at 19:35, wrote: > Anyway. It is a classical "hack" which means taking something you > have and extending it in some unexpected and usually very creative > way. Enjoyable, most of the time extremely useful, in a nutshell: > the engineers core value :-) > But I stand by "ugly"

Re: Button events from headphone+micro combo

2021-03-30 Thread tomas
On Mon, Mar 29, 2021 at 09:58:19PM -0400, Stefan Monnier wrote: > > It's entirely possible that the Librem doesn't have a sound chip > > that translates impedance changes to button clicks. You could > > ask the hardware folks, right? > > So, that's what I did: > > https://forums.puri.sm/t/hea

Re: Button events from headphone+micro combo

2021-03-30 Thread tomas
On Tue, Mar 30, 2021 at 10:40:45AM +1100, David wrote: > On Sat, 27 Mar 2021 at 06:29, wrote: > > On Fri, Mar 26, 2021 at 03:05:58PM -0400, Dan Ritter wrote: > > > Stefan Monnier wrote: > > > > > >> My Librem mini comes with a an audio jack in the front into which I > > > > >> can > > > > >> con

Re: Button events from headphone+micro combo

2021-03-29 Thread Stefan Monnier
> It's entirely possible that the Librem doesn't have a sound chip > that translates impedance changes to button clicks. You could > ask the hardware folks, right? So, that's what I did: https://forums.puri.sm/t/headphone-buttons-on-the-librem-mini/ so you were right: my chip doesn't support

Re: Button events from headphone+micro combo

2021-03-29 Thread Dan Ritter
David wrote: > On Sat, 27 Mar 2021 at 06:29, wrote: > > On Fri, Mar 26, 2021 at 03:05:58PM -0400, Dan Ritter wrote: > > > Stefan Monnier wrote: > > > > > >> My Librem mini comes with a an audio jack in the front into which I > > > > >> can > > > > >> connect the same headphones-with-micro as us

Re: Button events from headphone+micro combo

2021-03-29 Thread David
On Sat, 27 Mar 2021 at 06:29, wrote: > On Fri, Mar 26, 2021 at 03:05:58PM -0400, Dan Ritter wrote: > > Stefan Monnier wrote: > > > >> My Librem mini comes with a an audio jack in the front into which I can > > > >> connect the same headphones-with-micro as used typically on phones. > > It's enti

Re: Button events from headphone+micro combo

2021-03-27 Thread tomas
On Fri, Mar 26, 2021 at 04:19:38PM -0400, Stefan Monnier wrote: > > Does acpi-listen pick them up? > > No, it does give me the > > jack/headphone HEADPHONE unplug > jack/headphone HEADPHONE plug > > events but nothing when I press those buttons. > > > It's entirely possible that the Lib

Re: Button events from headphone+micro combo

2021-03-26 Thread Stefan Monnier
> Does acpi-listen pick them up? No, it does give me the jack/headphone HEADPHONE unplug jack/headphone HEADPHONE plug events but nothing when I press those buttons. > It's entirely possible that the Librem doesn't have a sound chip > that translates impedance changes to button clicks.

Re: Button events from headphone+micro combo

2021-03-26 Thread tomas
On Fri, Mar 26, 2021 at 03:05:58PM -0400, Dan Ritter wrote: > Stefan Monnier wrote: > > >> My Librem mini comes with a an audio jack in the front into which I can > > >> connect the same headphones-with-micro as used typically on phones. [...] > > > Do the events "arrive" somewhere in the Big So

Re: Button events from headphone+micro combo

2021-03-26 Thread Dan Ritter
Stefan Monnier wrote: > >> My Librem mini comes with a an audio jack in the front into which I can > >> connect the same headphones-with-micro as used typically on phones. > >> This works fine to the extent that I can hear the audio out and it can > >> grab the audio from the microphone, but what

Re: Button events from headphone+micro combo

2021-03-26 Thread Stefan Monnier
>> My Librem mini comes with a an audio jack in the front into which I can >> connect the same headphones-with-micro as used typically on phones. >> This works fine to the extent that I can hear the audio out and it can >> grab the audio from the microphone, but what about the buttons >> (typically

Re: Button events from headphone+micro combo

2021-03-26 Thread tomas
On Thu, Mar 25, 2021 at 09:59:08PM -0400, Stefan Monnier wrote: > My Librem mini comes with a an audio jack in the front into which I can > connect the same headphones-with-micro as used typically on phones. > > This works fine to the extent that I can hear the audio out and it can > grab the audi

Button events from headphone+micro combo

2021-03-25 Thread Stefan Monnier
My Librem mini comes with a an audio jack in the front into which I can connect the same headphones-with-micro as used typically on phones. This works fine to the extent that I can hear the audio out and it can grab the audio from the microphone, but what about the buttons (typically used to incre