Chromecast freezes and causes WiFi to disconnect

Hi When I cast to Sony android TV using vlc on gnome manjaro, after 3-10 minutes vlc hangs, tv shows streaming circle which indicates something wrong with vlc. But the wired thing is it also looses internet connection and rebooting fixes it. Any ideas what could be the problem. Wifi pie gets a question mark in it. System is a desktop ryzen 3700x with wifi add in card that works well except when casting. Tried kernel 5.9 and no help.

This wifi disconnect happens when I chromecast using emby server as well

The problem is not vlc or emby server but something in wifi is disconnecting when casting. Updated to the newest router firmware and it’s a modern currently produced asus router.

:+1: Welcome to Manjaro! :+1:

Please read this:

and post some more information so we can see what’s really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies…

An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information… (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)

:innocent:

P.S. If you enter a bit more details in your profile, we can also see which Desktop Environment you’re using, which CPU/GPU you have, …

1 Like

Seems to be disconnecting from internet randomly even if not casting.

Here is the output:

System:
  Kernel: 5.9.0-1-MANJARO x86_64 bits: 64 compiler: N/A 
  parameters: BOOT_IMAGE=/@/boot/vmlinuz-5.9-x86_64 
  root=UUID=a1fbc5d8-24b4-4493-98c1-1a097343397c rw rootflags=subvol=@ quiet 
  apparmor=1 security=apparmor udev.log_priority=3 
  Desktop: GNOME 3.36.6 tk: GTK 3.24.23 wm: gnome-shell dm: GDM 3.36.3 
  Distro: Manjaro Linux 
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME X570-P v: Rev X.0x serial: <filter> 
  UEFI: American Megatrends v: 1405 date: 11/19/2019 
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Solar Keyboard K750 
  serial: <filter> charge: 100% rechargeable: yes status: Full 
  Device-2: hidpp_battery_1 model: Logitech Wireless Mouse M525 
  serial: <filter> charge: 100% (should be ignored) rechargeable: yes 
  status: Discharging 
Memory:
  RAM: total: 31.34 GiB used: 1.12 GiB (3.6%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Topology: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 2 
  family: 17 (23) model-id: 71 (113) stepping: N/A microcode: 8701013 
  L2 cache: 4096 KiB bogomips: 115026 
  Speed: 3589 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 
  1: 3591 2: 2054 3: 2052 4: 2113 5: 1857 6: 1855 7: 1863 8: 2787 9: 2053 
  10: 2052 11: 1862 12: 1861 13: 1863 14: 2793 15: 3594 16: 2053 
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 
  bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy 
  constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc 
  cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid 
  fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibs irperf lahf_lm lbrv lm 
  mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc 
  nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq 
  pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse 
  pse36 rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sev sha_ni skinit 
  smap smca sme smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor svm 
  svm_lock syscall tce topoext tsc tsc_scale umip v_vmsave_vmload vgif 
  vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt 
  xsaves 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] 
  vendor: Sapphire Limited driver: amdgpu v: kernel bus ID: 0c:00.0 
  chip ID: 1002:731f 
  Display: x11 server: X.org 1.20.9 compositor: gnome-shell driver: amdgpu,ati 
  unloaded: modesetting,radeon alternate: fbdev,vesa 
  resolution: <xdpyinfo missing> 
  OpenGL: renderer: AMD Radeon RX 5700 XT (NAVI10 DRM 3.39.0 5.9.0-1-MANJARO 
  LLVM 10.0.1) 
  v: 4.6 Mesa 20.1.8 direct render: Yes 
