Skip to content

Hardcoded WLR_DRM_DEVICES=/dev/dri/card1 in dms-greeter causes startup failure on single-GPU systems #1393

Description

@hnsylzg

Compositor

  • Niri
  • Hyprland
  • MangoWC (dwl)
  • Sway

Distribution

  • Arch Linux
  • CachyOS
  • Fedora
  • NixOS
  • Debian
  • Ubuntu
  • Gentoo
  • OpenSUSE
  • Other (specify below)

If Other, please specify

No response

dms version

v1.4

Description

The dms-greeter script has a hardcoded environment variable export WLR_DRM_DEVICES=/dev/dri/card1 at line 5. This causes the greeter to fail on systems with only one GPU (like VMware or single-GPU desktops) where the primary device is /dev/dri/card0.

Expected Behavior

The greeter should either default to /dev/dri/card0 or, ideally, not set this variable at all to allow wlroots to automatically detect the available DRM device.

Steps to Reproduce & Installation Method

1.Install dms-greeter on a system with a single GPU.
2.Run dms-greeter --command mangowc.
3.The compositor fails to start because it's forced to look for /dev/dri/card1 which does not exist.

Error Messages/Logs

[libseat] [libseat/backend/logind.c:116] Could not stat path '/dev/dri/card1'
[backend/session/session.c:331] Failed to open device: '/dev/dri/card1': No such file or directory
Unable to open /dev/dri/card1 as KMS device
Found 0 GPUs, cannot create backend

Screenshots/Recordings

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions