pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
418 stars 51 forks source link

VRR doesn't work #490

Open onlyreportingissues opened 1 month ago

onlyreportingissues commented 1 month ago

Tested it with the AppImage of this tool in COSMIC and GNOME 46 (to compare & check if it's working): https://github.com/Nixola/VRRTest/releases

VRR can be enabled in GNOME 46 with the command: gsettings set org.gnome.mutter experimental-features "['variable-refresh-rate']"

It will be available in the display settings when clicking on Hz after logging in again. In GNOME it started lagging below 48 Hz on my monitor, above it it run like butter. In COSMIC it stutters also when it is above 48 Hz.

onlyreportingissues commented 1 month ago

Apparently there are many issues with VRR and hardware cursor. Maybe this combination also causes many of the other gaming related issues found here?

Edit: Also, it seems like RDNA 2 GPUs need a tweak for VRR to work properly because the power management of those cards are broken: https://old.reddit.com/r/linux_gaming/comments/1ct277o/i_found_a_fix_for_vrr_inconsistency_in_games/

Drakulix commented 1 month ago

VRR is currently not supported, even if exposed by some applications (wdisplays, cosmic-randr).

While cosmic-comp can toggle the required kernel apis, we haven't done any verification of this feature actually working yet, which also includes adding a bunch of workarounds for buggy gpu drivers or multiple vendors.

onlyreportingissues commented 1 month ago

VRR is currently not supported, even if exposed by some applications (wdisplays, cosmic-randr).

While cosmic-comp can toggle the required kernel apis, we haven't done any verification of this feature actually working yet, which also includes adding a bunch of workarounds for buggy gpu drivers or multiple vendors.

These 2 (also written in Rust) might be of use when dealing with the RDNA 2 power management problem at some point:

mmstick commented 1 month ago

@onlyreportingissues system76-power already manages amdgpu power profiles

Umio-Yasuno commented 1 month ago

@onlyreportingissues system76-power already manages amdgpu power profiles

I think system76-power doesn't support pp_power_profile_mode switching.
Also, power_profile and power_method are only supported by radeon driver, not AMDGPU drivers.

https://github.com/pop-os/system76-power/blob/a546efaf2cba8bd58fd39e14c389c23ef2e91ba9/src/kernel_parameters.rs#L120-L124

Document: https://www.kernel.org/doc/html/latest/gpu/amdgpu/thermal.html#pp-power-profile-mode