Problemas com alguns sites lentos no Ubuntu 24.04

Estou com um problema com rede no Ubuntu.
Alguns sites como Flathub e PPA estão com problemas, são extremamentes lentos. Minha conexão com a internet é de 700 mbps.

Vários outros sites funcionam bem (Snaps e pacotes do APT instalam muito rápido, mas o que vem do Flathub e algum PPA são demasiados lentos, diz que o download vai demorar dias).

Além disso, percebo lentidão em alguns sites como o de extensões do LibreOffice.
A maioria dos sites funciona bem, carrega rápido, mas alguns não.

Loguei no Windows para tentar ver se consigo acessar esses mesmos sites, e parece que sim, que estão rápidos.

Achei que era o Firefox em Snap, mas instalei o Google Chrome em .DEB e continuou com problema.

Detalhe: a conexão ocorre em 5 Ghz, se eu alterar para 2.7 ghz fica mais rápido nesses sites. Eu gostaria de usar a conexão em seu total potencial.

Também, por exemplo, o site do Flathub não carrega todas as imagens, o que indica que há uma interrupção da conexão. Outro site que funciona mal é o OpenDesktop.

Informações adicionais:
Network controller: Intel Corporation Dual Band Wireless-AC 3165 Plus Bluetooth (rev 99)
Lenovo-IdeaPad-S145-15IWL 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Então.

Fiz alguns testes.

Desativei o IPv6 pra essa rede, mas não houve melhora. Desativei o firewall do Ubuntu, mas sem melhora.

Instalei o kernel 6.14, tentei o kernel 6.0 e o problema permanece.

Fiz um pendrive com o Kubuntu 24.04 e no modo live continuou o mesmo problema.

Fiz um pendrive do PC Linux OS com o plasma e kernel 6.6, mas o problema se manifestou no modo live.

Tentei alterar o MTU da rede, mas não funcionou.

Um detalhe importante é que não tenho acesso ao roteador, somente a operadora pode mexer nele e é completamente inacessível pra mim.

Também, não posso conectar com Cabo de rede, esse notebook somente possui Wi-fi.

Penso na possibilidade de ser uma configuração que o Linux traz por padrão pra essa placa wi-fi, pois a maioria dos sites carregam rapidamente, porém alguns sites são extremamente lentos. Como falei, no Windows esses mesmos sites funcionam de boa. O MTU no Linux e Windows está em 1500, eu conferi.

Não sei o que fazer.

Fica a minha decepção se não conseguir arrumar.

Infelizmente lidar com Linux é complexo, sempre tem algum hardware que não se comporta bem. Em outro notebook, o leitor de cartão de memória só funciona em kernel 4.4

Tem que ser problema de configuração, não é possível que seja hardware pois a maior parte dos sites funcionam normalmente, e como falei no Windows estão ok e funcionando bem mesmo esses sites.

O detalhe é que estou falando do Flathub, do site de extensões do LibreOffice, Appimagehub, Pling Store e até o site do Opensuse. Parece configuração contra sites do mundo opensource. Embora o Windows navegue de boa nesses sites, o Linux que é opensource não consegue!

Detalhe, o site fast.com registra velocidade de rede maior no Linux que no Windows!

Mudou o dns?

Tente colocar 1.1.1.1 e 1.0.0.1

Qual a saída do comando?

lspci -v

É wifi ou a cabo?

Faz o teste usando um cabo cat-6 ou melhor, vc nunca vai ter velocidade maxima usando wifi por melhor que ele seja o cabo ainda é mais rapido.

Trata-se de Wifi, esse notebook não tem eth. Saída do comando lspci - v

00:00.0 Host bridge: Intel Corporation Coffee Lake HOST and DRAM Controller (rev 0c)
	Subsystem: Lenovo Coffee Lake HOST and DRAM Controller
	Flags: bus master, fast devsel, latency 0, IOMMU group 1
	Capabilities: <access denied>
	Kernel driver in use: skl_uncore

