Set wlr_output_head serial number#1575
Conversation
|
@duvholt are you telling me I don't have to open cosmic settings and re-arrange my monitors every time I connect my dock at work? 🥹 |
Tbf, serial numbers aren't the perfect solution to these issues (though I am glad to provide some infrastructure to support scripting things like these via kanshi/shikane given we support the relevant protocol anyway). There are (especially no-name) monitors reporting the same serial number for all monitors of the same model. The correct solution here is unfortunately hashing/comparing the whole EDID (something which really isn't very user-friendly). We already started using that for pinned-workspaces to experiment more with this approach. The goal is to eventually extend this to the stored output config, so you'll get stable positions/layouts in these circumstances as well. |
|
Ah! Thanks for the explanation. Can't wait until that lands for the display config too. Thank you. |
|
@Drakulix Just FYI, after this PR if I connect my external monitors cosmic-settings wouldn't show anything in the display page. This is being printed out open cosmic-settings: The only difference between the kdl output of my internal display and the external one is the serial_number field, so I tried disabling it. Commenting out the bit in cosmic-randr that prints out the serial_number fixed the issue for me. It looks like cosmic-settings does not have a field for "serial number" and it wasn't a problem before since cosmic-comp wasn't passing that to cosmic-randr. |
This is a follow up on Smithay/smithay#1795 where I added output serial number support in Smithay.
As mentioned in that PR my main use case for adding serial numbers is for Shikane/Kanshi to correctly identify my monitor setup since I have a dual monitor setup with two DELL U2715H.
wlr-randroutput after this change:I also plan to extend cosmic-randr to show serial number as it is currently only shown when using
cosmic-randr list --kdlright now.