Optimizar Bluetooth

Con mis teclado y mouse logitech bluetooth me ha sucedido que se lagea constantemente, y si uso uno wiresless no pasa esto, en la pagina https://askubuntu.com/questions/1180242/lag-when-using-bluetooth-mouse encontre la solución.

Por lo que ahí mencionan el problema es con la función de suspensión automática de USB integrada en el kernel.

$ lsusb -vt

/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M

    ID 1d6b:0003 Linux Foundation 3.0 root hub

/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M

    ID 1d6b:0002 Linux Foundation 2.0 root hub

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M

    ID 1d6b:0002 Linux Foundation 2.0 root hub

    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M

        ID 8087:0024 Intel Corp. Integrated Rate Matching Hub

        |__ Port 1: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M

            ID 046d:c52b Logitech, Inc. Unifying Receiver

        |__ Port 1: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 12M

            ID 046d:c52b Logitech, Inc. Unifying Receiver

        |__ Port 1: Dev 5, If 2, Class=Human Interface Device, Driver=usbhid, 12M

            ID 046d:c52b Logitech, Inc. Unifying Receiver

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M

    ID 1d6b:0002 Linux Foundation 2.0 root hub

    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M

        ID 8087:0024 Intel Corp. Integrated Rate Matching Hub

        |__ Port 5: Dev 6, If 0, Class=Audio, Driver=snd-usb-audio, 480M

            ID 046d:0826 Logitech, Inc. HD Webcam C525

        |__ Port 5: Dev 6, If 1, Class=Audio, Driver=snd-usb-audio, 480M

            ID 046d:0826 Logitech, Inc. HD Webcam C525

        |__ Port 5: Dev 6, If 2, Class=Video, Driver=uvcvideo, 480M

            ID 046d:0826 Logitech, Inc. HD Webcam C525

        |__ Port 5: Dev 6, If 3, Class=Video, Driver=uvcvideo, 480M

            ID 046d:0826 Logitech, Inc. HD Webcam C525

        |__ Port 6: Dev 4, If 1, Class=Audio, Driver=snd-usb-audio, 12M

            ID 0951:170f Kingston Technology 

        |__ Port 6: Dev 4, If 2, Class=Human Interface Device, Driver=usbhid, 12M

            ID 0951:170f Kingston Technology 

        |__ Port 6: Dev 4, If 0, Class=Audio, Driver=snd-usb-audio, 12M

            ID 0951:170f Kingston Technology 

        |__ Port 8: Dev 5, If 0, Class=Wireless, Driver=btusb, 12M

            ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

        |__ Port 8: Dev 5, If 1, Class=Wireless, Driver=btusb, 12M

            ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

Una vez identificado el dispositivo, en mi caso: 0a12:0001

ejecute la siguiente acción: 

$ sudo su

# echo 'ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0a12", ATTR{idProduct}=="0001", ATTR{power/autosuspend}="-1"' >> /etc/udev/rules.d/50-usb_power_save.rules

y se soluciono.

Recuerden cambiar los valores en rojo por los suyos