Hello!, Well, 2 years ago I couldn't care less about this topic, now it's a day to day thing and details matter for user experience. In my work laptop using Windows + Logitech headset, I can toggle mute of the mic using the built-in hardware button, and that is reflected on the videocall apps immediately (Zoom, MS Teams). Now, on my personal computer with a Razer Seiren X (USB microphone) and openSUSE Leap 15.2, I'm trying to achieve the same (the mic has a hardware mute button), hardware mute works but it's independent from the software mute button in Zoom or Google Meet, so you get the annoying double mute problem. I would like to achieve a single mute feature (hardware toggle is reflected in hardware & software, and software toggle is reflected in hardware & software, similar to the Logitech headset scenario). Is that something anybody in the list has already achieve?, is that an UDEV rule thing?, is that more a hardware driver thing?. Any hints are more than welcome. Regards, -- Ciro Iriarte http://iriarte.it --
On 13/03/2021 21.13, Ciro Iriarte wrote:
Hello!,
Well, 2 years ago I couldn't care less about this topic, now it's a day to day thing and details matter for user experience.
In my work laptop using Windows + Logitech headset, I can toggle mute of the mic using the built-in hardware button, and that is reflected on the videocall apps immediately (Zoom, MS Teams).
Now, on my personal computer with a Razer Seiren X (USB microphone) and openSUSE Leap 15.2, I'm trying to achieve the same (the mic has a hardware mute button), hardware mute works but it's independent from the software mute button in Zoom or Google Meet, so you get the annoying double mute problem.
... IMHO, it may be impossible. A hardware mute typically means the microphone is actually switched off, perhaps short circuited. This is different from a button that the thing firmware reads and sends as status via the USB to the computer, where the driver reacts and mutes the mic in software. The hardware mute is probably not designed to send this information, it just physically disconnects the microphone. To make sure, you might try that headset in Windows and find out how it behaves. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)
On 2021-03-13 14:49:04 Carlos E.R. wrote:
|On 13/03/2021 21.13, Ciro Iriarte wrote: |> Hello!, |> |> Well, 2 years ago I couldn't care less about this topic, now it's a |> day to day thing and details matter for user experience. |> |> In my work laptop using Windows + Logitech headset, I can toggle mute |> of the mic using the built-in hardware button, and that is reflected |> on the videocall apps immediately (Zoom, MS Teams). |> |> Now, on my personal computer with a Razer Seiren X (USB microphone) |> and openSUSE Leap 15.2, I'm trying to achieve the same (the mic has a |> hardware mute button), hardware mute works but it's independent from |> the software mute button in Zoom or Google Meet, so you get the |> annoying double mute problem. | |... | |IMHO, it may be impossible. | |A hardware mute typically means the microphone is actually switched off, |perhaps short circuited. This is different from a button that the thing |firmware reads and sends as status via the USB to the computer, where |the driver reacts and mutes the mic in software. | |The hardware mute is probably not designed to send this information, it |just physically disconnects the microphone. | | |To make sure, you might try that headset in Windows and find out how it |behaves.
He already said that it works in Windows. :-) Leslie -- openSUSE Leap 15.2 x86_64
On 13/03/2021 21.57, J Leslie Turriff wrote:
On 2021-03-13 14:49:04 Carlos E.R. wrote:
|On 13/03/2021 21.13, Ciro Iriarte wrote: |> Hello!, |> |> Well, 2 years ago I couldn't care less about this topic, now it's a |> day to day thing and details matter for user experience. |> |> In my work laptop using Windows + Logitech headset, I can toggle mute
· · · · · · · · · · · · · · · · · · · · ***************
|> of the mic using the built-in hardware button, and that is reflected |> on the videocall apps immediately (Zoom, MS Teams). |> |> Now, on my personal computer with a Razer Seiren X (USB microphone)
· · · · · · · · · · · · · · · · · · · · · ***************
|> and openSUSE Leap 15.2, I'm trying to achieve the same (the mic has a |> hardware mute button), hardware mute works but it's independent from |> the software mute button in Zoom or Google Meet, so you get the |> annoying double mute problem. | |... | |IMHO, it may be impossible. | |A hardware mute typically means the microphone is actually switched off, |perhaps short circuited. This is different from a button that the thing |firmware reads and sends as status via the USB to the computer, where |the driver reacts and mutes the mic in software. | |The hardware mute is probably not designed to send this information, it |just physically disconnects the microphone. | | |To make sure, you might try that headset in Windows and find out how it |behaves.
He already said that it works in Windows. :-)
No, that's a different headset and different computer. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)
On 2021-03-13 15:16:02 Carlos E.R. wrote:
|On 13/03/2021 21.57, J Leslie Turriff wrote: |> On 2021-03-13 14:49:04 Carlos E.R. wrote: |>> |On 13/03/2021 21.13, Ciro Iriarte wrote: |>> |> Hello!, |>> |> |>> |> Well, 2 years ago I couldn't care less about this topic, now it's a |>> |> day to day thing and details matter for user experience. |>> |> |>> |> In my work laptop using Windows + Logitech headset, I can toggle |>> |> mute | |· · · · · · · · · · · · · · · · · · · · *************** | |>> |> of the mic using the built-in hardware button, and that is reflected |>> |> on the videocall apps immediately (Zoom, MS Teams). |>> |> |>> |> Now, on my personal computer with a Razer Seiren X (USB microphone) | |· · · · · · · · · · · · · · · · · · · · · *************** | |>> |> and openSUSE Leap 15.2, I'm trying to achieve the same (the mic has |>> |> a hardware mute button), hardware mute works but it's independent |>> |> from the software mute button in Zoom or Google Meet, so you get the |>> |> annoying double mute problem. |>> | |>> |... |>> | |>> |IMHO, it may be impossible. |>> | |>> |A hardware mute typically means the microphone is actually switched |>> | off, perhaps short circuited. This is different from a button that |>> | the thing firmware reads and sends as status via the USB to the |>> | computer, where the driver reacts and mutes the mic in software. |>> | |>> |The hardware mute is probably not designed to send this information, |>> | it just physically disconnects the microphone. |>> | |>> | |>> |To make sure, you might try that headset in Windows and find out how |>> | it behaves. |> |> He already said that it works in Windows. :-) | |No, that's a different headset and different computer.
Yes, different headset, and that will have to be tested with Windows; but his other headset, also with hardware switch, was able to notify the software of the state change on Windows, so there must be some mechanism in Windows' USB driver to detect that. Leslie -- openSUSE Leap 15.2 x86_64
On 14/03/2021 00.18, J Leslie Turriff wrote:
On 2021-03-13 15:16:02 Carlos E.R. wrote:
|On 13/03/2021 21.57, J Leslie Turriff wrote: |> On 2021-03-13 14:49:04 Carlos E.R. wrote: |>> |On 13/03/2021 21.13, Ciro Iriarte wrote: |>> |> Hello!, |>> |> |>> |> Well, 2 years ago I couldn't care less about this topic, now it's a |>> |> day to day thing and details matter for user experience. |>> |> |>> |> In my work laptop using Windows + Logitech headset, I can toggle |>> |> mute | |· · · · · · · · · · · · · · · · · · · · *************** | |>> |> of the mic using the built-in hardware button, and that is reflected |>> |> on the videocall apps immediately (Zoom, MS Teams). |>> |> |>> |> Now, on my personal computer with a Razer Seiren X (USB microphone) | |· · · · · · · · · · · · · · · · · · · · · *************** | |>> |> and openSUSE Leap 15.2, I'm trying to achieve the same (the mic has |>> |> a hardware mute button), hardware mute works but it's independent |>> |> from the software mute button in Zoom or Google Meet, so you get the |>> |> annoying double mute problem. |>> | |>> |... |>> | |>> |IMHO, it may be impossible. |>> | |>> |A hardware mute typically means the microphone is actually switched |>> | off, perhaps short circuited. This is different from a button that |>> | the thing firmware reads and sends as status via the USB to the |>> | computer, where the driver reacts and mutes the mic in software. |>> | |>> |The hardware mute is probably not designed to send this information, |>> | it just physically disconnects the microphone. |>> | |>> | |>> |To make sure, you might try that headset in Windows and find out how |>> | it behaves. |> |> He already said that it works in Windows. :-) | |No, that's a different headset and different computer.
Yes, different headset, and that will have to be tested with Windows; but his other headset, also with hardware switch, was able to notify the software of the state change on Windows, so there must be some mechanism in Windows' USB driver to detect that.
No, you are confused. The set used at work with windows has a "soft" button. The set used at home has a hardware button. That's my educated guess. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)
On 2021-03-13 17:36:22 Carlos E. R. wrote:
|On 14/03/2021 00.18, J Leslie Turriff wrote: |> On 2021-03-13 15:16:02 Carlos E.R. wrote: |>> |On 13/03/2021 21.57, J Leslie Turriff wrote: |>> |> On 2021-03-13 14:49:04 Carlos E.R. wrote: |>> |>> |On 13/03/2021 21.13, Ciro Iriarte wrote: |>> |>> |> Hello!, |>> |>> |> |>> |>> |> Well, 2 years ago I couldn't care less about this topic, now |>> |>> |> it's a day to day thing and details matter for user experience. |>> |>> |> |>> |>> |> In my work laptop using Windows + Logitech headset, I can toggle |>> |>> |> mute |>> | |>> |· · · · · · · · · · · · · · · · · · · · *************** |>> | |>> |>> |> of the mic using the built-in hardware button, and that is |>> |>> |> reflected on the videocall apps immediately (Zoom, MS Teams). |>> |>> |> |>> |>> |> Now, on my personal computer with a Razer Seiren X (USB |>> |>> |> microphone) |>> | |>> |· · · · · · · · · · · · · · · · · · · · · *************** |>> | |>> |>> |> and openSUSE Leap 15.2, I'm trying to achieve the same (the mic |>> |>> |> has a hardware mute button), hardware mute works but it's |>> |>> |> independent from the software mute button in Zoom or Google |>> |>> |> Meet, so you get the annoying double mute problem. |>> |>> | |>> |>> |... |>> |>> | |>> |>> |IMHO, it may be impossible. |>> |>> | |>> |>> |A hardware mute typically means the microphone is actually |>> |>> | switched off, perhaps short circuited. This is different from a |>> |>> | button that the thing firmware reads and sends as status via the |>> |>> | USB to the computer, where the driver reacts and mutes the mic in |>> |>> | software. |>> |>> | |>> |>> |The hardware mute is probably not designed to send this |>> |>> | information, it just physically disconnects the microphone. |>> |>> | |>> |>> | |>> |>> |To make sure, you might try that headset in Windows and find out |>> |>> | how it behaves. |>> |> |>> |> He already said that it works in Windows. :-) |>> | |>> |No, that's a different headset and different computer. |> |> Yes, different headset, and that will have to be tested with Windows; |> but his other headset, also with hardware switch, was able to notify the |> software of the state change on Windows, so there must be some mechanism |> in Windows' USB driver to detect that. | |No, you are confused. | |The set used at work with windows has a "soft" button. |The set used at home has a hardware button. | |That's my educated guess.
"In my work laptop using Windows + Logitech headset, I can toggle mute of the mic using the built-in hardware button, and that is reflected on the videocall apps immediately (Zoom, MS Teams)." Hardware button. Leslie -- openSUSE Leap 15.2 x86_64
On 2021-03-13 21:13, Ciro Iriarte wrote:
Any hints are more than welcome.
If your mic sends a keycode for the button you should be able to map that to "XF86AudioMicMute". run command "xev" (print contents of X events) and press the button a few times. It might be best to direct the output to a file: xev > /tmp/razerseirenx.log As this logs ALL x-events it can produce quite a lot so don't fiddle around with keyboard and mouse to much. Start xev, click on the mic button a few times, close the xev-window. Dig through the file and try to see if the mic generates a keycode that's useful. Example run: egrep keycode /tmp/razerseirenx.log Here's one of my kids logitech usb headset when I push the buttons on it: egrep keycode /tmp/logitech.log state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES, state 0x0, keycode 171 (keysym 0x1008ff17, XF86AudioNext), same_screen YES, state 0x0, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES, state 0x0, keycode 173 (keysym 0x1008ff16, XF86AudioPrev), same_screen YES, -- /bengan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2021-03-14 at 21:58 +0100, Bengt Gördén wrote:
On 2021-03-13 21:13, Ciro Iriarte wrote:
Any hints are more than welcome.
If your mic sends a keycode for the button you should be able to map that to "XF86AudioMicMute".
run command "xev" (print contents of X events) and press the button a few times.
It might be best to direct the output to a file: xev > /tmp/razerseirenx.log
Good idea, I had forgotten the tool. I tried with my headphones, they produced nothing at all. - -- Cheers, Carlos E. R. (from openSUSE 15.2 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYE57Ahwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVUNwAoJU7qsFrdfOqNgA1qr8B tj6H5978AJ9bQ1zRVjC2sC4DI2bey8vkhi9D5g== =nOHl -----END PGP SIGNATURE-----
participants (5)
-
Bengt Gördén
-
Carlos E. R.
-
Carlos E.R.
-
Ciro Iriarte
-
J Leslie Turriff