Advertisement
Guest User

ubuntu rtl8723be config/fix

a guest
Apr 25th, 2015
842
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.33 KB | None | 0 0
  1. #!/bin/sh
  2. # This is a script used to "Fix" the WiFi on several Levono Laptops, it only need be run once
  3. # http://ubuntuforums.org/showthread.php?t=2244018
  4. # https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1320070
  5.  
  6. # Check if patch is installed
  7. if [ -f /etc/modprobe.d/rtl8723be.conf ];then
  8.     echo "You already installed this"
  9.     read -p "Would you like to remove it? (y/n) " yn
  10.     if [ "$yn" = "y" ];then
  11.         sudo rm /etc/modprobe.d/rtl8723be.conf
  12.         sudo rm /etc/default/bluetooth
  13.     fi
  14.     exit
  15. fi
  16.  
  17. # Check if patch is needed
  18. if [ $(lspci | grep -i rtl8723be | wc -l) -eq 0 ];then
  19.     echo "This system does not have a RTL8723BE to apply a fix for"
  20.     exit
  21. fi
  22.  
  23. # Patch for next boot
  24. echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf
  25. echo "blacklist ideapad-laptop" | sudo tee -a /etc/modprobe.d/rtl8723be.conf
  26. echo "BLUETOOTH_ENABLED=0" | sudo tee /etc/default/bluetooth
  27.  
  28. # Apply patch to current session (live session of 15.04 may freeze)
  29. sudo service bluetooth stop
  30. sudo rmmod ideapad-laptop
  31. sudo rmmod rtl8723be
  32. sudo modprobe rtl8723be
  33.  
  34. # Print notes on screen
  35. echo "Bluetooth is now disabled, this is believed to impove WiFi stability!"
  36. echo "If you want to try bluetooh run this command:"
  37. echo "sudo service bluetooth start"
  38. echo "To make it permanent run this:"
  39. echo "sudo rm /etc/default/bluetooth"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement