-
-
Notifications
You must be signed in to change notification settings - Fork 241
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would USBIPD-win help to get WSL2 working with my bluetooth adapter? #278
Comments
@hansmbakker However, I used them on a Hyper-V VM with a normal ubuntu kernel. I'm pretty sure for WSL you will have to compile your own kernel. But if you have the right drivers included, I'm pretty sure it'll work fine. |
Oh that sounds promising! However, I also discovered that Following the suggestions in that stackoverflow post did not help solving the issue unfortunately. |
I just did:
on Windows 10 WSL2. Seems to work just fine... EDIT: fix service command |
Odd.. On a clean, but updated version of Ubuntu 20.04.3 LTS on Windows 11 / WSL2 I get:
|
I had the service command reversed. See fixed version. |
Can happen :) With a new kernel (I had to enable bluetooth support and its device drivers) I managed to have WSL2 detect the bluetooth adapter. Initially However,
I tried lots of things (like
|
I get this for service bluetooth:
And this thread: moby/moby#16208 Since WSL is essentially running distro instances in a container, it looks like bluetooth is not going to work on WSL. Hyper-V is fine, though, so it's not the device support. It is the service support that is lacking... |
Mm, that's too bad.. I thought that, in general to share Bluetooth with docker, one could specify some networking setup (to share the host network with the container)? In any case, thank you very much for trying this along with me! |
While dbus is implemented for some time, systemd isn’t yet. There are workarounds and quite some articles about that available. It will come sooner or later officially (Ubuntu is working on that). |
Good news @hansmbakker !
This is on Windows 10, WSL2 Ubuntu 20.04, with a "Pluggable" BCM2070 adapter. I followed yours and @dorssel 's directions to compile the kernel again with Bluetooth enabled. The directions are here: And I found it helpful to refer to this page: https://ubuntu.com/core/docs/bluez/reference/device-enablement/linux-kernel-configuration-options I also enabled the 2070 driver since I knew I would be using it. But it is my first time compiling using a Kconfig for Linux so YMMV. But at least I can use EDIT: the genie stuff is not needed, use init.d instead After installing genie according to the guide, I run From there I can use I will be attempting to use this as a documented development environment for people that don't want to use a traditional VM/Baremetal environment for this project: https://github.com/JPHutchins/gatter. So, I will be going through the process again on my colleague's W11 environment and I will try to document better. Thanks for all this amazing work! |
Update: forget about the genie stuff and systemd.
At this point, assuming your USB device is attached to WSL2, you should be able to test with |
I can confirm this worked 👍 After following the steps at https://github.com/dorssel/usbipd-win/wiki/WSL-support#building-your-own-usbip-enabled-wsl-2-kernel with the Bluetooth Low Energy option + its device drivers enabled, I had to
|
I successfully got this working on a Windows 11 machine following these steps:
After this I was able to use |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I would like to use my laptop's bluetooth module from inside WSL2. I can attach the device as shown below, but bluetooth support in Ubuntu 20.04 (WSL) seems missing. Also I read that kernel recompilation might be needed if the WSL kernel doesn't support a device.
Has anybody gotten a bluetooth adapter working inside WSL2? (a lot of people here would be helped: microsoft/WSL#242)
output from
The text was updated successfully, but these errors were encountered: