USB-C GigaBit adapter does not work with Zorin

Hello everyone, I have a completely strange problem. I am using an HP notebook with 2 partitions. On the Windows partition I always have problems with the wireless connection which keeps dropping out. But that is not important to me. But with Zorin OS (Z 17) I have a GigaBit connection via a USB-C adapter. This connection is terribly slow. What do I have to do to make it work? BTW: Wireless with Zorin works great!

What is your terminal output for

sudo lshw -C network

?

We can examine your driver to see if the one you are using is not up to par.

Here's the result:
*-network
Beschreibung: Kabellose Verbindung
Produkt: Realtek Semiconductor Co., Ltd.
Hersteller: Realtek Semiconductor Co., Ltd.
Physische ID: 0
Bus-Informationen: pci@0000:01:00.0
Logischer Name: wlo1
Version: 00
Seriennummer: 40:1a:58:4c:a1:ec
Breite: 64 bits
Takt: 33MHz
Fähigkeiten: pm msi pciexpress bus_master cap_list ethernet physical wireless
Konfiguration: broadcast=yes driver=rtw89_8852be driverversion=6.5.0-14-generic firmware=N/A ip=192.168.2.175 latency=0 link=yes multicast=yes wireless=IEEE 802.11
Ressourcen: irq:80 ioport:2000(Größe=256) memory:d0600000-d06fffff
*-network
Beschreibung: Ethernet interface
Physische ID: a
Bus-Informationen: usb@2:2.1
Logischer Name: enxf8e43b369923
Seriennummer: f8:e4:3b:36:99:23
Fähigkeiten: ethernet physical
Konfiguration: autonegotiation=off broadcast=yes driver=cdc_ncm driverversion=6.5.0-14-generic duplex=half firmware=CDC NCM (NO ZLP) link=no multicast=yes port=twisted pair

The cdc.ncm USB driver may look odd, but that is the USB driven Network Control Model.

Looks like we need to narrow this down in other ways that the driver...

Is the connection consistently slow or does it vary being normal or fast at times but very slow at other times?
Does it seem slow when the notebook battery is less than 50% charged?

The connection is permanently slow. Could it also be the USB adapter?

Yes, it could. Or it could be the port.
You could try changing USB ports and testing. You can use a website Speedtest for quick testing as you try different things.

I honestly would suspect the drivers first, though. Definitely try the easy physical tests.
But with network drivers, things get finicky, including the order in which things load. Since yours is using USB-C, it needs to have the network drivers loaded before the USB drivers loaded. Your above output relays the usb driver cdc_ncm only.
I believe the drivers used by Gigabit usb net adapter is ax88179_178a which is included in the kernel:

You might test rebooting, then running each of the below in terminal one at a time. Then testing network performance.

sudo rmmod ax88179_178a

sudo modprobe cdc_mbim

sudo modprobe ax88179_178a

Firstly, dear "Aravisian", many thanks for the quick answers.

Here you can see the result of the commands:
roland@roland-HP-Laptop-17-cp3xxx:~$ sudo rmmod ax88179_178a
[sudo] Passwort fĂĽr roland:
rmmod: ERROR: Module ax88179_178a is not currently loaded
roland@roland-HP-Laptop-17-cp3xxx:~$ sudo modprobe cdc_mbim
roland@roland-HP-Laptop-17-cp3xxx:~$ sudo modprobe ax88179_178a

There was a brief moment when the speed was "normal".
Unfortunately, I only have one USB-C port on which I can test.

Since it's USB, have you tried installing libusb-dev and trying it again - after a reboot?

Has helped me in the past with some weird USB issues / devices. Not a cure-all but, might help..

1 Like

This leads us to:

My belief appears to be incorrect...:stuck_out_tongue:

I will wait until after you try @PlumpKibbles suggestion to proceed...

1 Like

I have tested it. It was not successful.
The result was as follows:

sudo: libusb-dev: Befehl nicht gefunden
english
libusb-dev: Command not found

Can you check if /etc/modprobe.d/ax88179.conf is present on your system?

ls /etc/modprobe.d

Or

cat /etc/modprobe.d/ax88179.conf

Apparently the file does not exist.

cat: /etc/modprobe.d/ax88179.conf: File or directory not found

That took a while today. Like so many in Germany, I had to demonstrate against the Nazi party AfD.

Sorry for the delay.

I think we need to identify your driver module...
Please allow me some time to research this.

I was able to read this from the system
grafik

So, we are specifying the correct driver...
It should be included in the kernel.
What is your terminal output for:

sudo dpkg -s linux-modules-extra-$(uname -r) | grep Status

the output looks like this:

roland@roland-HP-Laptop-17-cp3xxx:~$ sudo dpkg -s linux-modules-extra-$(uname -r) | grep Status
[sudo] Passwort fĂĽr roland:
Status: install ok installed
roland@roland-HP-Laptop-17-cp3xxx:~$

Maybe try without the a suffix:

Now it's getting interesting:

roland@roland-HP-Laptop-17-cp3xxx:~$ sudo rmmod ax88179_178
[sudo] Passwort fĂĽr roland:
rmmod: ERROR: Module ax88179_178 is not currently loaded
roland@roland-HP-Laptop-17-cp3xxx:~$ sudo modprobe cdc_mbim
roland@roland-HP-Laptop-17-cp3xxx:~$ sudo modprobe ax88179_178
modprobe: FATAL: Module ax88179_178 not found in directory /lib/modules/6.5.0-14-generic
roland@roland-HP-Laptop-17-cp3xxx:~$

Check the /lib/modules/6.5.0-14-generic directory using your file manager to see if the ax88179_178.ko or ax88179_178a.ko file is present.
If it is, in terminal run

sudo depmod

If it is not present, try running

sudo apt install --reinstall linux-modules-extra-$(uname -r) -y

Good morning, I have now done this. This is what it looks like now:

roland@roland-HP-Laptop-17-cp3xxx:~$ sudo depmod
[sudo] Passwort fĂĽr roland:
roland@roland-HP-Laptop-17-cp3xxx:~$ sudo apt install --reinstall linux-modules-extra-$(uname -r) -y
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 1 nicht aktualisiert.
Es mĂĽssen noch 0 B von 76,5 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
(Lese Datenbank ... 292237 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../linux-modules-extra-6.5.0-14-generic_6.5.0-14.14~22.04.1_amd64.deb ...
Entpacken von linux-modules-extra-6.5.0-14-generic (6.5.0-14.14~22.04.1) ĂĽber (6.5.0-14.14~22.04.1) ...
linux-modules-extra-6.5.0-14-generic (6.5.0-14.14~22.04.1) wird eingerichtet ...
Trigger fĂĽr linux-image-6.5.0-14-generic (6.5.0-14.14~22.04.1) werden verarbeitet ...
/etc/kernel/postinst.d/dkms:

  • dkms: running auto installation service for kernel 6.5.0-14-generic
    ...done.
    /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-6.5.0-14-generic
    W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module am
    dgpu
    W: Possible missing firmware /lib/firmware/amdgpu/vega10_cap.bin for module amdg
    pu
    W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_cap.bin for mod
    ule amdgpu
    W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdg
    pu
    W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_6_ta.bin for module a
    mdgpu
    W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_6_sos.bin for module
    amdgpu
    W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module a
    mdgpu
    W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_sjt_mec2.bin for mod
    ule amdgpu
    W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_sjt_mec.bin for modu
    le amdgpu
    W: Possible missing firmware /lib/firmware/amdgpu/gc_9_4_3_rlc.bin for module am
    dgpu
    W: Possible missing firmware /lib/firmware/amdgpu/gc_9_4_3_mec.bin for module am
    dgpu
    W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_toc.bin for module a
    mdgpu
    W: Possible missing firmware /lib/firmware/amdgpu/sdma_4_4_2.bin for module amdg
    pu
    W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes1.bin for mo
    dule amdgpu
    W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for mod
    ule amdgpu
    W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdg
    pu
    W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes.bin for module a
    mdgpu
    W: Possible missing firmware /lib/firmware/amdgpu/vcn_4_0_3.bin for module amdgp
    u
    /etc/kernel/postinst.d/zz-update-grub:
    Sourcing file /etc/default/grub' Sourcing file /etc/default/grub.d/init-select.cfg'
    Generating grub configuration file ...
    Found theme: /usr/share/grub/themes/zorin/theme.txt
    Found linux image: /boot/vmlinuz-6.5.0-14-generic
    Found initrd image: /boot/initrd.img-6.5.0-14-generic
    Found linux image: /boot/vmlinuz-6.2.0-39-generic
    Found initrd image: /boot/initrd.img-6.2.0-39-generic
    Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
    Warning: os-prober will be executed to detect other bootable partitions.
    Its output will be used to detect bootable binaries on them and create new boot
    entries.
    Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
    Adding boot menu entry for UEFI Firmware Settings ...
    done