pop-os / cosmic-comp

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

Unable to switch to 240Hz mode #975

Open ZVNexus opened 2 weeks ago

ZVNexus commented 2 weeks ago
nexus@prism:~/cosmic-comp$ cosmic-randr mode DP-1 3840 2160 --refresh 120
nexus@prism:~/cosmic-comp$ cosmic-randr mode DP-1 3840 2160 --refresh 240
Error: "configuration failed"
nexus@prism:~/cosmic-comp$ cosmic-randr mode DP-1 3840 2160 --refresh 239.991
Error: "configuration failed"
nexus@prism:~/cosmic-comp$

I am seeing the following error from cosmic-comp after attempting to set the refresh rate: cosmic-comp[5298]: Failed to apply config. Resetting

I added some extra logging to see what it was failing on below:

Nov 03 00:37:59 prism cosmic-comp[61303]: Failed to apply config. Resetting
Nov 03 00:37:59 prism cosmic-comp[61303]: Caused by: DrmError(TestFailed(crtc::Handle(78)))

I forced it to apply the refresh anyways, and it does run at 240Hz after rebooting (can't get it to apply in the same session, just black screen).

List of modes below:

DP-1 (enabled)
  Model:
  Physical Size: 700 x 400 mm
  Position: 0,0
  Scale: 150%
  Transform: normal
  Adaptive Sync: false

  Modes:
    3840x2160 @ 239.991 Hz
    3840x2160 @ 120.000 Hz (current)
    3840x2160 @ 119.880 Hz
    3840x2160 @  60.000 Hz
    3840x2160 @  59.997 Hz (preferred)
    3840x2160 @  59.940 Hz
    3840x2160 @  50.000 Hz
    3840x2160 @  30.000 Hz
    3840x2160 @  29.970 Hz
    3840x2160 @  25.000 Hz
    3840x2160 @  24.000 Hz
    3840x2160 @  23.976 Hz
    2560x1440 @ 239.970 Hz
    2560x1440 @ 119.998 Hz
    2560x1440 @  59.951 Hz
    1920x1200 @  59.997 Hz
    1920x1080 @ 240.000 Hz
    1920x1080 @ 120.000 Hz
    1920x1080 @ 119.880 Hz
    1920x1080 @  60.000 Hz
    1920x1080 @  59.940 Hz
    1920x1080 @  50.000 Hz
    1920x1080 @  30.000 Hz
    1920x1080 @  29.970 Hz
    1920x1080 @  25.000 Hz
    1920x1080 @  24.000 Hz
    1920x1080 @  23.976 Hz
    1680x1050 @  59.997 Hz
    1600x1200 @  59.997 Hz
     1600x900 @  60.000 Hz
     1440x900 @  59.997 Hz
    1280x1024 @  75.025 Hz
    1280x1024 @  60.020 Hz
     1280x800 @  59.997 Hz
     1280x720 @  60.000 Hz
     1280x720 @  59.940 Hz
     1280x720 @  50.000 Hz
     1152x864 @  75.000 Hz
     1024x768 @  75.029 Hz
     1024x768 @  60.004 Hz
      800x600 @  75.000 Hz
      800x600 @  60.317 Hz
      720x576 @  50.000 Hz
      720x480 @  60.000 Hz
      720x480 @  59.940 Hz
      720x400 @  70.082 Hz
      640x480 @  75.000 Hz
      640x480 @  60.000 Hz
      640x480 @  59.940 Hz
ChaosBlades commented 2 weeks ago

Not getting fixed any time soon. https://github.com/pop-os/cosmic-comp/pull/969