Bluetooth start on dongle insertion
by pchristy from LinuxQuestions.org on (#52QNC)
System: Slackware64-current + AlienBob's KDE5
The motherboard of my desktop does not have built in bluetooth. However, I have a couple of USB bluetooth adapters. I recently got some bluetooth headphones. These work fine with the dongles and Slackware EXCEPT that Slackware does not automatically start bluetooth when the dongle is inserted.
/etc/rc.d/rc.bluetooth is executable. After inserting the dongle, I have to manually start /etc/rc.d/rc.bluetooth to get anything to work.
I'm sure there must be some way of detecting when the dongle is inserted, and then running rc.bluetooth automatically, possibly a udev rule?
Can anyone point me to an "idiot's guide" on how to achieve this? Google hasn't been much help!
TIA,
--
Pete


The motherboard of my desktop does not have built in bluetooth. However, I have a couple of USB bluetooth adapters. I recently got some bluetooth headphones. These work fine with the dongles and Slackware EXCEPT that Slackware does not automatically start bluetooth when the dongle is inserted.
/etc/rc.d/rc.bluetooth is executable. After inserting the dongle, I have to manually start /etc/rc.d/rc.bluetooth to get anything to work.
I'm sure there must be some way of detecting when the dongle is inserted, and then running rc.bluetooth automatically, possibly a udev rule?
Can anyone point me to an "idiot's guide" on how to achieve this? Google hasn't been much help!
TIA,
--
Pete