Ubuntu 18.04 LTS 中的 WiFi 信号不佳
Posted
技术标签:
【中文标题】Ubuntu 18.04 LTS 中的 WiFi 信号不佳【英文标题】:Poor WiFi signal in Ubuntu 18.04 LTS 【发布时间】:2020-03-09 06:12:23 【问题描述】:我只是从 Windows 转到 Ubuntu。安装 Ubuntu 后,出现“未找到 WiFi 适配器”问题。我关注了一个YouTube 视频,该视频修复并帮助连接了可用的 wifi,但现在我遇到了信号不佳的问题。我也试过https://connectwww.com/how-to-solve-realtek-rtl8723be-weak-wifi-signal-problem-in-ubuntu/4625/这个答案和来自YouTube的另外两个三个答案,但没有运气。我应该怎么做才能让我的 hp 笔记本电脑信号强?
【问题讨论】:
【参考方案1】:安装 wifi 驱动程序对我有用,我已经在许多 hp 笔记本电脑上尝试过,它在那里也能正常工作。
https://github.com/kindlerprince/Wifi_Solution
statuscheck()
if [ $1 -ne 0 ]
then
echo $2
echo "Exiting...."
exit 0
fi
CURR=$(cd "$(dirname "$0")" ; pwd -P )
echo $CURR
echo -n "Enter the sudo password : "
read -s password
cmd=$(echo $password | sudo -S lshw -C network -short 2>/dev/null | grep Wireless | awk 'print $2 " " $4')
if sudo -n true ; then
echo "I got the sudo password"
else
echo "Wrong sudo password"
echo "Either replace the password in this script or give password via command line arguments"
echo "Exiting...."
exit 0
fi
#the return value is a single string having a space
#splitting by space and storing in a array
cmd=($cmd)
echo "Wifi Interface: "$cmd[0]
echo "Wifi Driver: "$cmd[1]
if [ -d "rtlwifi_new" ]
then
rm -rf rtlwifi_new
fi
git clone https://github.com/kindlerprince/rtlwifi_new.git
statuscheck $? "Failed to cloned Repository"
cd rtlwifi_new
make
statuscheck $? "Error occured in make"
sudo make install
statuscheck $? "Error occured in make"
sudo modprobe -rv $cmd[1]
sudo modprobe -v $cmd[1] ant_sel=2
sudo ip link set $cmd[0] up
sudo iw dev $cmd[0] scan
make clean
echo "Wifi Driver Installed Successfully"
【讨论】:
以上是关于Ubuntu 18.04 LTS 中的 WiFi 信号不佳的主要内容,如果未能解决你的问题,请参考以下文章
升级到 Ubuntu 18.04 LTS 的理由,大波新特性到来