Skip to content

Instantly share code, notes, and snippets.

@danirod
Created November 1, 2013 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danirod/7265114 to your computer and use it in GitHub Desktop.
Save danirod/7265114 to your computer and use it in GitHub Desktop.
Fast way to turn off Bluetooth in HP Pavilion dm1 notebooks equiped with Broadcom wireless cards. These cards have a bug that deactivates WiFi when the user turns off Bluetooth. The only way to turn off Bluetooth without turning off WiFi is using rfkill. This script does all the stuff automatically. Install: just copy this file to /usr/local/bin…
#!/bin/sh
HCI_ID=$(rfkill list | grep hci0 | cut -f1 -d':')
if [ $HCI_ID -ge 0 ]; then
rfkill block $HCI_ID
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment