Skip to content

Resolution detection not working #193

@andreas-hartmann

Description

@andreas-hartmann

Describe the bug
The function to detect the current resolution is too primitive, it appears to just take the first one from cat /sys/class/drm/card*-*/modes
It needs to take into account which card is active as well.

Expected behavior
The correct resolution is output on a system with multiple GPUs.

System Information
You don't have to provide this information if you're not comfortable doing so, but it'll help us solve the issue a lot faster.

  • Distribution: Arch
  • Desktop Environment: Plasma
  • Operating System: Linux
  • Terminal: Konsole
  • Macchina's version: 6.4.0

I have an Nvidia GPU and an integrated AMD GPU. The output reports 2560x1440, the correct resolution is 5120x1440.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions