Xubuntu 22.04 上的 Yoga 260 - Wifi 根本无法使用

Xubuntu 22.04 上的 Yoga 260 - Wifi 根本无法使用

我这里有一台联想 Yoga 260,无法使用 Wifi。它就是这个型号:

$ sudo lshw
yoga                        
    Beschreibung: Notebook
    Produkt: 20FES3TE00 (LENOVO_MT_20FE_BU_Think_FM_ThinkPad Yoga 260)
    Hersteller: LENOVO
    Version: ThinkPad Yoga 260
    Seriennummer: MP177CUL
    Breite: 64 bits
    Fähigkeiten: smbios-2.8 dmi-2.8 smp vsyscall32
    Konfiguration: administrator_password=disabled chassis=notebook family=ThinkPad Yoga 260 power-on_password=disabled sku=LENOVO_MT_20FE_BU_Think_FM_ThinkPad Yoga 260 uuid=bd113a4c-21ee-11b2-a85c-c147ded6772c

我尝试寻找网络控制器,但看起来好像根本没有 wifi?

$ sudo lshw -c network
  *-network                 
       Beschreibung: Ethernet interface
       Produkt: Ethernet Connection I219-LM
       Hersteller: Intel Corporation
       Physische ID: 1f.6
       Bus-Informationen: pci@0000:00:1f.6
       Logischer Name: enp0s31f6
       Version: 21
       Seriennummer: fc:45:96:66:cf:a4
       Kapazität: 1Gbit/s
       Breite: 32 bits
       Takt: 33MHz
       Fähigkeiten: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       Konfiguration: autonegotiation=on broadcast=yes driver=e1000e driverversion=5.15.0-79-generic firmware=0.13-4 latency=0 link=no multicast=yes port=twisted pair
       Ressourcen: irq:125 memory:f1200000-f121ffff
  *-network
       Beschreibung: Ethernet interface
       Physische ID: c
       Bus-Informationen: usb@1:1
       Logischer Name: usb0
       Seriennummer: 8a:49:0c:5b:17:da
       Fähigkeiten: ethernet physical
       Konfiguration: autonegotiation=off broadcast=yes driver=rndis_host driverversion=5.15.0-79-generic duplex=half firmware=RNDIS device ip=192.168.111.43 link=yes multicast=yes port=twisted pair

抱歉,输出是德语的。但是,第二个网络控制器是我的手机通过 USB 网络共享连接的。但第一个控制器听起来像一个典型的以太网控制器,但 yoga 物理上没有以太网插头?!

lspci | grep Network不会返回任何内容

askubuntu无线检测脚本的输出:https://justpaste.it/6llpp

