Skip to content

Kanshi and regolith-displayd see different displays in clamshell mode #1136

@NixEngh

Description

@NixEngh

Describe the bug
On my laptop (Huawei Matebook x pro), and I assume many others, when closing it the display is no longer visible in the regolith control center. When I then try to change display settings and press apply, no change is visible. However, when I go to the kanshi profiles, I can see that the profile that was created/updated isn't in use, but instead a profile that includes the closed laptop screen is, so I just have to add my closed display with the "disabled" setting and remove the other profile file. I think the problem is that regolith-displayd doesn't see the laptop display anymore, and therefore updates/creates a kanshi profile without it. However, kanshi still tries to match a profile that contains the closed laptop display.

To Reproduce
Be on the right laptop and connect two external displays. Close the laptop such that the external displays remain on (clamshell mode). Try to configure anything in the display settings and press apply

Expected behavior
The settings should be applied and immediately visible

Installation Details

  • Regolith Version: [e.g. 3.2]
  • Host OS: Ubuntu

Additional context

Example (edit):

I close my laptop and try to change my external display's scaling from 1 to 1.25.

Profile created by regolith control center

profile {
    output "Acer Technologies EK271 E A33101FFE3W01" mode 1920x1080@60Hz position 0,0 transform normal scale 1.25 enable
}

Profile that works

profile {
    output "Telxon Corporation 0x1388 TL139GDXP01" disable
    output "Acer Technologies EK271 E A33101FFE3W01" mode 1920x1080@60Hz position 0,0 transform normal scale 1.25 enable
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageAny bug that requires classification by a contributor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions