解决Debian系统下Wifi时不时自动断开连接的问题
时间:10-02
整理:3721RD
点击:
Dragonboard 410c刷好官方Debian镜像后使用Wifi连接Internet的时候会出现连接时不时断开的问题,而在状态栏没有显示断开,自己使用更新和安装软件命令会出现一直在下载一个包而不能继续,这个是bug,有人很早就报告过了,具体见下面链接
https://bugs.96boards.org/show_bug.cgi?id=272
解决方法一 脚本法:
首先创建一个脚本wififix.sh
另外一种更简便的解决方法是下载安装包安装,输入如下命令下载安装包
https://bugs.96boards.org/show_bug.cgi?id=272
解决方法一 脚本法:
首先创建一个脚本wififix.sh
- sudo apt-get install vim
- sudo vi wififix.sh
- #!/usr/bin/env bash
- # ARPing splash by SN
- # Network constants. assume 1 is router and 255 is broadcast
- # suggested use is, for Debian 5.11,
- # sudo ./arping.sh > arping.log &
- STARTADDR=2
- STOPADDR=254
- TIMEOUT=10000
- # timeout is in microseconds - 10,000 is 10 msec
- # x.x.x.1 is often the gateway, x.x.x.255 is broadcast
-
- # Find network address
- network=$(/sbin/ifconfig wlan | grep inet | grep -v inet6 | awk '{print $2}' | cut -d':' -f2 | cut -d'.' -f1,2,3)
- echo 'Network is '$network'.x'
- # Request IP address resolution for each host IP address between STARTADDR and STOPADDR
- for ((i=$STARTADDR;i<$STOPADDR;i++))
- do
- arping -w $TIMEOUT -c 1 $network'.'$i &
- done
- # arping for TIMEOUT sec max, one packet, to address: base address+last byte
- chmod +x wififix.sh
- sudo ./wififix.sh
另外一种更简便的解决方法是下载安装包安装,输入如下命令下载安装包
- wget http://people.linaro.org/~jorge.ramirezortiz/db410c/wifi-workaround.arm64.deb
- sudo dpkg -i wifi-workaround.arm64.deb