Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # This is a script used to "Fix" the WiFi on several Levono Laptops, it only need be run once
- # http://ubuntuforums.org/showthread.php?t=2244018
- # https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1320070
- # Check if patch is installed
- if [ -f /etc/modprobe.d/rtl8723be.conf ];then
- echo "You already installed this"
- read -p "Would you like to remove it? (y/n) " yn
- if [ "$yn" = "y" ];then
- sudo rm /etc/modprobe.d/rtl8723be.conf
- sudo rm /etc/default/bluetooth
- fi
- exit
- fi
- # Check if patch is needed
- if [ $(lspci | grep -i rtl8723be | wc -l) -eq 0 ];then
- echo "This system does not have a RTL8723BE to apply a fix for"
- exit
- fi
- # Patch for next boot
- echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf
- echo "blacklist ideapad-laptop" | sudo tee -a /etc/modprobe.d/rtl8723be.conf
- echo "BLUETOOTH_ENABLED=0" | sudo tee /etc/default/bluetooth
- # Apply patch to current session (live session of 15.04 may freeze)
- sudo service bluetooth stop
- sudo rmmod ideapad-laptop
- sudo rmmod rtl8723be
- sudo modprobe rtl8723be
- # Print notes on screen
- echo "Bluetooth is now disabled, this is believed to impove WiFi stability!"
- echo "If you want to try bluetooh run this command:"
- echo "sudo service bluetooth start"
- echo "To make it permanent run this:"
- echo "sudo rm /etc/default/bluetooth"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement