I am a very new Ubuntu user, and I'm having a bit of trouble with my wifi card. Here's my setup: I have a dual boot of Windows 10 and Ubuntu 18.04 on a 7th generation Thinkpad X1 Carbon. When I first installed Ubunutu on the machine in January 2020, it had trouble detected the wireless card. I tried to install the proper drivers but nothing worked, so a friend wrote a driver himself and got the wifi working. (Unfortunately, I do not have a copy of what he wrote.)
This past weekend, I tried to connect a bluetooth keyboard to the laptop, which seemed to interfer with the wifi connection by slowing it down dramatically. Without thinking about the fact that my friend had written some weird driver, I tried to fix the bluetooth issue by following this post: wi-fi and bluetooth not working simultaneously. Specifically, I tried
sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi bt_coex_active=N"
and then rebooted. It didn't seem to help so I removed this via
sudo rm /etc/modprobe.d/iwlwifi-opt.conf
These commands resulted in internet connection being very unstable -- the connection would be fine for a moment and then drop out and come back intermittently. After some searching, I came across this post Unstable wireless with Intel 7260 + iwlwifi after upgrade to 15.04, which seemed to match my problem almost identically. So, I tried to install the appropriate drivers from [wireless.wiki.kernel.org/en/users/drivers/iwlwifi], but it did not fix anything. However, that posting pointed me to https://forum.ubuntu-fr.org/viewtopic.php?pid=22251520#p22251520 -- when I ran
sudo apt install git build-essential
git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwif/backport-iwlwifi.git
cd backport-iwlwifi
make defconfig-iwlwifi-public
sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config
make -j4
sudo make install
cd /lib/firmware
sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/iwlwifi-9000-pu-b0-jf-b0-38.ucode
sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/iwlwifi-9260-th-b0-jf-b0-38.ucode
Ubuntu completely stopped detecting any wifi adapter at all, so now I have no idea what to do.
Here's output from commands that seem important from looking through similar posts:
Output from lspci -knn | grep Net -A3; rfkill list
:
00:14.3 Network controller [0280]: Intel Corporation Device [8086:02f0]
Subsystem: Intel Corporation Device [8086:0030]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
0: tpacpi_bluetooth_sw: Bluetooth
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
Output from dmesg | grep iwl
:
[ 5.317830] Loading modules backported from iwlwifi
[ 5.317831] iwlwifi-stack-public:master:8324:9176b151
[ 5.385415] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
[ 5.401853] iwlwifi 0000:00:14.3: Direct firmware load for iwl-dbg-cfg.ini failed with error -2
[ 5.402022] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-QuZ-a0-jf-b0-55.ucode failed with error -2
[ 5.402116] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-QuZ-a0-jf-b0-54.ucode failed with error -2
[ 5.402211] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-QuZ-a0-jf-b0-53.ucode failed with error -2
[ 5.402222] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-QuZ-a0-jf-b0-52.ucode failed with error -2
[ 5.402232] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-QuZ-a0-jf-b0-51.ucode failed with error -2
[ 5.402454] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-QuZ-a0-jf-b0-50.ucode failed with error -2
[ 5.402465] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-QuZ-a0-jf-b0-49.ucode failed with error -2
[ 5.404064] iwlwifi 0000:00:14.3: TLV_FW_FSEQ_VERSION: FSEQ Version: 43.2.23.17
[ 5.404066] iwlwifi 0000:00:14.3: Found debug destination: EXTERNAL_DRAM
[ 5.404067] iwlwifi 0000:00:14.3: Found debug configuration: 0
[ 5.404286] iwlwifi 0000:00:14.3: loaded firmware version 48.13675109.0 QuZ-a0-jf-b0-48.ucode op_mode iwlmvm
[ 5.404304] iwlwifi 0000:00:14.3: Direct firmware load for iwl-debug-yoyo.bin failed with error -2
[ 5.442441] RIP: 0010:iwl_op_mode_mvm_start+0xa8/0xb50 [iwlmvm]
[ 5.442479] _iwl_op_mode_start.isra.6+0x47/0x80 [iwlwifi]
[ 5.442489] iwl_opmode_register+0x88/0xe0 [iwlwifi]
[ 5.442510] __init_backport+0x3d/0x1000 [iwlmvm]
[ 5.442565] Modules linked in: iwlmvm(OE+) snd_soc_core aesni_intel(+) snd_compress ac97_bus snd_pcm_dmaengine btusb crypto_simd mac80211(OE) btrtl cryptd libarc4 btbcm glue_helper drm_kms_helper fjes(-) uvcvideo btintel iwlwifi(OE) intel_cstate snd_hda_intel videobuf2_vmalloc drm bluetooth videobuf2_memops snd_intel_dspcfg videobuf2_v4l2 snd_hda_codec videobuf2_common snd_hda_core snd_seq_midi videodev snd_seq_midi_event thinkpad_acpi(+) snd_hwdep processor_thermal_device i2c_algo_bit intel_lpss_pci(+) ecdh_generic cfg80211(OE) fb_sys_fops intel_lpss nvram intel_wmi_thunderbolt serio_raw wmi_bmof input_leds mc ledtrig_audio ecc snd_pcm snd_rawmidi intel_rapl_common mei_me idma64 syscopyarea compat(OE) virt_dma mei sysfillrect ucsi_acpi sysimgblt intel_soc_dts_iosf typec_ucsi snd_seq typec snd_seq_device snd_timer snd int3403_thermal soundcore int340x_thermal_zone mac_hid int3400_thermal acpi_thermal_rel acpi_pad acpi_tad sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4
[ 5.442623] RIP: 0010:iwl_op_mode_mvm_start+0xa8/0xb50 [iwlmvm]
Output from lspci -nnk | grep 0280 -A3
:
00:14.3 Network controller [0280]: Intel Corporation Device [8086:02f0]
Subsystem: Intel Corporation Device [8086:0030]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
I'd be happy to post any more output that is required to fix this problem, but I'm not sure exactly what would be useful at this point, so please let me know. Thanks for any help.
ping -c10 www.ubuntu.com
and also:dmesg | grep -e iwl -e wlp
As the result will be lengthy, paste the result here and give us the link: http://paste.ubuntu.com – chili555 Jul 28 '20 at 14:42ip addr show
have valid inet address 192.168.x.x or 172.x.x.x or some such? What does this report?ls -al /etc/resolv.conf
Please see my edit above. – chili555 Jul 28 '20 at 15:22ip addr show
does seem to give a valid inet address 10.x.x.xxx/xx – Cathy Hsu Jul 28 '20 at 15:38ls -al /etc/resolv.conf
:-rw-r--r-- 1 root root 79 Jul 28 08:11 /etc/resolv.conf
– Cathy Hsu Jul 28 '20 at 15:43