$ ifconfig -a
enp0s31f6: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether fc:45:96:66:cf:a4  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
        device interrupt 16  memory 0xf1200000-f1220000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Lokale Schleife)
        RX packets 10417  bytes 825839 (825.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 10417  bytes 825839 (825.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.111.179  netmask 255.255.255.0  broadcast 192.168.111.255
        inet6 fe80::f686:9ef1:6371:9e2b  prefixlen 64  scopeid 0x20<link>
        ether b2:ab:0d:9f:dd:cd  txqueuelen 1000  (Ethernet)
        RX packets 4317  bytes 4016788 (4.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2602  bytes 506687 (506.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

无线脚本的输出:

########## wireless info START ##########
Report from: 17 Aug 2023 09:32 CEST +0200
Booted last: 17 Aug 2023 00:00 CEST +0200
Script from: 25 Jan 2020 03:34 UTC +0000
##### release ###########################
Distributor ID:    Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:    22.04
Codename:    jammy
##### kernel ############################
Linux 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Parameters: ro, quiet, splash, vt.handoff=7
##### desktop ###########################
Xubuntu
##### lspci #############################
00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection I219-LM [8086:156f] (rev 21)
    Subsystem: Lenovo Ethernet Connection I219-LM [17aa:2233]
    Kernel driver in use: e1000e
##### lsusb #############################
Bus 002 Device 005: ID 18d1:4ee3 Google Inc. Nexus/Pixel Device (tether)
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 138a:0090 Validity Sensors, Inc. VFS7500 Touch Fingerprint Sensor
Bus 001 Device 004: ID 13d3:5248 IMC Networks Integrated Camera
Bus 001 Device 003: ID 8087:0a2b Intel Corp. Bluetooth wireless interface
Bus 001 Device 006: ID 056a:5090 Wacom Co., Ltd Pen and multitouch sensor
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
##### PCMCIA card info ##################
##### rfkill ############################
0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
1: tpacpi_bluetooth_sw: Bluetooth
    Soft blocked: no
    Hard blocked: no
##### secure boot #######################
'mokutil' is not installed (package "mokutil").
##### lsmod #############################
wmi_bmof               16384  0
wmi                    32768  2 wmi_bmof,think_lmi
##### interfaces ########################
##### ifconfig ##########################
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback <MAC address> brd <MAC address>
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether <MAC 'enp0s31f6' [IF1]> brd <MAC address>
6: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether <MAC 'usb0' [IF2]> brd <MAC address>
    inet 192.168.111.179/24 brd 192.168.111.255 scope global dynamic noprefixroute usb0
       valid_lft 3483sec preferred_lft 3483sec
    inet6 fe80::f686:9ef1:6371:9e2b/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
##### iwconfig ##########################
lo        no wireless extensions.
enp0s31f6  no wireless extensions.
usb0      no wireless extensions.
##### route #############################
default via 192.168.111.160 dev usb0 proto dhcp metric 100 
169.254.0.0/16 dev usb0 scope link metric 1000 
192.168.111.0/24 dev usb0 proto kernel scope link src 192.168.111.179 metric 100 
##### resolv.conf #######################
[777 root '/etc/resolv.conf' -> '../run/systemd/resolve/stub-resolv.conf']
nameserver 127.0.0.53
options edns0 trust-ad
search .
##### network managers ##################
Installed:
    NetworkManager
Running:
root         748       1  0 Aug15 ?        00:00:04 /usr/sbin/NetworkManager --no-daemon
##### NetworkManager info ###############
GENERAL.DEVICE:                         usb0
GENERAL.TYPE:                           ethernet
GENERAL.NM-TYPE:                        NMDeviceEthernet
GENERAL.DBUS-PATH:                      /org/freedesktop/NetworkManager/Devices/6
GENERAL.VENDOR:                         Google Inc.
GENERAL.PRODUCT:                        Nexus/Pixel Device (tether)
GENERAL.DRIVER:                         rndis_host
GENERAL.DRIVER-VERSION:                 5.15.0-79-generic
GENERAL.FIRMWARE-VERSION:               RNDIS device
GENERAL.HWADDR:                         <MAC 'usb0' [IF2]>
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.REASON:                         0 (No reason given)
GENERAL.IP4-CONNECTIVITY:               4 (full)
GENERAL.IP6-CONNECTIVITY:               4 (full)
GENERAL.UDI:                            /sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/net/usb0
GENERAL.PATH:                           pci-0000:00:14.0-usb-0:1:1.0
GENERAL.IP-IFACE:                       usb0
GENERAL.IS-SOFTWARE:                    no
GENERAL.NM-MANAGED:                     yes
GENERAL.AUTOCONNECT:                    yes
GENERAL.FIRMWARE-MISSING:               no
GENERAL.NM-PLUGIN-MISSING:              no
GENERAL.PHYS-PORT-ID:                   --
GENERAL.CONNECTION:                     Kabelgebundene Verbindung 2
GENERAL.CON-UUID:                       9bd3c4c1-439e-3253-82d6-b618bebecd1e
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/4
GENERAL.METERED:                        yes (guessed)
CAPABILITIES.CARRIER-DETECT:            yes
CAPABILITIES.SPEED:                     unknown
CAPABILITIES.IS-SOFTWARE:               no
CAPABILITIES.SRIOV:                     no
INTERFACE-FLAGS.UP:                     yes
INTERFACE-FLAGS.LOWER-UP:               yes
INTERFACE-FLAGS.CARRIER:                yes
INTERFACE-FLAGS.PROMISC:                no
WIRED-PROPERTIES.CARRIER:               on
IP4.ADDRESS[1]:                         192.168.111.179/24
IP4.GATEWAY:                            192.168.111.160
IP4.ROUTE[1]:                           dst = 192.168.111.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[2]:                           dst = 0.0.0.0/0, nh = 192.168.111.160, mt = 100
IP4.ROUTE[3]:                           dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]:                             192.168.111.160
DHCP4.OPTION[1]:                        broadcast_address = 192.168.111.255
DHCP4.OPTION[2]:                        dhcp_lease_time = 3600
DHCP4.OPTION[3]:                        dhcp_server_identifier = 192.168.111.160
DHCP4.OPTION[4]:                        domain_name_servers = 192.168.111.160
DHCP4.OPTION[5]:                        expiry = 1692261014
DHCP4.OPTION[6]:                        host_name = yoga
DHCP4.OPTION[7]:                        ip_address = 192.168.111.179
DHCP4.OPTION[8]:                        next_server = 192.168.111.160
DHCP4.OPTION[9]:                        requested_broadcast_address = 1
DHCP4.OPTION[10]:                       requested_domain_name = 1
DHCP4.OPTION[11]:                       requested_domain_name_servers = 1
DHCP4.OPTION[12]:                       requested_domain_search = 1
DHCP4.OPTION[13]:                       requested_host_name = 1
DHCP4.OPTION[14]:                       requested_interface_mtu = 1
DHCP4.OPTION[15]:                       requested_ms_classless_static_routes = 1
DHCP4.OPTION[16]:                       requested_nis_domain = 1
DHCP4.OPTION[17]:                       requested_nis_servers = 1
DHCP4.OPTION[18]:                       requested_ntp_servers = 1
DHCP4.OPTION[19]:                       requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[20]:                       requested_root_path = 1
DHCP4.OPTION[21]:                       requested_routers = 1
DHCP4.OPTION[22]:                       requested_static_routes = 1
DHCP4.OPTION[23]:                       requested_subnet_mask = 1
DHCP4.OPTION[24]:                       requested_time_offset = 1
DHCP4.OPTION[25]:                       requested_wpad = 1
DHCP4.OPTION[26]:                       routers = 192.168.111.160
DHCP4.OPTION[27]:                       subnet_mask = 255.255.255.0
IP6.ADDRESS[1]:                         fe80::f686:9ef1:6371:9e2b/64
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 1024
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/5
CONNECTIONS.AVAILABLE-CONNECTIONS[1]:   9bd3c4c1-439e-3253-82d6-b618bebecd1e | Kabelgebundene Verbindung 2
GENERAL.DEVICE:                         enp0s31f6
GENERAL.TYPE:                           ethernet
GENERAL.NM-TYPE:                        NMDeviceEthernet
GENERAL.DBUS-PATH:                      /org/freedesktop/NetworkManager/Devices/2
GENERAL.VENDOR:                         Intel Corporation
GENERAL.PRODUCT:                        Ethernet Connection I219-LM
GENERAL.DRIVER:                         e1000e
GENERAL.DRIVER-VERSION:                 5.15.0-79-generic
GENERAL.FIRMWARE-VERSION:               0.13-4
GENERAL.HWADDR:                         <MAC 'enp0s31f6' [IF1]>
GENERAL.MTU:                            1500
GENERAL.STATE:                          20 (unavailable)
GENERAL.REASON:                         2 (Device is now managed)
GENERAL.IP4-CONNECTIVITY:               1 (none)
GENERAL.IP6-CONNECTIVITY:               1 (none)
GENERAL.UDI:                            /sys/devices/pci0000:00/0000:00:1f.6/net/enp0s31f6
GENERAL.PATH:                           pci-0000:00:1f.6
GENERAL.IP-IFACE:                       --
GENERAL.IS-SOFTWARE:                    no
GENERAL.NM-MANAGED:                     yes
GENERAL.AUTOCONNECT:                    yes
GENERAL.FIRMWARE-MISSING:               no
GENERAL.NM-PLUGIN-MISSING:              no
GENERAL.PHYS-PORT-ID:                   --
GENERAL.CONNECTION:                     --
GENERAL.CON-UUID:                       --
GENERAL.CON-PATH:                       --
GENERAL.METERED:                        unknown
CAPABILITIES.CARRIER-DETECT:            yes
CAPABILITIES.SPEED:                     unknown
CAPABILITIES.IS-SOFTWARE:               no
CAPABILITIES.SRIOV:                     no
INTERFACE-FLAGS.UP:                     yes
INTERFACE-FLAGS.LOWER-UP:               no
INTERFACE-FLAGS.CARRIER:                no
INTERFACE-FLAGS.PROMISC:                no
WIRED-PROPERTIES.CARRIER:               off
IP4.GATEWAY:                            --
IP6.GATEWAY:                            --
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: --
##### NetworkManager.state ##############
[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
##### NetworkManager config #############
[[/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf]]
[connection]
wifi.powersave = 3
[[/etc/NetworkManager/NetworkManager.conf]]
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no
[[/usr/lib/NetworkManager/conf.d/10-dns-resolved.conf]]
[main]
dns=systemd-resolved
[[/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf]]
[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:gsm,except:type:cdma
[[/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf]]
[device-31-mac-addr-change]
match-device=driver:eagle_sdio,driver:wl
wifi.scan-rand-mac-address=no
##### NetworkManager profiles ###########
##### Netplan config ####################
[/etc/netplan/01-network-manager-all.yaml]
network:
  version: 2
  renderer: NetworkManager
##### iw reg get ########################
Region: Europe/Berlin (based on set time zone)
global
country 00: DFS-UNSET
    (755 - 928 @ 2), (N/A, 20), (N/A), PASSIVE-SCAN
    (2402 - 2472 @ 40), (N/A, 20), (N/A)
    (2457 - 2482 @ 20), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
    (2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, PASSIVE-SCAN
    (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
    (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
    (5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, PASSIVE-SCAN
    (5735 - 5835 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN
    (57240 - 63720 @ 2160), (N/A, 0), (N/A)
##### iwlist channels ###################
lo        no frequency information.
enp0s31f6  no frequency information.
usb0      no frequency information.
##### iwlist scan #######################
lo        Interface doesn't support scanning.
enp0s31f6  Interface doesn't support scanning.
usb0      Interface doesn't support scanning.
##### module infos ######################
##### module parameters #################
##### /etc/modules ######################
##### modprobe options ##################
[/etc/modprobe.d/amd64-microcode-blacklist.conf]
blacklist microcode
[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci
[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac
[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off
[/etc/modprobe.d/intel-microcode-blacklist.conf]
blacklist microcode
[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211
##### rc.local ##########################
grep: /etc/rc.local: No such file or directory
##### pm-utils ##########################
##### udev rules ########################
##### dmesg #############################
[12480.290761] rndis_host 1-1:1.0 usb0: unregister 'rndis_host' usb-0000:00:14.0-1, RNDIS device
[127859.375338] rndis_host 2-1:1.0 usb0: register 'rndis_host' at usb-0000:00:14.0-1, RNDIS device, <MAC address>
[127917.111312] rndis_host 2-1:1.0 usb0: unregister 'rndis_host' usb-0000:00:14.0-1, RNDIS device
[127917.467181] rndis_host 2-1:1.0 usb0: register 'rndis_host' at usb-0000:00:14.0-1, RNDIS device, <MAC address>
[127918.371410] rndis_host 2-1:1.0 usb0: unregister 'rndis_host' usb-0000:00:14.0-1, RNDIS device
[127918.716819] rndis_host 2-1:1.0 usb0: register 'rndis_host' at usb-0000:00:14.0-1, RNDIS device, <MAC 'usb0' [IF2]>
########## wireless info END ############

答案1

这一页2018 年声称无线功能正在运行。

因此你的设备要么有硬件交换机完全关闭 wifi 或不存在无线模块(因为物理上找不到 wifi)。

联想提供手册 下载。(显然需要德语版本)

执行后ip a应列出所有网络设备。无线适配器应如下所示:

4: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether xxxx  brd ff:ff:ff:ff:ff:ff
inet x.y.z/24 brd x.y.z.255 scope global dynamic noprefixroute wlp3s0
   valid_lft 842064sec preferred_lft 842064sec
inet6 ffff::ffff:ffff:ffff:ffff/64 scope link noprefixroute 
   valid_lft forever preferred_lft forever

如果您没有 HW 开关,则可能是您的 UEFI 完全屏蔽了设备,或者无线硬件不是内置的(Yoga 手册应该会告诉您在哪里查找)

答案2

切换到较新的内核可能会重新调整计算机的最新驱动程序

在下周(8 月 10 日)正式发布 Ubuntu 22.04.3 点版本之前,Canonical 已向现有 LTS 用户发布了更新的内核以供安装。它反向移植了 Ubuntu 23.04“Lunar Lobster”中使用的 Linux 6.2 内核。

通常情况下,HWE 更新会在正式版本发布后推出。这次更新来得更早,这对 LTS 用户来说是个好消息,因为这意味着他们可以享受 Linux 6.2 中的所有新功能,而不必等待 ISO(他们不需要)发布。

要在 Ubuntu 22.04 LTS 上安装新内核,只需打开软件更新程序工具,检查更新,然后安装列出的更新。重新启动时(如果安装了多个内核),请务必选择 6.2 版本。

您也可以通过运行以下命令通过命令行进行更新:

sudo apt update && sudo apt full-upgrade 或 sudo apt dist-upgrade。

相关内容