UGREEN Wifi Adapter (AC1300) not woking on Linux Mint

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
enri
Level 1
Level 1
Posts: 6
Joined: Tue Mar 12, 2024 8:35 am

UGREEN Wifi Adapter (AC1300) not woking on Linux Mint

Post by enri »

I bought a new wifi adapter for my pc but it doesn't work.

Code: Select all

inxi -Fxxxzr

System:
  Kernel: 6.5.0-25-generic x86_64 bits: 64 compiler: N/A
    Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME B450M-A II v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 0310
    date: 09/01/2020
CPU:
  Info: 6-core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP smt: enabled
    arch: Zen 2 rev: 0 cache: L1: 384 KiB L2: 3 MiB L3: 32 MiB
  Speed (MHz): avg: 2406 high: 3715 min/max: 2200/4208 boost: enabled
    cores: 1: 3593 2: 2200 3: 2055 4: 2088 5: 2195 6: 2192 7: 3715 8: 2087
    9: 2200 10: 2162 11: 2200 12: 2191 bogomips: 86241
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Polaris 20 XL [Radeon RX 580 2048SP] driver: amdgpu v: kernel
    pcie: speed: 8 GT/s lanes: 16 ports: active: HDMI-A-1 empty: DP-1,DP-2
    bus-ID: 09:00.0 chip-ID: 1002:6fdf class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
    s-diag: 582mm (22.9")
  Monitor-1: HDMI-A-0 mapped: HDMI-A-1 model: Samsung LF24T35
    serial: <filter> res: 1920x1080 hz: 60 dpi: 92 size: 528x297mm (20.8x11.7")
    diag: 606mm (23.9") modes: max: 1920x1080 min: 720x400
  OpenGL: renderer: AMD Radeon RX 580 2048SP (polaris10 LLVM 15.0.7 DRM
    3.54 6.5.0-25-generic)
    v: 4.6 Mesa 23.2.1-1ubuntu3.1~22.04.2 direct render: Yes
Audio:
  Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 09:00.1 chip-ID: 1002:aaf0 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 0b:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Logitech G733 Gaming Headset type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-1:2 chip-ID: 046d:0ab5
    class-ID: 0300
  Sound Server-1: ALSA v: k6.5.0-25-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 08:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp8s0 state: down mac: <filter>
  Device-2: Realtek RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter
    type: USB driver: N/A bus-ID: 1-2:6 chip-ID: 0bda:8812 class-ID: 0000
    serial: <filter>
  IF-ID-1: enx325e1bc15e05 state: unknown speed: -1 duplex: half
    mac: <filter>
Bluetooth:
  Device-1: Samsung Galaxy series misc. (tethering mode) type: USB
    driver: rndis_host v: kernel bus-ID: 1-8:8 chip-ID: 04e8:6863
    class-ID: 0a00 serial: <filter>
Drives:
  Local Storage: total: 1.14 TiB used: 621.82 GiB (53.1%)
  ID-1: /dev/nvme0n1 vendor: Transcend model: TS256GMTE110S
    size: 238.47 GiB speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: T0609B0L temp: 42.9 C scheme: GPT
  ID-2: /dev/sda vendor: Seagate model: ST1000DM010-2EP102 size: 931.51 GiB
    speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: CC46 scheme: GPT
Partition:
  ID-1: / size: 233.18 GiB used: 151.46 GiB (65.0%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 50.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 2338
Repos:
  Packages: 2323 apt: 2308 flatpak: 15
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://packages.linuxmint.com virginia main upstream import backport
    2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 354 Uptime: 27m wakeups: 0 Memory: 15.52 GiB
  used: 2.96 GiB (19.1%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.4.0 alt: 11/12 Shell: Bash v: 5.1.16 running-in: gnome-terminal
  inxi: 3.3.13

Code: Select all

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:08:00.0
       logical name: enp8s0
       version: 15
       serial: 3c:7c:3f:26:75:6c
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.5.0-25-generic firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:24 ioport:f000(size=256) memory:fca04000-fca04fff memory:fca00000-fca03fff
  *-network
       description: Ethernet interface
       physical id: 4
       bus info: usb@1:8
       logical name: enxae2b64eb2e9e
       serial: ae:2b:64:eb:2e:9e
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=rndis_host driverversion=6.5.0-25-generic duplex=half firmware=RNDIS device ip=192.168.103.244 link=yes multicast=yes port=twisted pair

Code: Select all

lsusb

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 046d:c08b Logitech, Inc. G502 SE HERO Gaming Mouse
Bus 003 Device 002: ID 046d:c336 Logitech, Inc. Gaming Keyboard G213
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 2717:ff80 Xiaomi Inc. Mi/Redmi series (RNDIS)
Bus 001 Device 006: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter
Bus 001 Device 002: ID 046d:0ab5 Logitech, Inc. G733 Gaming Headset
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

iwconfig

lo        no wireless extensions.

enp8s0    no wireless extensions.

enx325e1bc15e05  no wireless extensions.

Code: Select all

lscpi -vnn

08:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
	Subsystem: ASUSTeK Computer Inc. PRIME B450M-A Motherboard [1043:8677]
	Flags: bus master, fast devsel, latency 0, IRQ 24, IOMMU group 17
	I/O ports at f000 [size=256]
	Memory at fca04000 (64-bit, non-prefetchable) [size=4K]
	Memory at fca00000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169
	Kernel modules: r8169

lscpi -vv
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	Subsystem: ASUSTeK Computer Inc. PRIME B450M-A Motherboard
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 24
	IOMMU group: 17
	Region 0: I/O ports at f000 [size=256]
	Region 2: Memory at fca04000 (64-bit, non-prefetchable) [size=4K]
	Region 4: Memory at fca00000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169
	Kernel modules: r8169
I tried updating the driver on driver manager and rebooted but it still doesn't work.
I also tried what I saw on other guides.

Code: Select all

sudo apt install git

git clone https://github.com/gnab/rtl8812au

cd rtl8812au

make

sudo cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless/

sudo depmod -a

sudo modprobe 8812au
Then I rebooted but it still doesn't work but I noticed nothing seemed to happen at the last 3 commands so I tried;

Code: Select all

cd rtl8812au 
sudo make dkms_install
Something did happen then I rebooted my pc but it still doesn't work.
User avatar
MiZoG
Level 8
Level 8
Posts: 2395
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: UGREEN Wifi Adapter (AC1300) not woking on Linux Mint

Post by MiZoG »

There seems to be a dedicated package in Ubuntu repos.
I would uninstall everything and start again by installing this one in your place.

sudo apt install rtl8812au-dkms, but first make sure the one you have installed already is gone from your system.

A common problem with third-party drivers for Realtek adapters is that they are not "signed" and are not compatible with "secure-boot".

Confirm current state of secure-boot:
mokutil --sb-state

Lastly, I came across strikingly different instructions on installing this driver from the very same "gnab" repo. I don't own an adapter based on this chip so follow these instructions at your own risk.
enri
Level 1
Level 1
Posts: 6
Joined: Tue Mar 12, 2024 8:35 am

Re: UGREEN Wifi Adapter (AC1300) not woking on Linux Mint

Post by enri »

MiZoG wrote: Mon Mar 18, 2024 5:58 am There seems to be a dedicated package in Ubuntu repos.
I would uninstall everything and start again by installing this one in your place.

sudo apt install rtl8812au-dkms, but first make sure the one you have installed already is gone from your system.

A common problem with third-party drivers for Realtek adapters is that they are not "signed" and are not compatible with "secure-boot".

Confirm current state of secure-boot:
mokutil --sb-state

Lastly, I came across strikingly different instructions on installing this driver from the very same "gnab" repo. I don't own an adapter based on this chip so follow these instructions at your own risk.

Code: Select all

sudo apt install rtl8812au-dkms
           
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
rtl8812au-dkms is already the newest version (4.3.8.12175.20140902+dfsg-0ubuntu17~22.04.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

mokutil --sb-state

SecureBoot disabled

sudo dkms status

8812au/4.2.3, 6.5.0-25-generic, x86_64: installed (WARNING! Diff between built and installed module!)
rtl8812au/4.3.8.12175.20140902+dfsg, 6.5.0-25-generic, x86_64: installed

sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: UGREEN Wifi Adapter (AC1300) not woking on Linux Mint

Post by sleeper12 »

Try JeremyB's solution here: viewtopic.php?p=2305110#p2305110
enri
Level 1
Level 1
Posts: 6
Joined: Tue Mar 12, 2024 8:35 am

Re: UGREEN Wifi Adapter (AC1300) not woking on Linux Mint

Post by enri »

sleeper12 wrote: Mon Mar 18, 2024 12:09 pm Try JeremyB's solution here: viewtopic.php?p=2305110#p2305110
The guide you sent me actually worked, thank you! So the driver from the driver manager and from gnab didn't work but the new one worked. I followed thir instruction to disable powersave then I installed the new driver. I used timeshift before doing this to remove the drivers I installed and there is a 8812au.ko file in the modules folder which is weird because it's not in the folder of the kernel I am using but it was gone when I used timeshift.
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: UGREEN Wifi Adapter (AC1300) not woking on Linux Mint

Post by sleeper12 »

👍 Glad that worked for you. Edit your first post & add [SOLVED] to the Subject line.

You might also check dkms status to be sure there are no other drivers there you don't need.
Post Reply

Return to “Networking”