Fixed by finding id of Logitech USB by lsusb and then editing /etc/laptop-mode/conf.d/usb-autosuspend.conf AUTOSUSPEND USBID BLACKLIST adding the id found by lsusb

# The list of USB IDs that should not use autosuspend. Use lsusb to find out the
# IDs of your USB devices.
# Example: AUTOSUSPEND_USBID_BLACKLIST="046d:c025 0123:abcd"
AUTOSUSPEND_USBID_BLACKLIST="046d:c526"