wifi老是在开机启动使用一段时间后断线,连其他接入点也....
Tofloor
poster avatar
Defans
deepin
2018-01-06 22:16
Author
我的系统在k开机后,第一次可以使用wifi,然后使用一段时间后就网络无法连接了,即使是已经处于连接状态,不能上网。
然后我切换别的接入点,连上后也是不能上网;

接着我又尝试,注销系统后再连接wifi,脸上后不能上网。

请问,我都无法排查这是什么问题了,是无线网卡驱动问题吗?这只是我怀疑最大的地方了。

Reply Favorite View the author
All Replies
avatar
wangc
deepin
2018-01-07 00:48
#1
sudo systemctl restart network-manager 重启一下网卡呢?反正我这重启网卡就好
Reply View the author
avatar
iminto
deepin
2018-01-07 01:18
#2
Reply View the author
avatar
Defans
deepin
2018-01-09 20:37
#3
https://bbs.deepin.org/user/89260  https://bbs.deepin.org/user/100725
首先感谢两位的帮助,我按步骤操作后,确实可以,只是用的时间会更长一些,之后还是会断网。

我记得在Deepin 2014时就没有碰到这种情况,还有哪位能指导下如何解决这个问题,需要提供哪些信息的?
Reply View the author
avatar
aida
deepin
2018-01-09 21:59
#4
Q13:为什么Wifi信号差或容易断连或网络模块找不到无线网络?
A13:先尝试关闭蓝牙、无线投屏试试,可以通过sudo deepin-feedback-cli命令生成日志包(tar.gz)反馈到社区,或者点击启动器【深度用户反馈】反馈问题。(出现问题后第一时间执行),如果其他发行版信号网络正常,可以协助反馈其他发行版的日志上来分析下原因。

https://bbs.deepin.org/post/146921
Reply View the author
avatar
duanyao
deepin
2018-01-09 22:04
#5
https://bbs.deepin.org/post/151276
@iminto  @wangc
首先感谢两位的帮助,我按步骤操作后,确实可以,只是用的时间会更长一些,之后还是会断 ...

网卡型号?
多半就是驱动问题。但你还是需要确认一下AP没问题,例如同时用手机连同一个AP,看上网是否稳定。
你可以 ping 你的网关,丢包率应该在 5% 以下(结束时 "x% packet loss" 一句),平均延迟应该在几毫秒,否则就会遇到网速极慢的情况。
android 手机也可以ping,装个“终端模拟器”,或者在 adb shell 里做。
Reply View the author
avatar
Defans
deepin
2018-01-10 21:24
#6
https://bbs.deepin.org/post/151276
网卡型号?
多半就是驱动问题。但你还是需要确认一下AP没问题,例如同时用手机连同一个AP,看上网是否稳 ...

$ ping 192.168.17.1

