Turn off mouse LED lights on linux
Since most Logitech gaming mice store the mouse profile and settings on the mouse, you can use a Windows or Mac OS to install the Logitech Gaming Software and configure your mouse how you want it. Once you're done, you can unplug the mouse and plug it into the Linux system, and it will still have the same desired behavior.
If you only have access to a Linux OS and you want to change your mouse configuration, you can try to download and install Piper mouse configuration utility.