2026年8月30日日曜日

UbuntuのWiFi子機を外付け

■概要
ノートPCのディスプレイが壊れたので、外して本体だけ使おうとしたらディスプレイ内にWiFiのアンテナが貼ってあった。
アンテナを本体内に移設したが結局通信できず。
UbuntuのWiFi子機を外付けした。

■やること
・ドライバのインストール
 https://github.com/shenmintao/aic8800d80

・BIOSの管理者パスワードの設定
・セキュアブートの無効化

・ToDo
 張さんのドライバでだめだったら、メーカーのを使う
 https://www.support.ugreen.com/download-center/CM763

・作業後
~$ nmcli device status
DEVICE                   TYPE      STATE                   CONNECTION      
wlx6c1ff7ea75ef          wifi      connected               camp-moriya-1 1 
lo                       loopback  connected (externally)  lo              
p2p-dev-wlx6c1ff7ea75ef  wifi-p2p  disconnected            --              
enp0s25                  ethernet  unavailable             --              

~$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether e0:18:77:02:47:e9 brd ff:ff:ff:ff:ff:ff
3: wlx6c1ff7ea75ef: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 6c:1f:f7:ea:75:ef brd ff:ff:ff:ff:ff:ff

~$ nmcli connection show --active
NAME             UUID                                  TYPE      DEVICE          
camp-moriya-1 1  ce5f4132-88cb-4e27-be17-601fae02ed15  wifi      wlx6c1ff7ea75ef 
lo               7d147f73-e896-4a8b-9a3b-1a4771aeb25d  loopback  lo              

~$ nmcli device status
DEVICE                   TYPE      STATE                   CONNECTION      
wlx6c1ff7ea75ef          wifi      connected               camp-moriya-1 1 
lo                       loopback  connected (externally)  lo              
p2p-dev-wlx6c1ff7ea75ef  wifi-p2p  disconnected            --              
enp0s25                  ethernet  unavailable             --              

~$ lshw -C network
WARNING: you should run this program as super-user.
  *-network                 
       description: Ethernet interface
       product: 82579V Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 19
       bus info: pci@0000:00:19.0
       logical name: enp0s25
       version: 04
       serial: e0:18:77:02:47:e9
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=7.0.0-30-generic firmware=0.13-4 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:27 memory:f0c00000-f0c1ffff memory:f0c3b000-f0c3bfff ioport:3080(size=32)
  *-network
       description: Wireless interface
       physical id: e
       logical name: wlx6c1ff7ea75ef
       serial: 6c:1f:f7:ea:75:ef
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=usb driverversion=7.0.0-30-generic ip=192.168.0.59 multicast=yes wireless=IEEE 802.11ax
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.

・作業前(参考)
~$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether e0:18:77:02:47:e9 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
    link/ether 40:25:c2:f3:81:d4 brd ff:ff:ff:ff:ff:ff

~$ nmcli connection show --active
NAME           UUID                                  TYPE      DEVICE 
camp-moriya-1  33bdc885-65ed-443f-abbb-002968fba49c  wifi      wlp2s0 
lo             4e5ce714-0ce0-4919-ae22-206c18ebcf63  loopback  lo     

~$ lshw -C network
WARNING: you should run this program as super-user.
  *-network                 
       description: Ethernet interface
       product: 82579V Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 19
       bus info: pci@0000:00:19.0
       logical name: enp0s25    ※こっちは有線
       version: 04
       serial: e0:18:77:02:47:e9
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=7.0.0-30-generic firmware=0.13-4 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:27 memory:f0d00000-f0d1ffff memory:f0d3b000-f0d3bfff ioport:3080(size=32)
  *-network
       description: Wireless interface
       product: Centrino Wireless-N + WiMAX 6150
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0    ※こっちがアンテナがディスプレイのWiFi
       version: 5f
       serial: 40:25:c2:f3:81:d4
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=7.0.0-30-generic firmware=41.28.5.1 build 33926 6050-5.uc ip=192.168.0.50 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:29 memory:f0c00000-f0c01fff
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.