Liam Asman's Blog

How to stop Shokz headphones triggering standby mode in Linux

I was having a problem with my Shokz OpenComm2 headphones that when turning them on, Linux Mint would immediately prompt for shutdown/suspend.

Here is how I fixed it. I am using Shokz OpenComm2 with the Loop 120 USB A adapter.

Get the Vendor ID and Product ID. With the device turned on, run lsusb. Look for the following: Bus 003 Device 007: ID 3511:2ef2 Shokz Loop120 by Shokz

Create a file at /etc/udev/rules.d/10-shokz-fix.rules with the following contents. You will need to use sudo to create this file. Replace the idVendor and idProduct with the corresponding values from lsusb if necessary

# Rule to prevent Shokz headphones from triggering standby/sleep
SUBSYSTEM=="usb", ATTRS{idVendor}=="3511", ATTRS{idProduct}=="2ef2", DRIVER=="usbhid", ATTR{authorized}="0"

Reload the udev rules

sudo udevadm control --reload-rules

Unplug and plug-in the adapter to reapply the rules to the active device.