Audio:
  Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel 
  bus ID: 0c:00.1 chip ID: 1002:ab38 
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 0e:00.4 chip ID: 1022:1487 
  Sound Server: ALSA v: k5.9.0-1-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: f000 bus ID: 05:00.0 
  chip ID: 10ec:8168 
  IF: enp5s0 state: down mac: <filter> 
  Device-2: Intel Wireless 7260 driver: iwlwifi v: kernel port: f000 
  bus ID: 06:00.0 chip ID: 8086:08b1 
  IF: wlp6s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Drives:
  Local Storage: total: 8.44 TiB used: 387.20 GiB (4.5%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 PRO 1TB size: 953.87 GiB 
  block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 
  serial: <filter> rev: 1B2QEXP7 scheme: GPT 
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 970 PRO 512GB size: 476.94 GiB 
  block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 
  serial: <filter> rev: 1B2QEXP7 scheme: GPT 
  ID-3: /dev/sda vendor: Seagate model: ST4000DM004-2CV104 size: 3.64 TiB 
  block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 5425 rpm serial: <filter> rev: 0001 
  ID-4: /dev/sdb vendor: Seagate model: ST4000DM004-2CV104 size: 3.64 TiB 
  block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 5425 rpm serial: <filter> rev: 0001 
  ID-5: /dev/sdc vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB 
  block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> 
  rev: 2B6Q 
  Optical-1: /dev/sr0 vendor: PIONEER model: BD-RW BDR-206D rev: 1.56 
  dev-links: cdrom 
  Features: speed: 125 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r state: running 
RAID:
  Message: No RAID data was found. 
Partition:
  ID-1: / raw size: 476.83 GiB size: 476.83 GiB (100.00%) 
  used: 44.02 GiB (9.2%) fs: btrfs dev: /dev/nvme1n1p2 label: N/A 
  uuid: a1fbc5d8-24b4-4493-98c1-1a097343397c 
  ID-2: /boot/efi raw size: 110.0 MiB size: 108.3 MiB (98.45%) 
  used: 549 KiB (0.5%) fs: vfat dev: /dev/nvme1n1p1 label: N/A uuid: A77D-24FF 
  ID-3: /home raw size: 476.83 GiB size: 476.83 GiB (100.00%) 
  used: 44.02 GiB (9.2%) fs: btrfs dev: /dev/nvme1n1p2 label: N/A 
  uuid: a1fbc5d8-24b4-4493-98c1-1a097343397c 
  ID-4: /srv/samba/shares raw size: 3.64 TiB size: 3.64 TiB (100.00%) 
  used: 336.15 GiB (9.0%) fs: btrfs dev: /dev/sda label: N/A 
  uuid: a5474573-0f5c-4180-b8ee-ffd1b4b53724 
  ID-5: /srv/samba/shares/fast raw size: 232.89 GiB size: 232.89 GiB (100.00%) 
  used: 7.04 GiB (3.0%) fs: btrfs dev: /dev/sdc label: N/A 
  uuid: 2f4150fb-3312-4b2a-94b6-f252ed2f57c1 
Swap:
  Alert: No Swap data was found. 
Unmounted:
  ID-1: /dev/nvme0n1p1 size: 450.0 MiB fs: ntfs label: Recovery 
  uuid: 1E98BA0E98B9E505 
  ID-2: /dev/nvme0n1p2 size: 99.0 MiB fs: vfat label: N/A uuid: ECBB-479F 
  ID-3: /dev/nvme0n1p3 size: 16.0 MiB fs: <superuser/root required> label: N/A 
  uuid: N/A 
  ID-4: /dev/nvme0n1p4 size: 952.82 GiB fs: ntfs label: N/A 
  uuid: 6224BD2E24BD05D7 
  ID-5: /dev/nvme0n1p5 size: 507.0 MiB fs: ntfs label: N/A 
  uuid: CC88E35288E33A1A 
USB:
  Hub: 1-0:1 info: Full speed (or root) Hub ports: 6 rev: 2.0 speed: 480 Mb/s 
  chip ID: 1d6b:0002 
  Device-1: 1-2:2 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID 
  driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s 
  chip ID: 046d:c52b 
  Device-2: 1-3:3 info: Lab126 KFMUWI type: <vendor specific> driver: N/A 
  interfaces: 1 rev: 2.0 speed: 480 Mb/s chip ID: 1949:03c1 serial: <filter> 
  Device-3: 1-6:4 info: Intel Bluetooth wireless interface type: Bluetooth 
  driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s chip ID: 8087:07dc 
  Hub: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip ID: 1d6b:0003 
  Hub: 3-0:1 info: Full speed (or root) Hub ports: 6 rev: 2.0 speed: 480 Mb/s 
  chip ID: 1d6b:0002 
  Device-1: 3-3:2 info: Cyber Power System CP1500 AVR UPS type: HID 
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s 
  chip ID: 0764:0501 serial: <filter> 
  Device-2: 3-6:3 info: ASUSTek AURA LED Controller type: <vendor specific>
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  chip ID: 0b05:18f3 serial: <filter> 
  Hub: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip ID: 1d6b:0003 
  Hub: 5-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 speed: 480 Mb/s 
  chip ID: 1d6b:0002 
  Hub: 6-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip ID: 1d6b:0003 
  Device-1: 6-2:2 info: Realtek Card reader type: Mass Storage 
  driver: usb-storage interfaces: 1 rev: 3.0 speed: 5 Gb/s chip ID: 0bda:0326 
  serial: <filter> 
Sensors:
  System Temperatures: cpu: 42.9 C mobo: N/A gpu: amdgpu temp: 38 C 
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 0 
Info:
  Processes: 403 Uptime: 1d 9h 10m Init: systemd v: 246 Compilers: gcc: 10.2.0 
  clang: 10.0.1 Packages: pacman: 1455 lib: 410 flatpak: 0 Shell: Bash 
  v: 5.0.18 running in: gnome-terminal inxi: 3.1.05
  1. In the future, when providing code/output, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text so that the output looks like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    

    instead of like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    (as that makes our life much easier so you get helped more quickly and efficiently)
    You’re lucky I’m an editor on this site and have fixed it for you already: no need to do anything this time but other users cannot do that for you. :innocent:

  2. You’re on kernel 5.9-rc8. RC means Release Candidate and should not be your primary kernel. Please use the kernel GUI application or the mhwd-kernel CLI to install 5.8 or 5.4 LTS (Long Term Support)

  3. boot/efi raw size: 110.0 MiB size: 108.3 MiB (98.45%) is nearly out of disk space.
    This is not related to your current problem, but will give you problems in the very near future: extend that space ASAHP.

  4. /home raw size: 476.83 GiB size: 476.83 GiB (100.00%) Please free up some space now because that might be contributing to your issue.

  5. Holy moly! Your other drives are pretty full too! :grin: Buy some more disk space or delete some PR0N free up more disk space! Filling disks >90% is always a bad idea… :sob:

  6. Swap: Please allocate SQRT(RAM) = SQRT(32) = 6G of swap

  7. Disable IPV6

:+1:

P.S. Your profile still looks like an empty desert. :wink:

1 - I do apologize as I thought I was doing it correctly. I did check the link you sent about and I’m gonna follow better practice at pasting in commandline output.

2 - I have tried to the 5.4 long-term kernel and the result seems actually even worse. It seems to work for a little longer on the 5.9 version. I can definitely switch back to the long-term release but the only reason it’s on the release candidate is because it actually works slightly better.

3&4 - Funny enough when I used disks application it only shows me 2.2% used up on boot/efi. This has to do with something about the command doesn’t work very well. When I use the disks application it only showed me 9% used on /. So I don’t think running out of disk space is an issue. It might have to do with the fact that I’m using BTRFS instead of ext4. but I’m not sure about boot efi why it’s showing full but I wonder if it’s because it’s a dual boot system that has something to do with it.

5 - Drives are definitely not full and am able to copy data onto them.

6 - I definitely don’t have any swap partition on any of my other computers and I don’t seem to have any issues

7 - I tried disabling IPv6 and it made absolutely no difference.

Thanks for the help in looking at the command line out but I can definitely see why running out of disk space looks like the problem. But I’m thinking that this is to do something with the fact that I use btrfs for my filesystem instead of Ext4. I did update my user profile with more information.

This is something to do with the network and the wonder of swapping out the network card would do the trick. The network card is from an old computer and it seemed to have no issues up to this point. But then again I was never casting to the TV before.

1: No apologies needed: We live and we learn! :wink:
2: Stay on 5.9! (I was just asking!)
3&4: My mistake! Djeez, I’m a dumbass! :man_facepalming: I was looking at the disk instead of the partition section…
5: Yeah, we already determined I’m a dumbass… :grin:
6: OK. That’ll only crash your system if you allocate 100% of RAM. If you have tons of RAM for your usage, it’ll actually speed up as it’ll never swap. Just to ensure that is not the problem: could you run in a terminal the following command:

watch --interval=5 "free --human"

and give the output when it happens.
7: :sob:

Instead of swapping out the WiFi, can you cast using the Wired network and see it it happens again there? (I don’t use casting, just looking into this from a network perspective, trying to see whether the network is the problem or just the WiFi card)

If using a cable is 30 minutes work instead of 5 minutes, does this help instead of rebooting?

sudo systemctl restart NetworkManager.service

6 - This particular system has a lot of ram for what it is using. While it is running Gnome Manjaro and it’s also running a Samba server for sharing files as well as an Emby server for access to some of the media. It generally uses less than 2 GB of RAM and then it uses Libreoffice at the same time to run small spreadsheets and word documents. There is the occasional gimp use but it’s only for small files. So having 32 gigs of RAM it really never needs to use swap files.

7 - I was running out of patience so I decided to swap out the Wi-Fi card. It also will now match the Wi-Fi 6 capability of the router. The new Wi-Fi card uses an Intel chip instead of Realtek and so far after the swap it’s been actually working flawlessly. Maybe not quite flawlessly at the beginning because I forgot the new card has a different MAC address and it took me a couple hours to realize that so that I could reconfigure my router so that my Samba shares and my Emby server could be accessed. But that was just me being a dummy.

Right now I’m just monitoring to see how it works. So far it looks promising, the system will usually disconnect from the Internet within 2 to 5 minutes. Have been casting stuff for hours now and so far so good. I will eventually update in a few days with the SOLVED message if it continues to perform well. I don’t care about the occasional casting hiccup, but even no matter what I do when I cast it shouldn’t have disconnected me from the Internet. More importantly trying to reconnect using the network manager never worked, I had to totally reboot the system to get the Wi-Fi to work. Maybe the network card was actually failing since it worked on this computer flawlessly for months before it started acting up. And it worked in an old computer for years with no issues. But it was never used for video casting before, I wonder if that causes it to overheat and fail.

Thanks for all your help and hopefully this resolves the problem.

So basically the hardware was failing. I just replaced a WiFi card as well, so I should have thought about that first thing! My apologies and congratulations on fixing the issue!

:+1:

1 Like

( SOLVED) This random intermittent problem was finally solved by replacing the network card. The new network card it’s a very different card with a different chipset and even different capabilities (WiFi 6). However after about a week of running with the new card there was not a single case of disconnection from the Internet. This must’ve been a hardware failure but it’s hard to say because I’m sure the drivers for the new network card are very different as well. I didn’t have to do anything, I just plugged a new card in and it worked. The only thing I had to do was make adjustments to my router so that it would assign the server the same static IP based on the new Mac address. I’m not sure if it makes any difference but it now communicates using the WiFi 6 protocol since both the network card and a router are capable of the new protocol.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.