00:02.0 VGA compatible controller: Intel Corporation Whiskey Lake-U GT1 [UHD Graphics 610] (rev 02) (prog-if 00 [VGA controller])
	Subsystem: Lenovo Whiskey Lake-U GT1 [UHD Graphics 610]
	Flags: bus master, fast devsel, latency 0, IRQ 145, IOMMU group 0
	Memory at a2000000 (64-bit, non-prefetchable) [size=16M]
	Memory at b0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 4000 [size=64]
	Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: i915
	Kernel modules: i915

00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 0c)
	Subsystem: Lenovo Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
	Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 2
	Memory at a4310000 (64-bit, non-prefetchable) [size=32K]
	Capabilities: <access denied>
	Kernel driver in use: proc_thermal
	Kernel modules: processor_thermal_device_pci_legacy

00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
	Subsystem: Lenovo Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
	Flags: bus master, fast devsel, latency 0, IRQ 255, IOMMU group 3
	Memory at a4320000 (64-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>

00:12.0 Signal processing controller: Intel Corporation Cannon Point-LP Thermal Controller (rev 30)
	Subsystem: Lenovo Cannon Point-LP Thermal Controller
	Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 4
	Memory at a4321000 (64-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: intel_pch_thermal
	Kernel modules: intel_pch_thermal

00:14.0 USB controller: Intel Corporation Cannon Point-LP USB 3.1 xHCI Controller (rev 30) (prog-if 30 [XHCI])
	Subsystem: Lenovo Cannon Point-LP USB 3.1 xHCI Controller
	Flags: bus master, medium devsel, latency 0, IRQ 125, IOMMU group 5
	Memory at a4300000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci

00:14.2 RAM memory: Intel Corporation Cannon Point-LP Shared SRAM (rev 30)
	Subsystem: Lenovo Cannon Point-LP Shared SRAM
	Flags: bus master, fast devsel, latency 0, IOMMU group 5
	Memory at a431c000 (64-bit, non-prefetchable) [size=8K]
	Memory at a4322000 (64-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>

00:15.0 Serial bus controller: Intel Corporation Cannon Point-LP Serial IO I2C Controller #0 (rev 30)
	Subsystem: Lenovo Cannon Point-LP Serial IO I2C Controller
	Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 6
	Memory at 8b800000 (64-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci

00:16.0 Communication controller: Intel Corporation Cannon Point-LP MEI Controller #1 (rev 30)
	Subsystem: Lenovo Cannon Point-LP MEI Controller
	Flags: bus master, fast devsel, latency 0, IRQ 143, IOMMU group 7
	Memory at a4324000 (64-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: mei_me
	Kernel modules: mei_me

00:17.0 SATA controller: Intel Corporation Cannon Point-LP SATA Controller [AHCI Mode] (rev 30) (prog-if 01 [AHCI 1.0])
	Subsystem: Lenovo Cannon Point-LP SATA Controller [AHCI Mode]
	Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 133, IOMMU group 8
	Memory at a431e000 (32-bit, non-prefetchable) [size=8K]
	Memory at a4329000 (32-bit, non-prefetchable) [size=256]
	I/O ports at 4080 [size=8]
	I/O ports at 4088 [size=4]
	I/O ports at 4060 [size=32]
	Memory at a4328000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: ahci
	Kernel modules: ahci

00:1c.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #5 (rev f0) (prog-if 00 [Normal decode])
	Subsystem: Lenovo Cannon Point-LP PCI Express Root Port
	Flags: bus master, fast devsel, latency 0, IRQ 122, IOMMU group 9
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 3000-3fff [size=4K] [16-bit]
	Memory behind bridge: a3000000-a3ffffff [size=16M] [32-bit]
	Prefetchable memory behind bridge: 90000000-a1ffffff [size=288M] [32-bit]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1d.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #9 (rev f0) (prog-if 00 [Normal decode])
	Subsystem: Lenovo Cannon Point-LP PCI Express Root Port
	Flags: bus master, fast devsel, latency 0, IRQ 123, IOMMU group 10
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: [disabled] [16-bit]
	Memory behind bridge: a4200000-a42fffff [size=1M] [32-bit]
	Prefetchable memory behind bridge: [disabled] [64-bit]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1d.4 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #13 (rev f0) (prog-if 00 [Normal decode])
	Subsystem: Lenovo Cannon Point-LP PCI Express Root Port
	Flags: bus master, fast devsel, latency 0, IRQ 124, IOMMU group 11
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
	I/O behind bridge: [disabled] [16-bit]
	Memory behind bridge: a4100000-a41fffff [size=1M] [32-bit]
	Prefetchable memory behind bridge: [disabled] [64-bit]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1e.0 Communication controller: Intel Corporation Cannon Point-LP Serial IO UART Controller #2 (rev 30)
	Subsystem: Lenovo Cannon Point-LP Serial IO UART Controller
	Flags: bus master, fast devsel, latency 0, IRQ 20, IOMMU group 12
	Memory at 8b801000 (64-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci

00:1f.0 ISA bridge: Intel Corporation Cannon Point-LP LPC Controller (rev 30)
	Subsystem: Lenovo Cannon Point-LP LPC Controller
	Flags: bus master, medium devsel, latency 0, IOMMU group 13

00:1f.3 Audio device: Intel Corporation Cannon Point-LP High Definition Audio Controller (rev 30) (prog-if 80)
	Subsystem: Lenovo Cannon Point-LP High Definition Audio Controller
	Flags: bus master, fast devsel, latency 32, IRQ 147, IOMMU group 13
	Memory at a4318000 (64-bit, non-prefetchable) [size=16K]
	Memory at a4000000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, snd_soc_avs, snd_sof_pci_intel_cnl

00:1f.4 SMBus: Intel Corporation Cannon Point-LP SMBus Controller (rev 30)
	Subsystem: Lenovo Cannon Point-LP SMBus Controller
	Flags: medium devsel, IRQ 16, IOMMU group 13
	Memory at a4326000 (64-bit, non-prefetchable) [size=256]
	I/O ports at 4040 [size=32]
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801

00:1f.5 Serial bus controller: Intel Corporation Cannon Point-LP SPI Controller (rev 30)
	Subsystem: Lenovo Cannon Point-LP SPI Controller
	Flags: bus master, fast devsel, latency 0, IOMMU group 13
	Memory at fe010000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: intel-spi
	Kernel modules: spi_intel_pci

01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce MX110] (rev a2)
	Subsystem: Lenovo GM108M [GeForce MX110]
	Flags: bus master, fast devsel, latency 0, IRQ 146, IOMMU group 14
	Memory at a3000000 (32-bit, non-prefetchable) [size=16M]
	Memory at 90000000 (64-bit, prefetchable) [size=256M]
	Memory at a0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 3000 [size=128]
	Capabilities: <access denied>
	Kernel driver in use: nvidia
	Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

02:00.0 Network controller: Intel Corporation Dual Band Wireless-AC 3165 Plus Bluetooth (rev 99)
	Subsystem: Intel Corporation Dual Band Wireless-AC 3165
	Flags: bus master, fast devsel, latency 0, IRQ 144, IOMMU group 15
	Memory at a4200000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: <access denied>
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi

03:00.0 Non-Volatile memory controller: Solid State Storage Technology Corporation CL1-3D256-Q11 NVMe SSD M.2 (rev 03) (prog-if 02 [NVM Express])
	Subsystem: Silicon Motion, Inc. CL1-3D256-Q11 NVMe SSD M.2
	Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 16
	Memory at a4100000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: nvme
	Kernel modules: nvme

Esse notebook é somente Wi-Fi.
Fiz o teste no Windows, lá os sites que mencionei (OpenSuse, Flathub, Extensions LibreOffice) simplesmente funcionam normalmente. E não tirei o notebook de lugar.

Não é questão de velocidade, é questão que alguns sites específicos estão lentos em diversas distribuições Linux.

Li que existe a possibilidade do Linux não estar lidando muito bem com QoS, mas não tenho ideia de como manipular os pacotes que saem do notebook para o roteador não tratá-los de uma maneira que prejudique. Porém, o fato do 2ghz funcionar perfeitamente me diz que esse também não é o problema.

iwlwifi

iwlwifi is the wireless driver for Intel’s current wireless chips, such as 5100AGN, 5300AGN, and 5350AGN. See the full list of supported devices.

If you have problems connecting to networks in general or your link quality is very poor, try to disable 802.11n, and perhaps also enable software encryption:

/etc/modprobe.d/iwlwifi.conf

options iwlwifi 11n_disable=1 swcrypto=1

If you have a problem with slow uplink speed you may try disabling power saving for your wireless adapter.

If you have an 802.11ax (Wi-Fi 6) access point and have problems detecting the beacons or an unreliable connection, review Intel Article 54799.

Note: Using 11n_disable=1 will also prevent 802.11ac and only allow connection with slower protocols (802.11a in the 5GHz band or 802.11b/g in the 2.4 GHz band).

Isso faz a conexão ficar com qualidade baixa, é dizer ao driver para não usar os melhores protocolos de conexão. Enfim, não resolve o problema.

Por enquanto a solução mesmo é configurar a conexão para a banda 2.4ghz, e quando estiver a baixar algo grande, conectar no 5ghz desde que não seja num site problemático.

Eu consegui usar o comando nm-connection-editor para criar uma nova conexão que liga minha rede na frequência 2.4ghz, tornei essa uma conexão automática. A outra conexão de 5ghz, eu vou usar quando necessário e observar vantagem.

Mas vou continuar a buscar uma solução, pois não faz sentido ser um problema com o driver uma vez que a maioria dos sites funciona de forma adequada e somente alguns sites são problemáticos. Ou alguém tem uma explicação desse comportamento inadequado em alguns sites?

Slow internet speed with iwlwifi (Intel’s wireless driver) can be caused by several factors, including driver issues, Bluetooth interference, or network configurations. To troubleshoot, try refreshing your modem and router, disabling power saving modes on the WiFi card, and potentially adjusting Bluetooth coexistence settings or driver options.

Here’s a more detailed breakdown:

  1. Refresh Network Devices:
  • Restart your modem and router:

Power cycling your modem and router can reset the connection and resolve temporary issues. A brief pause (30 seconds to 1 minute) is usually sufficient for most modern routers/modems to refresh their configuration.

  • Ensure your ISP sees you as offline:

If you’re using fiber optic, your ISP may refresh your line while you’re still connected. Turning off your devices for a short time can help your ISP see you as offline, potentially refreshing the line, according to a Zorin Forum post.

  1. Disable WiFi Power Saving:
  • Check your power management scheme:

Some iwlwifi drivers have a default “balanced” power management scheme. Try switching to “active” to potentially improve performance. You can do this by adding options iwlwifi power_scheme=1 to /etc/modprobe.d/iwlwifi.conf.

  • Disable power saving entirely:

You can try disabling WiFi power saving completely using the iw dev wlan0 set power_save off command.

  1. Adjust Bluetooth Coexistence:
  • Disable Bluetooth coexistence:

If you experience slow WiFi when using Bluetooth, try adding options iwlwifi bt_coex_active=0 to /etc/modprobe.d/iwlwifi.conf. This can resolve interference issues between WiFi and Bluetooth.

  • Enable swcrypto:

For some iwlwifi modules, enabling swcrypto=1 can also help with Bluetooth coexistence, according to the Debian Wiki.

  1. Kernel Module Options:
  • Reload the driver:

You can try reloading the iwlwifi driver using sudo modprobe -r iwlwifi && sudo modprobe iwlwifi.

  • Use different kernel options:

Experiment with different kernel module options like 11n_disable=8 to see if they improve your performance.

  1. Other Potential Issues:
  • Check bandwidth availability:

Make sure you’re not exceeding your available bandwidth, which could cause slow speeds.

  • Test on other devices:

Check if the slow speeds are specific to your device or if other devices on the network also experience them. If other devices have fast speeds, the issue is likely with your device’s configuration or driver.

  • Consider other drivers:

If iwlwifi is causing persistent issues, you may need to consider using alternative drivers or even a different WiFi card.

Encontrado no google ia

Boa sorte
Veja a configuração do bluetooth