BT adapter with Qubes OS 4.0

327 views
Skip to first unread message

gdr...@gmail.com

unread,
Sep 19, 2018, 1:10:27 PM9/19/18
to qubes-users
Hi,

I'm trying to look for a USB bluetooth adapter.

Why qvm-usb doesn't list available USB devices ?

[user@dom0 ~]$ qvm-usb
BACKEND:DEVID DESCRIPTION USED BY
[user@dom0 ~]$

----%<-----------------------

[user@dom0 ~]$ lsusb
Bus 002 Device 002: ID 0bc2:61b6 Seagate RSS LLC
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 050d:065a Belkin Components F8T065BF Mini Bluetooth 4.0 Adapter <-----
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Any help and advice would be greatly appreciated.

Best regards.

GD Rub

awokd

unread,
Sep 19, 2018, 3:42:03 PM9/19/18
to qubes...@googlegroups.com
gdr...@gmail.com:
> Hi,
>
> I'm trying to look for a USB bluetooth adapter.
>
> Why qvm-usb doesn't list available USB devices ?
>
> [user@dom0 ~]$ qvm-usb
> BACKEND:DEVID DESCRIPTION USED BY
> [user@dom0 ~]$
>
> ----%<-----------------------
>
> [user@dom0 ~]$ lsusb
> Bus 002 Device 002: ID 0bc2:61b6 Seagate RSS LLC
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver
> Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
> Bus 001 Device 002: ID 050d:065a Belkin Components F8T065BF Mini Bluetooth 4.0 Adapter <-----
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I'm assuming you haven't set up a USB qube because you're using that
logitech receiver for keyboard & mouse. However, from the two busses
listed in lsusb, you may have two separate USB controllers. Check with
lspci. If you do, you can set up a USB qube per
https://www.qubes-os.org/doc/usb/#creating-and-using-a-usb-qube and
assign one of your two controllers to it (the one with the Seagate
device, assuming Qubes isn't on it). Then you should be able to plug
your Bluetooth adapter in that controller. You may still have trouble
with qvm-usb seeing it, but there are a couple other options at that point.

GDRUB

unread,
Sep 21, 2018, 5:11:01 AM9/21/18
to awokd, qubes...@googlegroups.com
Hi awokd

High regard ! Thx so much.

My system has only one USB controller. I haven't set up a USB qube.

I achieved this objective on my desktop.

----%<---------------------------------------------
$ qvm-usb
BACKEND:DEVID  DESCRIPTION                            USED BY
sys-usb:1-1    Broadcom_Corp_BCM20702A0_5CF37060F233  personal
sys-usb:1-7    Logitech_USB_Receiver                
sys-usb:1-8    Logitech_USB_Receiver                
sys-usb:2-4    Seagate_M3_NM128GCP
----%<---------------------------------------------

I have had some trouble. USB keyboard is disabled during USB qube
creation. I had to plug a PS/2 keyboard otherwise I couldn't enter my
passphrase to decrypt the luks drive.

The below command indicates an error (R4.0, using salt).

----%<---------------------------------------------
$ sudo qubesctl state.sls qvm-usb-keyboard
[ERROR   ] Template was specified incorrectly: False
local:
    Data failed to compile:
----------
    No matching sls found for 'qvm-usb-keyboard' in env 'base'
DOM0 configuration failed, not continuing
----%<---------------------------------------------

I had to edit the qubes.InputKeyboard policy file in dom0 (R3.2, manual)
and hide all USB controllers from dom0 in GRUB2 (rd.qubes.hide_all_usb
removed)

Reference links :

-
https://www.qubes-os.org/doc/usb/#security-warning-about-usb-input-devices
-
https://www.qubes-os.org/doc/usb/#how-to-hide-all-usb-controllers-from-dom0

Qubes isn't on the Seagate device (using an SSD drive) ;-)

Today, I still have problems with BT and pulseaudio. PulseAudio Volume
Control (pavucontrol) shows Bluetooth headset. I connect my bluetooth
A2DP headset but the video playback on YouTube stops with message : "if
playback doesn't begin shortly try restarting your device". With
Spotify, the songs are playing but I can't hear it. :-(

GD

awokd

unread,
Sep 21, 2018, 7:24:00 AM9/21/18
to qubes...@googlegroups.com
GDRUB:
> My system has only one USB controller. I haven't set up a USB qube.
>
> I achieved this objective on my desktop.
>
> ----%<---------------------------------------------
> $ qvm-usb
> BACKEND:DEVID  DESCRIPTION                            USED BY
> sys-usb:1-1    Broadcom_Corp_BCM20702A0_5CF37060F233  personal
> sys-usb:1-7    Logitech_USB_Receiver                
> sys-usb:1-8    Logitech_USB_Receiver                
> sys-usb:2-4    Seagate_M3_NM128GCP
> ----%<---------------------------------------------

> Today, I still have problems with BT and pulseaudio. PulseAudio Volume
> Control (pavucontrol) shows Bluetooth headset. I connect my bluetooth
> A2DP headset but the video playback on YouTube stops with message : "if
> playback doesn't begin shortly try restarting your device". With
> Spotify, the songs are playing but I can't hear it. :-(

Good you got the sys-usb mostly working! I've seen other posts in this
mailing list about problems with BT and audio, but don't know if anyone
was able to get it to work. Maybe try a wired headset instead?

Franz

unread,
Sep 21, 2018, 9:34:44 AM9/21/18
to awokd, qubes-users
There are also easy adapters that take sound from the 3.5 mm jack and deliver it by BT 4.0/4.1, bypassing all huge BT security problems, with the additional advantage of being able to work with all VMs.


GDRUB

unread,
Sep 21, 2018, 4:47:32 PM9/21/18
to Franz, awokd, qubes-users
--
You received this message because you are subscribed to the Google Groups "qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users...@googlegroups.com.
To post to this group, send email to qubes...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/CAPzH-qD%2ByBG8ZkO6WhNUdUESj7MLsDgYV4M9SU0Bg2kYbKvb%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

It works like a charm!  I forgot to change audio profile of BT headset device (High Fidelity Playback A2DP).

I plan to use/adapt this script : https://m7i.org/tips/qubes-VM-bluetooth-audio/

Franz : I will test the 3.5 mm BT adapter for another use. Thx

Reply all
Reply to author
Forward
0 new messages