So, for context, I have an HDMI dummy plug that is disabled most of the time, but enabled through command-line to use as a virtual display for game streaming with Sunshine.

In GNOME settings, the display is disabled, and that works just fine. I can enable/disable it at will whenever I want to stream games using the new gdctl utility added in GNOME 48.

I want this “monitor” to be disabled in GDM as well since it keeps trying to use the dummy plug as the default display and I can’t see any of the UI elements and have to type my password in blindly. I’ve copied over my monitor config from /home/user/.config/monitors.xml to /var/lib/gdm/.config/monitors.xml as per the Arch Wiki’s recommendations, but when I log out/reboot, nothing changes on GDM. It still tries to show the password entry UI on the dummy plug and my actual display just shows a gray screen.

I know the configs are different for X11 and wayland, but both GDM and GNOME are running under wayland, so that shouldn’t be the issue.

Any help would be appreciated.

I use Arch btw.

  • EccTM@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    10 months ago

    Yeah, seems like it should just be working…

    You’ve probably already got this covered, but when you created your user monitors.xml config, did you have the dummy plug connected and disabled?

    Maybe the config:

    • has it included as a monitor and enabled as part of the screen layout
    • or possibly doesn’t include it at all, and then GDM just assumes it can/should use it as a new option?
    • echo@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      10 months ago

      Yes. Here’s the contents I currently have in /var/lib/gdm/.config/monitors.xml:

      <monitors version="2">
        <configuration>
          <layoutmode>physical</layoutmode>
          <logicalmonitor>
            <x>0</x>
            <y>0</y>
            <scale>1</scale>
            <primary>yes</primary>
            <monitor>
              <monitorspec>
                <connector>DP-1</connector>
                <vendor>SAM</vendor>
                <product>Odyssey G93SC</product>
                <serial>HNTW700164</serial>
              </monitorspec>
              <mode>
                <width>5120</width>
                <height>1440</height>
                <rate>239.997</rate>
              </mode>
              <colormode>bt2100</colormode>
            </monitor>
          </logicalmonitor>
          <disabled>
            <monitorspec>
              <connector>HDMI-1</connector>
              <vendor>FUN</vendor>
              <product>Evanlak8K V2</product>
              <serial>0x00006410</serial>
            </monitorspec>
          </disabled>
        </configuration>
      </monitors>
      

      The disabled dummy plug is the “Evanlak8K V2” device while my functional monitor is my Samsung Odyssey OLED G9. This config is the same as the one currently running on my GNOME desktop config, but in GDM still defaults to the enabled dummy plug, even with the fixed ownership.

      At this point, do you think I should issue a report on GDM’s repository? Maybe the devs there would have more insight