web-dev-qa-db-ja.com

Ubuntu 16.04を再起動した後、WiFiなしまたはWiFiオプションを有効にする

私のラップトップでこのWiFi問題のトラブルシューティングを手伝ってください。 Ubuntu 16.04 LTSで実行されているDell XPS L521Xがあります。私のWiFiカードはIntel Dual Band Wireless-AC 726です。私のWiFiは正常に動作しますが、ランダムなコールドスタートアップまたは再起動時に、WiFiが動作しません(WiFiアイコンが空で、[WiFiを有効にする]オプションがありません)。

ランニング Sudo service network-manager restartはそれを再び機能させますが、コンピュータを再起動するたびにそれを実行したくありません。これをトラブルシューティングする方法はありますか?

念のため、いくつかのコマンドを実行してステータスを確認すると、次のようになります。

han@XPS:~$ dmesg | grep iwl
[    3.714166] iwlwifi 0000:08:00.0: Direct firmware load for iwlwifi-7260-17.ucode failed with error -2
[    3.716989] iwlwifi 0000:08:00.0: loaded firmware version 16.242414.0 op_mode iwlmvm
[    3.753941] iwlwifi 0000:08:00.0: Detected Intel(R) Dual Band Wireless AC 7260, REV=0x144
[    3.754221] iwlwifi 0000:08:00.0: L1 Enabled - LTR Disabled
[    3.754835] iwlwifi 0000:08:00.0: L1 Enabled - LTR Disabled
[    3.977124] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[    3.978658] iwlwifi 0000:08:00.0 wlp8s0: renamed from wlan0
[    4.192308] iwlwifi 0000:08:00.0: L1 Enabled - LTR Disabled
[    4.192568] iwlwifi 0000:08:00.0: L1 Enabled - LTR Disabled
[    4.394290] iwlwifi 0000:08:00.0: L1 Enabled - LTR Disabled
[    4.394697] iwlwifi 0000:08:00.0: L1 Enabled - LTR Disabled
han@XPS:~$ modinfo iwlwifi | grep 7260
firmware:       iwlwifi-7260-13.ucode
han@XPS:~$ Sudo lshw -c network
  *-network               
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:07:00.0
       logical name: enp7s0
       version: 07
       serial: f0:1f:af:32:ce:79
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168e-3_0.0.4 03/27/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:29 ioport:2000(size=256) memory:d2404000-d2404fff memory:d2400000-d2403fff
  *-network
       description: Wireless interface
       product: Wireless 7260
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:08:00.0
       logical name: wlp8s0
       version: 73
       serial: 7c:5c:f8:68:e7:e6
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-22-generic firmware=16.242414.0 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn
       resources: irq:34 memory:d2600000-d2601fff
han@XPS:~$ Sudo service network-manager restart
han@XPS:~$ Sudo lshw -c network
  *-network               
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:07:00.0
       logical name: enp7s0
       version: 07
       serial: f0:1f:af:32:ce:79
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168e-3_0.0.4 03/27/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:29 ioport:2000(size=256) memory:d2404000-d2404fff memory:d2400000-d2403fff
  *-network
       description: Wireless interface
       product: Wireless 7260
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:08:00.0
       logical name: wlp8s0
       version: 73
       serial: 7c:5c:f8:68:e7:e6
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-22-generic firmware=16.242414.0 ip=192.168.1.9 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
       resources: irq:34 memory:d2600000-d2601fff

前もって感謝します!

2
Han

ここにあなたが望む結果を達成するための素早くハックな方法があります。 ~/.bashrcファイルをテキストエディタで開き、一番下までスクロールしてecho "your_password" | Sudo service network-manager restart。これは、コンピュータの電源を入れるたびに自動的に実行されます。しかし、悪い副作用は、新しいターミナルウィンドウを開くたびに実行されることです。もう1つのよりエレガントなオプションは、スクリプトを this one のようにして、起動時にのみ実行されるようにすることです。

2
Jordan Camp