CachyOS / CachyOS/linux-cachyos
[BUG] HP Victus 15 - external display connected by HDMI port very stuttery
- Dominant language
- Shell
- Stars
- 4.5k
- Forks
- 160
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 1
Description
### Pre-flight checklist
- [x] I have searched existing issues and this is not a duplicate.
- [x] I have read the [Contributing Guidelines](https://github.com/CachyOS/linux-cachyos/blob/master/CONTRIBUTING.md).
- [x] I have verified the issue is reproducible with the latest available CachyOS kernel.
- [x] I have tried to reproduce the issue on Arch Linux's `linux` kernel.
### Upstream / vanilla kernel check
I have not tested with a vanilla/upstream kernel
### Kernel variant
linux-cachyos (EEVDF, Clang)
### System information (cachyos-bugreport.sh)
```text
https://paste.cachyos.org/p/9c836fb.log
```
### Manual system information (if cachyos-bugreport.sh is unavailable)
```text
```
### Bug description
I have a laptop, a HP Victus 15, running Cachy OS with an Intel i5-12500H & a mobile NVIDIA RTX 3050 4GB. Recently, I noticed that while my machine is running in the default Wayland session, all games running to my 60hx 1080p external monitor feels very stuttery and laggy, despite high FPS, thermals not throttling, resources aren't pushed to 100%, and good frame pacing in mangohud. Notable examples include deep rock galactic, slay the spire 2, and split fiction, all games that ran perfectly fine on the machine when it was running Windows.
Troubleshooting steps I did so far:
- Updating all packages
- Put the power mode to performance
- Re enabled suspend features after disabling it (I had some issues with the machine not waking up from sleep before, now it worked pretty consistently, although sometimes it's laggier after waking up so I'm contemplating disabling it again)
- Restore from a snapshot created before my latest system update
- Reinstall Cachy OS from scratch
- Try different proton versions (GE, hotfix, experiemental, cachy-os)
- Switching to X11 using the commands on wiki to install the missing option. The computer freaked out, lags tremendously on both built-in and external monitor. Session log out goes to a black screen and cannot go to the log in screen, forcing a hard shutdown by holding the power button
- Adding `PROTON_ENABLE_WAYLAND=1 prime-run mangohud %command%` to all games (this slightly improved the stuttering, but not by much)
- Adding 2 new env vars: `KWIN_TRIPLE_BUFFER=1` and `KWIN_DRM_DISABLE_TRIPLE_BUFFERING=0`
- Changing HDMI cable
Some interesting observations are:
- When using the machine only on the laptop display i.e. disconnected from my external display, the games ran perfectly fine, no issues at all
- When using the external display, sometimes, alt-tabbing out then into the games again temporarily made the games smoother, then it's back to being laggy/feeling laggy
- When using a USB C hub with a HDMI port, the output seems all smooth. I remembered that if I use the same hub on Windows, the output is sourced from the iGPU, not eGPU
- The problem was nonexistent a few months ago
### Steps to reproduce
- Connect laptop to external monitor by HDMI
- Log into the default wayland session
- Open any game
- profit
### Expected behavior
Games & programs should feel smooth and responsive, and not stuttery like it's compiling shaders all the time
### Actual behavior
Games are stuttery, unresponsive at times, despite high FPS, expected frame pacing (16.7ms while locked at 60fps), no thermal throttling or resource usage bottleneck
### Logs / stack traces
```text
```
### Additional system information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.