Skip to content

Instantly share code, notes, and snippets.

@SirToffski
Last active October 5, 2019 21:11
Show Gist options
  • Save SirToffski/dbc90aa8a3b4a659eb1e169989cff203 to your computer and use it in GitHub Desktop.
Save SirToffski/dbc90aa8a3b4a659eb1e169989cff203 to your computer and use it in GitHub Desktop.
Fix rtbth Arch Linux
  1. blacklist the module to Prevent it from load on boot:
#echo "blacklist rtbth" > /etc/modprobe.d/ralink-bt.conf
  1. 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 &
  1. 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
  1. enable it to start on boot:
#systemctl enable rtbth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment