I've searched about this for hours, no dice. I have a wireless headset (Creative SXFI Air) that can be used with a USB cable. The headset allows charging while it's being used simultaneously with a USB cable.
According to the manufacturer's website:
SXFI AIR will start charging automatically when connected via USB to a power source EXCEPT in USB/Mass Storage Mode.
Apparently Windows doesn't treat it as a USB Mass Storage Device since it charges normally while it's in use, but Linux does, since it draws from battery and charges only when it's powered off. I do not want to disable the USB port entirely.
Here's the output of lsusb:
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 18f8:0f97 [Maxxter] Optical Gaming Mouse [Xtrem]
Bus 003 Device 009: ID 041e:3258 Creative Technology, Ltd Creative SXFI AIR
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 009: ID 041e:3258 Creative Technology, Ltd Creative SXFI AIR
Is there any way to make Linux treat this device as a "power only" device, or make that specific USB port do power delivery only? Please, only provide solutions that can be done in software.
eject
command? – mattia.b89 Jun 17 '23 at 12:09