Bluetooth Mouse Unsychronizes Each Boot

Hi all,

I’ve did some research and I am not sure how to find what I’m looking for.
I’ve installed Qubes OS 4.2. I have a templateVM in debian-12-xfce and installed the blueman, bluez and bluetooth packages on it. When I launch the Bluetooth manager from the sys-usb system qube to synchronize my Bluetooth mouse (Logitech MX Anywhere 3S), it connects and works perfectly, but when I restart my computer afterwards, I need to resynchronize the bluetooth mouse again. I don’t know what I’m missing.

Thanks for your help.

1 Like

I guess you need to make persistent files with the device settings. (it may be in /var/lib/bluetooth/, but I did not check it and may be I’m wrong or not complete).
Read How to make any file persistent (bind-dirs) | Qubes OS how to do that.

Also depending on your settings you may use disposable sys-usb. In that case you need to make the files persistent in the disposable template for sys-usb.

2 Likes

Unfortunately it’s not working, I modified the qubes.USB file in dom0 and changed deny to allow and now the mouse is recognized. When I start the laptop it asks me if I want to authorize the Bluetooth in dom0. I don’t know if it’s the proper way but it’s working on my side.

1 Like

Let me correct myself, after a fresh install to understand what I’m doing, I found the location and put it in automatic connection:

  1. Launch the Bluetooth manager and do a pairing.
  2. When it’s done, open a terminal in sys-usb and execute the following command:
sudo qvm-copy /var/lib/bluetooth/XX:XX:XX:XX
  1. Copy to the TemplateVM of sys-usb.
  2. Open a terminal in the aforementioned TemplateVM and execute the following command:
sudo cp -r /home/user/QubesIncoming/sys-usb/XX:XX:XX:XX/var/lib/bluetooth/

You can now shutdown the TemplateVM and restart the sys-usb and it works.

4 Likes

Hi,

Is this still the right way to approach this issue? Shouldn’t it be possible to make /var/lib/bluetooth persistent in sys-usb?

Thanks.

1 Like