Open kgilmer opened 1 year ago
Appears in both regolith-control-center
and gnome-control-center
.
UI actions from gnome-control-center to disable invalid monitor don't appear to make any lasting changes.
IMO this presents a blocker-level severity as the invalid monitor consumes a workspace.
Steps to reproduce:
expected behavior: only active monitors are present actual behavior: additional monitor is present, cannot be disabled via settings UI
I realized the 3rd display is the laptop's built-in display. Normally I keep it closed and use two external displays when working. Opening the lid shows the monitor active and running. I'm unable to cause any changes when opening closing the lid.
Currently, Sway has no way to identify built-in monitors. One way to do this is to use XResources
to specify the built-in monitor. Alternatively, we could add a panel to regolith-control-center
, or at least a script that allows the user to select the laptop’s built-in display. We would need to add a config partial to the regolith-wm-config
package that handles the lid close action (which should be disabled by default for the built-in display).
I'll create and push the required config partial to regolith-wm-config
. It would check the variable regolith.sway.laptop_lid_display
in XResources
to identify the built-in display. Then, either the user can manually set the variable or we can discuss an easier way for the user to set the laptop's inbuilt display.
Currently, Sway has no way to identify built-in monitors.
Hmm ok.
One way to do this is to use XResources to specify the built-in monitor.
Better than nothing but requiring users to do this seems undesirable IMO.
add a config partial to the regolith-wm-config package that handles the lid close action
Nice, yes this is the root issue I believe.
Surely there is something in the desktop stack that knows that a given display is "built-in"...otherwise how would X11 be able to do this without user specification of the specific built-in monitor?
Take a look at this: https://unix.stackexchange.com/questions/419755/how-to-detect-built-in-laptop-display. I'm not sure if this is true for all laptops, but I can probably add a line to the regolith-ftue
/ regolith-session-wayland
scripts that detects the built in monitor based on the connector.
I have a possibly related issue that is essentially the opposite: External monitor remains detected and consumes a workplace even after being unplugged.
I also can't make any changes in the Screen Display settings - after I hit apply it just resets itself.
This machine is a laptop with 2 physical monitors attached. The lid is closed. The last one in this screenshot is invalid.