pop-os / cosmic-randr

Library and utility for displaying and configuring Wayland outputs
Mozilla Public License 2.0
21 stars 1 forks source link

disabling the second display does not work or doesn't cause mouse to stay in the first monitor (with 2 displays) #6

Closed sonicrules1234 closed 1 month ago

sonicrules1234 commented 5 months ago

I decided to try out cosmic, and had my valve index plugged into dp-2. I tried disabling it, but the mouse still goes off the screen to the right instead of stopping at the edge

Drakulix commented 5 months ago

Just to be sure, is the Index initialized as a second output? Does it display stuff (before and after changing it's state in cosmic-randr)?

Because we explicitly don't take headsets into account.

sonicrules1234 commented 5 months ago

I haven't looked inside it, but KDE considers it a second display, and I think windows does at first too.

sonicrules1234 commented 5 months ago

I also just tried with my steam deck and an external monitor. Steam deck screen is showing up as eDP-1 in cosmic-randr list, but running cosmic-randr disable eDP-1 does not disable it. I can move the mouse from the external display to the steam deck screen.

Pharmasolin commented 3 months ago

Laptop with a connected external monitor (display port) and TV (HDMI). I can't disable any monitor (and built in display) it just focuses on monitor with 0 index if I try to disable any display (in a settings app).

Package: cosmic-session
Version: 0.1.0~1709999281~22.04~3fc8c8d
Package: cosmic-randr
Version: 0.1.0~1705615670~22.04~88c570c
Package: cosmic-settings
Version: 0.1.0~1710285950~22.04~d6b2823
shawn111 commented 2 months ago
$ cosmic-randr  disable  eDP-1
Error: "configuration failed"

$  cosmic-randr  enable  eDP-1 (works)

$ wlr-randr --output  eDP-1 --off (works)
$ wlr-randr --output  eDP-1 --on (works)

wlr-randr works for me, now I can disable my monitor.

shawn111 commented 1 month ago
cosmic-desktop-0.1.0~git20240514.00.none-1.fc40.x86_64
cosmic-randr-0.1.0~git20240514.22.8ad117e-1.fc40.x86_64

this issue is fixed