PING 192.168.17.1 (192.168.17.1) 56(84) bytes of data.
From 192.168.17.10 icmp_seq=1 Destination Host Unreachable
From 192.168.17.10 icmp_seq=2 Destination Host Unreachable
……
From 192.168.17.10 icmp_seq=92 Destination Host Unreachable
^C
--- 192.168.17.1 ping statistics ---
95 packets transmitted, 0 received, +83 errors, 100% packet loss, time 95454ms
pipe 4
++++++++++++++++++++++++++
$ ifconfig -a
enp3s0: flags=4099  mtu 1500
        ether f0:de:f1:7b:05:b5  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 1  (Local Loopback)
        RX packets 10535  bytes 2534026 (2.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 10535  bytes 2534026 (2.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp9s0: flags=4163  mtu 1500
        inet 192.168.17.10  netmask 255.255.255.0  broadcast 192.168.17.255
        inet6 fe80::1c1e:502c:8da5:fb64  prefixlen 64  scopeid 0x20
        ether ec:55:f9:c7:b6:19  txqueuelen 1000  (Ethernet)
        RX packets 90192  bytes 112227341 (107.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 92923  bytes 23852998 (22.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
++++++++++++++++++++++++++++++++++++++++
网卡是
$ lspci
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
09:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)

手机可以上网。
+++++++++++++++++++
$lspci -vvv
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
        Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- <ERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 25
        Region 0: I/O ports at 4000 [size=256]
        Region 2: Memory at e0404000 (64-bit, prefetchable) [size=4K]
        Region 4: Memory at e0400000 (64-bit, prefetchable) [size=16K]
        Capabilities:
        Kernel driver in use: r8169
        Kernel modules: r8169

09:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- <ERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 19
        Region 0: I/O ports at 2000 [size=256]
        Region 2: Memory at e0d00000 (64-bit, non-prefetchable) [size=16K]
        Capabilities:
        Kernel driver in use: rtl8192ce
        Kernel modules: rtl8192ce, wl



Reply View the author
avatar
Defans
deepin
2018-01-10 21:25
#7
https://bbs.deepin.org/post/151276
Q13:为什么Wifi信号差或容易断连或网络模块找不到无线网络?
A13:先尝试关闭蓝牙、无线投屏试试,可以通 ...

@aida相关数据见附件
Reply View the author
avatar
aida
deepin
2018-01-10 21:29
#8
Reply View the author
avatar
yanbowen
deepin
Community Developer
2018-01-10 22:17
#9
https://bbs.deepin.org/post/151276
$ ping 192.168.17.1

PING 192.168.17.1 (192.168.17.1) 56(84) bytes of data.

https://github.com/lwfinger/rtlwifi_new
试着编译安装下这个驱动,方法如下:

  1. cd /tmp
  2. sudo apt-get install build-essential linux-headers-4.9.0-deepin13-amd64 git dkms
  3. git clone http://github.com/lwfinger/rtlwifi_new.git
  4. cd /tmp/rtlwifi_new
  5. make
  6. sudo modprobe -rv rtl8821ae
  7. sudo make install
  8. sudo modprobe -v rtl8821ae
Copy the Code


可能你的 linux-headers 的版本与我的不太一致, 使用 uname -a 看下你安装的内核版本
Reply View the author
avatar
iminto
deepin
2018-01-10 23:38
#10
https://bbs.deepin.org/post/151276
@iminto  @wangc
首先感谢两位的帮助,我按步骤操作后,确实可以,只是用的时间会更长一些,之后还是会断 ...

是的,我用了10多天了,发现我那种方法确实可以改善,但无法避免断线问题,昨天就遇到了。
Reply View the author
avatar
Defans
deepin
2018-01-11 02:59
#11
https://bbs.deepin.org/post/151276
https://github.com/lwfinger/rtlwifi_new
试着编译安装下这个驱动,方法如下:

内核版本
$ uname -a
Linux kylins-PC 4.9.0-deepin13-amd64 #1 SMP PREEMPT Deepin 4.9.57-1 (2017-10-19) x86_64 GNU/Linux


+++++++++++++++++++++
$ sudo apt-get install build-essential linux-headers-4.9.0-deepin13-amd64 git dkms

正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
build-essential 已经是最新版 (12.3)。
build-essential 已设置为手动安装。
dkms 已经是最新版 (2.3-3)。
git 已经是最新版 (1:2.13.3-1)。
linux-headers-4.9.0-deepin13-amd64 已经是最新版 (4.9.57-1)。
linux-headers-4.9.0-deepin13-amd64 已设置为手动安装。
下列软件包是自动安装的并且现在不需要了:
  linux-headers-4.9.0-deepin9-amd64 linux-headers-4.9.0-deepin9-common
  linux-image-4.9.0-deepin9-amd64-unsigned
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

+++++++++++++++++
按你的操作,再最后阶段出现错误提示
$ sudo modprobe -rv rtl8821ae


$ sudo make install
make -C /lib/modules/4.9.0-deepin13-amd64/build M=/tmp/rtlwifi_new modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.0-deepin13-amd64'
  Building modules, stage 2.
  MODPOST 15 modules
make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-deepin13-amd64'
Making backups
Install rtlwifi SUCCESS
$ sudo modprobe -v rtl8821ae
insmod /lib/modules/4.9.0-deepin13-amd64/kernel/drivers/net/wireless/realtek/rtlwifi/btcoexist/btcoexist.ko
modprobe: ERROR: could not insert 'rtl8821ae': Unknown symbol in module, or unknown parameter (see dmesg)





Reply View the author
avatar
yanbowen
deepin
Community Developer
2018-01-11 17:27
#12
本帖最后由 yanbowen 于 2018-1-11 09:29 编辑
https://bbs.deepin.org/post/151276
内核版本
$ uname -a
Linux kylins-PC 4.9.0-deepin13-amd64 #1 SMP PREEMPT Deepin 4.9.57-1 (2017-10- ...

额.... 你的系统上之前用的是 rtl8192ce, 所以 modprobe 时后面跟的也应该是这个, 如果出问题把 sudo dmesg 的输出贴一下.

如果执行 make install 之后重启了系统, 也不需要执行 modprobe 操作了

   
Reply View the author
avatar
Defans
deepin
2018-01-11 20:49
#13
https://bbs.deepin.org/post/151276
额.... 你的系统上之前用的是 rtl8192ce, 所以 modprobe 时后面跟的也应该是这个, 如果出问题把 sudo dmes ...

非常感谢你的帮助。
今天试用了也没发现有断网的问题了。
我重新按rtl8192ce执行后不会出现错误,目前也没有出现断网情况。
Reply View the author