-
20 votes
-
[RESOLVED] Tech support request: my game stream is lagging every five minutes
The Issue I'm streaming games from a desktop PC hardwired into my router (running Sunshine) to a laptop wirelessly (using Moonlight). It works beautifully. Except, every five minutes, the stream...
The Issue
I'm streaming games from a desktop PC hardwired into my router (running Sunshine) to a laptop wirelessly (using Moonlight). It works beautifully.
Except, every five minutes, the stream chugs: my framerate drops precipitously, and Moonlight gives me a warning telling me I should lower my bitrate. This happens for only a few seconds, before it resolves and goes back to normal.
I timed the interval between the chugs several times and got approximately 5:07 between each slowdown. It is remarkably consistent.
Because it's so consistent, I assume there's some scheduled task or something running every five minutes that's causing it to chug. Dropping the bitrate makes the chugging less noticeable, but it still happens.
Ruling Things Out
I think it's safe to rule out the idea that it's my router or the host PC.
I have a smaller 13" laptop that I used to stream to, and I just recently bought a 17" to replace it. The five-minute issue only happens on the 17", even with identical stream settings (same resolution, FPS, and bitrate).
The computers are obviously different hardware, but they're also running two different linux distros.
The 13" Laptop is running MX Linux 23.5 (KDE). This is the one that works.
inxi -Fxz
System: Kernel: 6.1.0-32-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 Desktop: KDE Plasma v: 5.27.5 Distro: MX-23.5_KDE_x64 Libretto September 15 2024 base: Debian GNU/Linux 12 (bookworm) Machine: Type: Laptop System: Dell product: Latitude 7370 v: N/A serial: <superuser required> Mobo: Dell model: 0XFY7T v: A00 serial: <superuser required> UEFI: Dell v: 1.28.3 date: 02/07/2022 Battery: ID-1: BAT0 charge: 12.6 Wh (62.1%) condition: 20.3/34.0 Wh (59.6%) volts: 8.1 min: 7.6 model: SMP DELL WY7CG58 status: charging CPU: Info: dual core model: Intel Core m5-6Y57 bits: 64 type: MT MCP arch: Skylake rev: 3 cache: L1: 128 KiB L2: 512 KiB L3: 4 MiB Speed (MHz): avg: 2496 high: 2758 min/max: 400/2800 cores: 1: 2400 2: 2758 3: 2400 4: 2429 bogomips: 11999 Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx Graphics: Device-1: Intel HD Graphics 515 vendor: Dell driver: i915 v: kernel arch: Gen-9 bus-ID: 00:02.0 Device-2: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 1-9:5 Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9 driver: X: loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 resolution: 1920x1080~60Hz API: OpenGL v: 4.6 Mesa 24.2.8-1mx23ahs renderer: Mesa Intel HD Graphics 515 (SKL GT2) direct-render: Yes Audio: Device-1: Intel Sunrise Point-LP HD Audio vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 API: ALSA v: k6.1.0-32-amd64 status: kernel-api Server-1: PipeWire v: 1.0.0 status: active Network: Device-1: Intel Wireless 8260 driver: iwlwifi v: kernel bus-ID: 6c:00.0 IF: wlan0 state: up mac: <filter> Bluetooth: Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus-ID: 1-2:2 Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 2.1 lmp-v: 4.2 RAID: Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci v: 3.0 bus-ID: 00:17.0 Drives: Local Storage: total: 238.47 GiB used: 31.99 GiB (13.4%) ID-1: /dev/sda vendor: Toshiba model: KSG60ZMV256G M.2 2280 256GB size: 238.47 GiB Partition: ID-1: / size: 232.43 GiB used: 31.47 GiB (13.5%) fs: ext4 dev: /dev/dm-0 mapped: luks-a8eaaa90-b4ba-4943-8c1d-ddace5892f40 ID-2: /boot size: 973.4 MiB used: 524.1 MiB (53.8%) fs: ext4 dev: /dev/sda2 ID-3: /boot/efi size: 252 MiB used: 274 KiB (0.1%) fs: vfat dev: /dev/sda1 Swap: ID-1: swap-1 type: file size: 3 GiB used: 3.8 MiB (0.1%) file: /swap/swap Sensors: System Temperatures: cpu: 80.0 C pch: 68.0 C mobo: 48.0 C Fan Speeds (RPM): N/A Info: Processes: 251 Uptime: 33m Memory: 7.65 GiB used: 3.56 GiB (46.6%) Init: SysVinit runlevel: 5 Compilers: gcc: 12.2.0 Packages: 2789 Shell: Bash v: 5.2.15 inxi: 3.3.26/etc/crontab
17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; } 47 6 * * 7 root test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.weekly; } 52 6 1 * * root test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.monthly; }The 17" Laptop is running Linux Mint 22.1 (Cinnamon). This is the one that has the five minute chugs.
inxi -Fxz
System: Kernel: 6.8.0-58-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0 Desktop: Cinnamon v: 6.4.8 Distro: Linux Mint 22.1 Xia base: Ubuntu 24.04 noble Machine: Type: Laptop System: Dell product: Inspiron 7773 v: N/A serial: <superuser required> Mobo: Dell model: 0R58C3 v: A00 serial: <superuser required> UEFI: Dell v: 1.19.0 date: 12/15/2021 Battery: ID-1: BAT0 charge: 34.9 Wh (97.5%) condition: 35.8/56.0 Wh (63.9%) volts: 16.0 min: 15.2 model: Samsung SDI DELL W7NKD7B status: discharging CPU: Info: quad core model: Intel Core i7-8550U bits: 64 type: MT MCP arch: Coffee Lake rev: A cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB Speed (MHz): avg: 658 high: 867 min/max: 400/4000 cores: 1: 400 2: 800 3: 400 4: 400 5: 800 6: 800 7: 867 8: 800 bogomips: 31999 Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx Graphics: Device-1: Intel UHD Graphics 620 vendor: Dell driver: i915 v: kernel arch: Gen-9.5 bus-ID: 00:02.0 Device-2: NVIDIA GP108M [GeForce MX150] vendor: Dell driver: nvidia v: 550.120 arch: Maxwell bus-ID: 01:00.0 Device-3: Realtek Integrated_Webcam_HD driver: uvcvideo type: USB bus-ID: 1-5:2 Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X: loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa dri: iris gpu: i915 resolution: 1920x1080~60Hz API: EGL v: 1.5 drivers: iris,nvidia,swrast platforms: active: gbm,x11,surfaceless,device inactive: wayland,device-2 API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.2.8-1ubuntu1~24.04.1 glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics 620 (KBL GT2) Audio: Device-1: Intel Sunrise Point-LP HD Audio vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 API: ALSA v: k6.8.0-58-generic status: kernel-api Server-1: PipeWire v: 1.0.5 status: active Network: Device-1: Intel Wireless 3165 driver: iwlwifi v: kernel bus-ID: 02:00.0 IF: wlp2s0 state: up mac: <filter> Bluetooth: Device-1: Intel Bluetooth wireless interface driver: btusb v: 0.8 type: USB bus-ID: 1-7:3 Report: hciconfig ID: hci0 rfk-id: 4 state: up address: <filter> bt-v: 4.2 lmp-v: 8 Drives: Local Storage: total: 238.47 GiB used: 36.5 GiB (15.3%) ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB256HBHQ-000H1 size: 238.47 GiB temp: 25.9 C Partition: ID-1: / size: 229.63 GiB used: 36.21 GiB (15.8%) fs: ext4 dev: /dev/dm-1 mapped: vgmint-root ID-2: /boot size: 1.61 GiB used: 291.7 MiB (17.7%) fs: ext4 dev: /dev/nvme0n1p2 ID-3: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/nvme0n1p1 Swap: ID-1: swap-1 type: partition size: 1.91 GiB used: 0 KiB (0.0%) dev: /dev/dm-2 mapped: vgmint-swap_1 Sensors: System Temperatures: cpu: 30.0 C pch: 32.5 C mobo: N/A Fan Speeds (rpm): N/A Info: Memory: total: 16 GiB available: 15.36 GiB used: 1.82 GiB (11.9%) Processes: 338 Uptime: 2h 38m Init: systemd target: graphical (5) Packages: 1996 Compilers: gcc: 13.3.0 Shell: Bash v: 5.2.21 inxi: 3.3.34/etc/crontab
17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; } 47 6 * * 7 root test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.weekly; } 52 6 1 * * root test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.monthly; }
Help Request
Anyone have any ideas for tracking down what might be causing this? I was going to just wipe the machine and replace Linux Mint with MX Linux to rule that out, but I figured I'd ask here before doing that, especially because it could be the hardware and not the distro that's causing the issue.
20 votes -
Trying to fully ditch Windows for streaming. So close, but this audio issue is breaking me.
Okay, I’ve been grinding through the process of replacing Windows 10 in my Twitch streaming setup with Pop!_OS. I’ve got OBS dialed in, my old NVIDIA card is holding it together surprisingly well,...
Okay, I’ve been grinding through the process of replacing Windows 10 in my Twitch streaming setup with Pop!_OS. I’ve got OBS dialed in, my old NVIDIA card is holding it together surprisingly well, and video performance is right where I need it.
But the audio. Is. Destroying. Me.
It’s this horrible crunchy, crushed mess when I stream from Linux. Same exact hardware, same OBS scene setup. On Windows 10 it’s crystal clear. I’m pulling audio from my mixer and theres no “Line In” I can see. Something in the Linux chain is mangling it.
Here’s a side-by-side if you want to hear the pain:
Pop!_OS (crushed audio): https://youtu.be/wQUVlufAQs8?si=RlGH8Z90dK0X9KhA
Windows 10 (clean audio): https://youtu.be/hbJzIHzg_ek?si=ThiZpbBgTk89qL2p
Sample rates seem to match, nothing obvious is clipping. I’m out of ideas and running on pure stubbornness at this point.
Would love to hear from anyone who’s made Linux work in a similar setup. Tips, gotchas, weird fixes. Whatever you've got. I'm so close to fully escaping Windows here. Grrr.
For reference, here’s how I got my Pop!_OS setup working so far (OBS + NVIDIA NVENC + GTX 960):
https://doubledropdown.com/abdoanmes/2025/ditching-windows-setting-up-obs-with-nvidia-nvenc-on-linux-pop_os-gtx-960/29 votes -
Arch Linux to switch from Redis to Valkey
21 votes -
Artificial incompatibility - a rant (Dell notebook)
As per title this is inspired by my recent problems with a Latitude 7320 notebook. I can't use my desktop right now and so wanted some cheaper nb for normal usage and eventually settled on this...
As per title this is inspired by my recent problems with a Latitude 7320 notebook.
I can't use my desktop right now and so wanted some cheaper nb for normal usage and eventually settled on this model due to being able to get it at an acceptable ratio of price to age and seeing it as compatible on Ubuntu, not noticing the disclaimer until later.
The problems started right after installing Fedora KDE - the nb was running at absolutely abysmal performance and this problem affects several models.
Running passmark I've got above 2000 on cpu, on Windows I had 11000. The cpu was throttling to 1500Mhz and lower for no reason. Switching a BIOS setting of power management to "ultra performance" got me to twice the score.
Eventually using throttled from github for various Lenovo and Dell models and thermald I was able to get to twice that again, still a fifth less than on Windows. Also the repo has potential of security concerns due to how it works, also potential to just stop working due to them later.
Mainly I'm posting this to just say that there is zero legitimate technical reason why this should happen, it works on Windows and on Dell tampered Ubuntu images. The hw is fine but for some reason someone somewhere decided to artificially limit the hw for whatever reason.
Right now I am still indecided if I should write off the several hours I've spent on this and return the machine to play the dice with some other model.
Edit 5.4.: it turns out I was not using the throttled package correctly and now have roughly equivalent performace in Linux as in Windows up from the 4/5 or so after all the other workarounds. All of the points still apply though. I also heartily recommend s-tui as a nice utility for cpu monitoring and stress test.
14 votes -
Bash-it: a collection of community Bash commands and scripts (and a shameless ripoff of oh-my-zsh)
11 votes -
Bats: Bash automated testing system for verifying that the UNIX programs you write behave as expected
8 votes -
Writing a Bash builtin in C to parse INI configs
8 votes -
Are you tech-savvy enough?
27 votes -
Asahi Linux (eli5: Linux for Macbooks) progress report: Linux 6.14, microphone support, Fedora Asahi and many more
11 votes -
kalua: an OpenWrt extension for building large mesh-networks
8 votes -
bashdb: a gdb-like debugger for Bash
10 votes -
How to write idempotent Bash scripts
7 votes -
Post Apocalyptic Computing: Or, the hundred year computer
15 votes -
Pure Bash bible: a collection of pure Bash alternatives to external processes
13 votes -
ShellCheck: a static analysis tool for shell scripts
25 votes -
Shellharden: a tool to semi-automate the rewriting of scripts to ShellCheck conformance
7 votes -
x86 assembler in Bash
15 votes -
FireHOL: an iptables stateful packet filtering firewall for humans
4 votes -
The future is Niri
53 votes -
EasyBashGUI: a library of Bash functions to simplify adding GUIs to scripts
17 votes -
Amber: a high-level programming language that compiles to Bash
11 votes -
shite: the little hot-reloadin' static site generator from shell (assumes Bash 4.4+)
22 votes -
pass: the standard u̴n̴i̴x̴ Bash password manager
17 votes -
xz/liblzma: Bash-stage obfuscation explained
9 votes -
Bashible: an Ansible-like deployment and automation tool written in Bash
7 votes -
Steam Tinker Launch: a GUI Bash script for configuring custom launch options and companion programs for Steam games
9 votes -
pseudo3d: a raycaster in Bash
12 votes -
The history of S.u.S.E.
7 votes -
Bash Line Editor: a line editor written in pure Bash with syntax highlighting, auto suggestions, vim modes, etc
11 votes -
SiFive HiFive Premier P550 RISC-V (on Linux)
4 votes -
Yoda: a compiler that translates Forth code into Bash functions
12 votes -
HTTP.sh: a web framework written entirely in Bash
20 votes -
ctypes.sh: a Bash plugin that provides a foreign function interface directly in your shell
10 votes -
Ba-Bash-ka: a native Clojure interpreter for scripting, designed to leverage Clojure in place of Bash
10 votes -
UnleashedRecomp: An unofficial PC port of the Xbox 360 version of Sonic Unleashed
7 votes -
A Slack clone in 5 lines of Bash
20 votes -
My thoughts on writing a Minecraft server from scratch (in Bash)
25 votes -
Some surprising code execution sources in Bash
11 votes -
Today I learned that Bash has hashmaps
23 votes -
nb: a command-line and local web note-taking, bookmarking, archiving, and knowledge base application, written in 119,172 lines of Bash
16 votes -
OpenGL bindings for Bash
21 votes -
Bashly: A command-line application (written in Ruby) that declaratively generates feature-rich Bash scripts
20 votes -
Bash++: Bash with classes
13 votes -
Linus Torvalds weighs in on the Rust for Linux controversy
51 votes -
Linux running on an NES within Animal Crossing
21 votes -
Seeking suggestions for Windows virtual desktop (for Photoshop schoolwork)
Hi Tildes community, I'm seeking your suggestions for spinning up Windows virtual desktop. Allow me to set the context... My offspring is in second semester of their first year of university, and...
Hi Tildes community,
I'm seeking your suggestions for spinning up Windows virtual desktop.
Allow me to set the context...
My offspring is in second semester of their first year of university, and needs to use Adobe Photoshop for one of their classes this semester. They don't use a regular laptop, and have been doing quite well at uni. with their beefy Ipad. While they have used photoshop so far on their ipad, there are some growing pains. Of course, they have access to super beefy desktop Apple Macs at their school's computer lab, but its a pain to get usage of them for a few reasons. At home, all my machines are linux except for my partner's which is an old clunker Windows laptop - which i am in progress of migrating themn away from that Windows machine towards linux laptop...Hence, I don't really have a solid, modern enough machine for my offspring to load Photoshop onto.Then, I thought, hey, maybe i can spin up some Windows virtual desktop somewhere for my offspring to use photoshop on...Its only needed for about 10 or 12 weeks remaining this semester...and they only need to use it once per week for each week's assignments. I feel like as long as the virtual windows machine is beefy enough to suppoort photoshop workloads, it can get them through the semester...and then in summer i can decide if I need to buy them an actual laptop (like an Apple laptop, etc.).
So, may i ask of you dear Tildes community members...Does my approach make sense (of trying to use a windows virt. desktop)? And, if so, are there any recommendations for which provider to use, and how to spin these up? Like, should i try something via AWS or Google Cloud or Azure? Or, should i not even consider this virtual windows approach? I'm open to hearing any/a ll recommendations. If you have links to share for me to research, or if you actually wrote your own blog post on similar topic for example, i'd love to hear it! Thanks in advance!!
Edit: 2025-02-24 UPDATE: Wanted to update folks on where i am on this...After reviewing these comments, researching some more both online and offline, etc...I arrived at the decision of biting the bullet and just buying my kid an Apple Macbook laptop. I want to thank you all for all your greet feedback and suggestions! Thanks so much Tildes community!!!
15 votes -
Resigning as Asahi Linux project lead
38 votes -
Evolving our middleware strategy
9 votes -
Using Tails when your world doesn't feel safe anymore
31 votes