- blacklist the module to Prevent it from load on boot:
#echo "blacklist rtbth" > /etc/modprobe.d/ralink-bt.conf
- Local script, / usr / local / sbin / rtbth, to load and start rtbt tool:
#!/bin/bash
sleep 5
/sbin/modprobe --ignore-install rtbth; /usr/bin/mknod /dev/rtbth c 192 0; /usr/bin/rtbt &
- systemctl service, the /etc/systemd/system/rtbth.service file:
[Unit]
Description = Fix rtbth bluetooth after gmd start
After = display-manager.service
[Service]
Type = oneshot
ExecStart =/usr/local/sbin/rtbth
TimeoutSec = 0
RemainAfterExit = true
[Install]
WantedBy = multi-user.target
- enable it to start on boot:
#systemctl enable rtbth