pop-os / cosmic-epoch

Next generation Cosmic desktop environment
3.15k stars 84 forks source link

Unable to enable external monitor #775

Open pms-fh opened 2 months ago

pms-fh commented 2 months ago

Trying to use cosmic for the first time in alpha, on arch... When starting up, the monitor flashes on, but then goes blank. I've seen similar kinds of issues in this issue list that relate to the laptop screen, but in this instance, it's my external monitor. journal output is as follows.

Aug 20 10:12:23 platypusden cosmic-comp[113274]: Error reading from session socket
Aug 20 10:12:58 platypusden cosmic-comp[114450]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
Aug 20 10:12:58 platypusden cosmic-comp[114450]: Key-Binding 'Period' only matched case insensitive for "period"
Aug 20 10:12:58 platypusden cosmic-comp[114450]: Key-Binding 'Comma' only matched case insensitive for "comma"
Aug 20 10:12:58 platypusden cosmic-comp[114450]: Key-Binding 'Period' only matched case insensitive for "period"
Aug 20 10:12:58 platypusden cosmic-comp[114450]: Key-Binding 'Comma' only matched case insensitive for "comma"
Aug 20 10:12:58 platypusden cosmic-comp[114450]: shortcuts custom config error: GetKey("custom", Os { code: 2, kind: NotFound, message: "No such file or directory" })
Aug 20 10:12:59 platypusden cosmic-comp[114450]: Failed to create sockets: Address already in use (os error 98)
Aug 20 10:12:59 platypusden cosmic-comp[114450]: Failed to remove X11 socket
Aug 20 10:12:59 platypusden cosmic-comp[114450]: Unable to become drm master, assuming unprivileged mode
Aug 20 10:12:59 platypusden cosmic-comp[114450]: ignoring requested context priority, EGL_IMG_context_priority not supported
Aug 20 10:12:59 platypusden cosmic-comp[114450]: ignoring requested context priority, EGL_IMG_context_priority not supported
Aug 20 10:12:59 platypusden cosmic-comp[114450]: ignoring requested context priority, EGL_IMG_context_priority not supported
Aug 20 10:12:59 platypusden cosmic-comp[114450]: ignoring requested context priority, EGL_IMG_context_priority not supported
Aug 20 10:12:59 platypusden cosmic-comp[114450]: Unable to become drm master, assuming unprivileged mode
Aug 20 10:12:59 platypusden cosmic-comp[114450]: ignoring requested context priority, EGL_IMG_context_priority not supported
Aug 20 10:13:02 platypusden cosmic-comp[114450]: thread 'surface-HDMI-A-1' panicked at 'overflow in iter::sum over durations': /usr/src/debug/rust/rustc-1.80.1-src/library/core/src/time.rs:1237
                                                    0: <unknown>
                                                    1: <unknown>
                                                    2: <unknown>
                                                    3: <unknown>
                                                    4: <unknown>
                                                    5: <unknown>
                                                    6: <unknown>
                                                    7: <unknown>
                                                    8: <unknown>
                                                    9: <unknown>
                                                   10: <unknown>
                                                   11: <unknown>
                                                   12: <unknown>
                                                   13: <unknown>
                                                   14: <unknown>
                                                   15: <unknown>
                                                   16: <unknown>
                                                   17: <unknown>
                                                   18: <unknown>
                                                   19: <unknown>
                                                   20: <unknown>
                                                   21: <unknown>
Aug 20 10:14:00 platypusden cosmic-comp[114450]: Failed to apply config. Resetting
Aug 20 10:14:00 platypusden cosmic-comp[114450]: Failed to reset output config.

the montior is a 49" 5120x1440 monitor. It works just fine under gnome.

❯ cosmic-randr list
HDMI-A-1 (enabled)
  Model:
  Physical Size: 1190 x 340 mm
  Position: 0,0
  Scale: 100%
  Transform: normal
  Adaptive Sync: false

  Modes:
    5120x1440 @  59.977 Hz
    3840x2160 @  60.000 Hz (current) (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
    3840x1080 @ 119.974 Hz
    3840x1080 @  59.968 Hz
    2560x1440 @ 119.998 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 @  24.000 Hz
    1920x1080 @  23.976 Hz
    1280x1024 @  75.025 Hz
     1280x720 @  60.000 Hz
     1280x720 @  59.940 Hz
     1280x720 @  50.000 Hz
     1024x768 @  60.004 Hz
      800x600 @  60.317 Hz
      720x576 @  50.000 Hz
      720x480 @  60.000 Hz
      720x480 @  59.940 Hz
      640x480 @  60.000 Hz
      640x480 @  59.940 Hz
eDP-2 (enabled)
  Model:
  Physical Size: 340 x 220 mm
  Position: 3840,0
  Scale: 100%
  Transform: normal
  Adaptive Sync: false

  Modes:
    2560x1600 @ 240.000 Hz (current) (preferred)
    2560x1600 @  60.002 Hz

the "preferred" mode is not optimal for that monitor, and I'm unsure how to make it 5120x1440

I've tried to set it direct via cosmic-randr but that just results in failure.

shishimaru90 commented 1 month ago

I have a similar issue on Pop!_OS Nvidia, updated to latest available packages (Alpha 1, I guess almost Alpha 2). I turned off the external monitor, it's impossible to enable it again. Tried with cosmic-randr, but seems that there's an error with the compositor/Wayland.

jbdamiano commented 1 month ago

I have a similar issue on Pop!_OS Nvidia, updated to latest available packages (Alpha 1, I guess almost Alpha 2). I turned off the external monitor, it's impossible to enable it again. Tried with cosmic-randr, but seems that there's an error with the compositor/Wayland.

I had a simular issue with internal display #916 To retrieve it I have deleted the file ~/.local/state/cosmic-comp/outputs.ron