5/24/2020

Ubuntu 18.04 fix mouse and fix wifi

If the bluetooth mouse doesn't work properly:
sudo add-apt-repository ppa:bluetooth/bluez
sudo apt install bluez

To fix it temporarily:
#!/bin/bash
sudo service bluetooth restart

If the WIFI adapter is lost after resume or hibernation:
#! /bin/bash

# Little sleep for safety (??)
sleep 5;

# Remove all of the wifi modules from the kernel
sudo modprobe -r mwifiex_pcie;
sudo modprobe -r mwifiex;
sudo modprobe -r cfg80211;

# Re-add all of the wifi modules
sudo modprobe -i cfg80211;
sudo modprobe -i mwifiex;
sudo modprobe -i mwifiex_pcie;

# Restart netmanager
sudo service NetworkManager restart;

No comments: