关于安装Fcitx输入法
关于 Ubuntu 上时不时 SSID 消失的问题(二)

关于 Ubuntu 上时不时 SSID 消失的问题

violet posted @ Dec 13, 2016 10:13:23 AM in 胡扯 with tags linux ubuntu , 16121 阅读

久仰这个 bug 啊,自从李先生吃上了 Ubuntu 16.04 之后我就听闻了这个 bug,在 suspend 几次之后就会出现 SSID 扫不到的事。入职这边之后的确接触了很长时间 Ubuntu,然后碰到了这个 bug,复现率不算特别高,但是也经常出现烦人。偶尔逮到一次,于是来看看到底是怎么回事。

首先只能看到的是 SSID 扫不到了,先看看 NetworkManager 的状态,是 active 的,那问题不在 NetworkManager 这里。

那难道是驱动嗝屁了?用 dmesg 搜索了一下驱动相关的信息,倒是有报错,我最新的 firmware 是21的,跟我要22和23的,我就顺势装上了23和24的,过了一会再看,跟我要25和26的……那看来不是驱动的问题……

别人问了一句说用 iwlist scan 能不能扫出 SSID 呢,我试了一下,是不能的,这倒是提醒了我,NetworkManager 一般是读 wpasupplicant 提供的结果,那我用 wpa_cli 来扫扫看,然后发现 wpa_cli 连不上 wpasupplicant,ps 看了一眼,wpasupplicant 根本没起来,那自然扫不到 SSID 咯,问题找到。用 systemctl 看看 wpasupplicant 到底咋了。

● wpa_supplicant.service - WPA supplicant
   Loaded: loaded (/lib/systemd/system/wpa_supplicant.service; disabled; vendor preset: enabled)
   Active: inactive (dead)

Dec 12 04:14:11 ubuntu-desktop wpa_supplicant[2882]: Successfully initialized wpa_supplicant
Dec 12 04:14:11 ubuntu-desktop systemd[1]: Started WPA supplicant.
Dec 12 04:14:11 ubuntu-desktop wpa_supplicant[2882]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
Dec 12 04:14:11 ubuntu-desktop wpa_supplicant[2882]: dbus: Failed to construct signal
Dec 12 04:14:11 ubuntu-desktop wpa_supplicant[2882]: Could not read interface p2p-dev-wlp4s0 flags: No such device
Dec 12 04:15:56 u systemd[1]: Stopping WPA supplicant...
Dec 12 04:15:56 u wpa_supplicant[2882]: nl80211: deinit ifname=p2p-dev-wlp4s0 disabled_11b_rates=0
Dec 12 04:15:56 u wpa_supplicant[2882]: p2p-dev-wlp4s0: CTRL-EVENT-TERMINATING
Dec 12 04:15:56 u wpa_supplicant[2882]: nl80211: deinit ifname=wlp4s0 disabled_11b_rates=0
Dec 12 04:15:56 u systemd[1]: Stopped WPA supplicant.

可以很清楚地看到有这样一句

Could not read interface p2p-dev-wlp4s0 flags: No such device

看来就是这个问题了,以这句为关键字搜索了一下,看到 Arch 的 BBS 上在15年4月就有讨论的帖子,读了一下,是 wpasupplicant 从2.3升级到2.4的时候引入了一个关于 p2p interface 的 patch,wpasupplicant 不能很好地处理这个问题,所以就时不时嗝屁了。继续翻了一下 Arch 那边的 bug 追踪,他们在 wpasupplicant 2.5 的时候修复了这个问题。我翻了一下 Ubuntu 这边的源,16.04 上还是 2.4,16.10 上也应该是 2.4(如果我找对的话)。

问题是找到了,就看修不修咯╮( ̄▽ ̄)╭

问题的暂时解决办法放最后,其实能看懂的已经知道解决办法了,只要触发重启 wpasupplicant 即可。

$ sudo systemctl restart wpa_supplicant
$ sudo systemctl restart NetworkManager

或者干脆重启机器╮( ̄▽ ̄)╭

Avatar_small
依云 说:
Dec 14, 2016 10:23:35 AM

原来是这个问题啊……我遇到过一次,然后系统更新了~

jio4gvoice 说:
Aug 16, 2017 11:45:18 AM

Greetings! Very helpful advice within this post! It is the little changes that will make the most important changes. Thanks a lot for sharing!

Dehradun Escorts Ser 说:
Sep 22, 2021 11:20:05 AM

Absolutely Brilliant Post and lots of new important things have been discussed about the coding techniques.

What Is Lean Amount 说:
Aug 07, 2022 06:38:39 PM

Banking is now the majority adopted criteria by every individual and businessmen for their financial transaction. Every amount which is being credit or debit form an account is firmly listed in the Bank account statement of that particular customer. What Is Lean Amount In some cases, the statement brings the fund which started as Lien Amount. The Amount is not among any of the credit or debit from the account holder, but it is something else form the Banker. This not restricted to private banks or government banks, but it is with all banks to have the Lien column added. Here in this article 25penny will come across the details of the Lien Amount.

Meghalaya Board Ques 说:
Sep 03, 2022 10:34:22 PM

Meghalaya Board of School Education (MBOSE) Responsible For Conducting SSLC Annual Examination Starting Date Wednesday 4th March, 2023, End of Exam Monday 16 March 2023, Students Download MBOSE SSLC Model Paper 2023 at Official Website Only, Meghalaya Board Question Paper MBOSE SSLC Model Question Paper 2023 now available on the official website, Meghalaya Board has been Announced SSLC Public Examination Time Table 2023 soon, Students can Download MBOSE SSLC Previous Question Paper & Solved Question paper which is helpful in your study.

हिन्दी-सवाल-पत्रों.c 说:
Apr 30, 2023 03:22:31 PM

Hindi Model Question Papers Bihar School 10th Exam Board BSEB, Bihar Board 10th Class Model Papers 2023 Matric Exam Pattern, BSEB Patna Board Matric 10th Model Papers 2023 Sample Questions, Bihar Board 10th Model Papers 2023 Download, हिन्दी-सवाल-पत्रों.com BSEB Matric Bihar matric model paper 2023 bseb 10th sample paper 2023, bihar board 10th model paper 2023 pdf, bihar board 10th class model test paper 2023, bseb matric previous sample paper class 10th bihar board model question paper, bseb matric model question paper 2023.

pavzi.com 说:
Jan 23, 2024 05:06:24 PM

Pavzi.com is a startup by passionate webmasters and bloggers who have a passion for providing engaging content that is accurate, interesting, and worthy to read. pavzi.com We are more like a web community where you can find different information, resources, and topics on day-to-day incidents or news. We provide you with the finest web content on every topic possible with the help of the editorial and content team.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter