Host OS Support for Bluetooth Devices


Recommended Posts

1 hour ago, Jaburges said:

@L0rdRaidenI've updated the firmware files, and the boot config - so the firmware and config files load.
Added the Nerd-pack to get BlueZ and i'm able to run 

`hciconfig` on the host AND the docker.
I'm passing the DBus & the device through /dev/bus/usb/XXX/XXX

 

the error I get now is:

Failed to start Bluetooth: [org.freedesktop.DBus.Error.ServiceUnknown] The name org.bluez was not provided by any .service files

 

UGH - fixed it by simply restarting bluetooth on the host
 

/etc/rc.d/rc.bluetooth start

SO Bluetooth dongle is being passed through, and the integration works - range isnt great though :( 
I've tried increasing the range on the Lock side, but just ordered a USB extension cable

  • Thanks 1
Link to comment
  • 5 months later...
On 8/8/2022 at 10:59 PM, Jaburges said:

@L0rdRaidenI've updated the firmware files, and the boot config - so the firmware and config files load.
Added the Nerd-pack to get BlueZ and i'm able to run 

`hciconfig` on the host AND the docker.
I'm passing the DBus & the device through /dev/bus/usb/XXX/XXX

 

the error I get now is:

Failed to start Bluetooth: [org.freedesktop.DBus.Error.ServiceUnknown] The name org.bluez was not provided by any .service files

 

Is it required to pass both DBus and the device to the container or is passing DBus sufficient? 

Link to comment
  • 3 months later...
  • 3 months later...

So, I've found solution:

 

Download package from here on your host (unraid): https://slackware.pkgs.org/15.0/slackware-patches-x86_64/bluez-5.64-x86_64-1_slack15.0.txz.html

Then install taht package:  upgradepkg --install-new bluez-5.64-x86_64-1_slack15.0.txz
Restart service: /etc/rc.d/rc.bluetooth restart

Passthru 2 paths to your HomeAssistant container (get your ID of usb device with lsusb)
/dev/bus/usb/003/002
/run/dbus

 

Restart your HomeAssistant container... and VOILA, Bluetooth found and working!

Have fun!

  • Like 1
  • Thanks 1
Link to comment
1 minute ago, YaneonY said:

So, I've found solution:

 

Download package from here on your host (unraid): https://slackware.pkgs.org/15.0/slackware-patches-x86_64/bluez-5.64-x86_64-1_slack15.0.txz.html

Then install taht package:  upgradepkg --install-new bluez-5.64-x86_64-1_slack15.0.txz
Restart service: /etc/rc.d/rc.bluetooth restart

Passthru 2 paths to your HomeAssistant container (get your ID of usb device with lsusb)
/dev/bus/usb/003/002
/run/dbus

 

Restart your HomeAssistant container... and VOILA, Bluetooth found and working!

Have fun!

If you put in boot/extra and it will be installed at boot 

  • Like 1
Link to comment
  • 3 weeks later...
  • 2 months later...
On 8/9/2023 at 2:06 PM, YaneonY said:

Passthru 2 paths to your HomeAssistant container (get your ID of usb device with lsusb)
/dev/bus/usb/003/002
/run/dbus

Communication is all done over DBUS, so you don't have to pass through the USB device itself (and in fact, that can be problematic as the path can change between reboots, which will cause your container to fail to start). Just passing through /run/dbus should be sufficient.

Link to comment
On 8/9/2023 at 10:06 PM, YaneonY said:

So, I've found solution:

 

Download package from here on your host (unraid): https://slackware.pkgs.org/15.0/slackware-patches-x86_64/bluez-5.64-x86_64-1_slack15.0.txz.html

Then install taht package:  upgradepkg --install-new bluez-5.64-x86_64-1_slack15.0.txz
Restart service: /etc/rc.d/rc.bluetooth restart

Passthru 2 paths to your HomeAssistant container (get your ID of usb device with lsusb)
/dev/bus/usb/003/002
/run/dbus

 

Restart your HomeAssistant container... and VOILA, Bluetooth found and working!

Have fun!

 

When you say 'passthrough' what does that mean?

 

Options are extra parameters with --device='/dev/bus/usb/007/005'

or can add a 'path' or 'device'?

 

Thanks 

 

1614223355_Screenshot2023-11-08at17_50_48.thumb.png.7f7caba9932ef09f93f51f0f3de99e44.png

Edited by dopeytree
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.