tenho um problema com meu WIFI
funciona bem após reiniciar por 8 a 10 minutos, mas depois começa a reconectar, perde a conexão e assim por diante
esse problema começou após a atualização do kernel no meu antigo Ubuntu 22.04.5 LTS e descobri que meu WIFI funcionava de forma estável apenas no kernel 5.15.0-76-generic, então o usei
quando atualizei para o Ubuntu 24.04.1 LTS, esperava que isso resolvesse meu problema, mas mesmo a última atualização do kernel 6.8.0-48-generic não ajudou
Eu tentei copiar a pasta do driver do kernel 5.15.0-76-generic para o novo kernel (ChatGPT ajudou), então tentei surfacego-wifi - sem resultado
agora tenho duas opções
- trabalhar com cabo ethernet
- mudar para o sistema operacional/kernel antigo
mas eu gosto do novo Ubuntu 24, então por favor me ajude a consertar esse problema
aqui estão alguns detalhes
meus parâmetros de sistema:
- ASUS N551JW
- CPU Intel® Core™ i7-4720HQ @ 2,60 GHz × 8
- NVIDIA GeForce GTX 960M/PCIe/SSE2
- RAM 16Gb
$ sudo dmesg | grep ath
[ 2.174899] systemd[1]: /etc/systemd/system/anydesk.service:9: PIDFile= references a path below legacy directory /var/run/, updating /var/run/anydesk.pid → /run/anydesk.pid; please update the unit file accordingly.
[ 2.250017] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[ 2.268147] systemd[1]: systemd-fsck-root.service - File System Check on Root Device was skipped because of an unmet condition check (ConditionPathExists=!/run/initramfs/fsck-root).
[ 3.867601] usbcore: registered new interface driver ath3k
[ 3.879154] ath: phy0: Set parameters for CUS198
[ 3.879160] ath: phy0: Set BT/WLAN RX diversity capability
[ 3.887376] ath: phy0: Enable LNA combining
[ 3.889668] ath: phy0: ASPM enabled: 0x42
[ 3.889674] ath: EEPROM regdomain: 0x60
[ 3.889676] ath: EEPROM indicates we should expect a direct regpair map
[ 3.889678] ath: Country alpha2 being used: 00
[ 3.889679] ath: Regpair used: 0x60
[ 3.903803] ath9k 0000:04:00.0 wlp4s0: renamed from wlan0
[ 277.758788] audit: type=1107 audit(1730666769.211:210): pid=1383 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/timedate1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.125" pid=4251 label="snap.firefox.firefox" peer_pid=4409 peer_label="unconfined"
[ 277.759595] audit: type=1107 audit(1730666769.212:211): pid=1383 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/timedate1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.125" pid=4251 label="snap.firefox.firefox" peer_pid=4409 peer_label="unconfined"
[ 336.001886] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 340.840702] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 346.176497] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 348.321570] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 353.720426] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x0000610c
[ 360.759970] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 368.127641] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 371.303975] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 376.959554] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 381.741208] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 385.699023] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 391.814775] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 397.871560] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 401.798424] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 405.852222] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 412.909632] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 419.166673] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 423.829560] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x0000610c
[ 430.707407] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 436.907634] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 440.868146] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 447.731070] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 454.801735] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x0000610e
$ lspci -knn | grep Net -A2
04:00.0 Network controller [0280]: Qualcomm Atheros AR9485 Wireless Network Adapter [168c:0032] (rev 01)
Subsystem: AzureWave AR9485 Wireless Network Adapter [1a3b:2126]
Kernel driver in use: ath9k
Kernel modules: ath9k
$ uname -a
Linux N551JW 6.8.0-48-generic #48-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 14:04:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ sudo lshw -C network
*-network
description: Wireless interface
product: AR9485 Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:04:00.0
logical name: wlp4s0
version: 01
serial: 28:c2:dd:d8:3f:c7
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=6.8.0-48-generic firmware=N/A ip=192.168.1.2 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:18 memory:f7900000-f797ffff memory:f7980000-f798ffff
*-network
description: Ethernet interface
product: RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0.1
bus info: pci@0000:05:00.1
logical name: enp5s0f1
version: 12
serial: 08:62:66:b9:00:58
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd 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.8.0-48-generic firmware=rtl8411-2_0.0.1 07/08/13 latency=0 link=no multicast=yes port=twisted pair
resources: irq:19 ioport:d000(size=256) memory:f7814000-f7814fff memory:f7810000-f7813fff
$ lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.1 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #2 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM86 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
04:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
05:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 12)
$ iwconfig
lo no wireless extensions.
enp5s0f1 no wireless extensions.
wlp4s0 IEEE 802.11 ESSID:"My_SSID"
Mode:Managed Frequency:2.412 GHz Access Point: 04:5E:A4:4D:92:82
Bit Rate=1 Mb/s Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-32 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:980 Invalid misc:6 Missed beacon:0
$ rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
O seguinte eu considero de alto risco, então seguir qualquer coisa é por sua conta e risco . Eu não tentei isso eu mesmo.
Uma solução é sugerida no tópico a seguir adicionando aos parâmetros do kernel
https://bbs.archlinux.org/viewtopic.php?id=230745
Também é possível
intel_iommu=igfx_off
que funcione, mas depende do hardware que você tem.Este parâmetro parece precisar ser definido como "ligado" somente ao usar recursos avançados da máquina virtual, como passagem PCI, então desabilitá-lo não deve ser um problema na maioria dos casos.
As opções são
on
off
&igfx_off
igfx_off
[Padrão Desligado] Por padrão, o gfx é mapeado como um dispositivo normal. Se um dispositivo gfx tiver uma unidade DMAR dedicada, a unidade DMAR será ignorada ao não habilitar o DMAR com esta opção. Neste caso, o dispositivo gfx usará o endereço físico para DMA.Abra um terminal gnome
Usando seu editor favorito (eu uso o vi)
sudo vi /etc/default/grub
#no terminalVá para a linha 10 (mais ou menos) Então modifique o seguinte: -
Espero que isso ajude
Para
Salve a atualização e execute o seguinte
Reinício.
Você pode confirmar suas modificações após a reinicialização executando cat /proc/cmdline e procurando pelas partes que você adicionou.
https://www.reddit.com/r/linuxhardware/comments/exovc6/where_do_i_add_intel_iommuigfx_off/