Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upresolution update handling #3367
Comments
andrewdavidwong
added
C: gui-virtualization
enhancement
labels
Dec 6, 2017
andrewdavidwong
added this to the Release 4.0 milestone
Dec 6, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Dec 6, 2017
Member
.. event:: monitor-layout-change (subject, event, monitor_layout)
This is indeed unused, leftover from pre-AdminAPI core3.
As to the merit: moving resolution handling to qubes-gui-daemon repository makes sense. But I prefer to not add additional code to the qubes-guid tool itself - it is sufficiently complex already, modifications require substantial X11 knowledge and in many cases have side effects. So, if possible better have it in separate tool, so its future modifications will not impact qubes-guid code directly.
TBH, moving the whole qvm-start-gui tool to qubes-gui-daemon repo would be more logical, because it is tightly bound to qubes-guid command line.
This is indeed unused, leftover from pre-AdminAPI core3. As to the merit: moving resolution handling to qubes-gui-daemon repository makes sense. But I prefer to not add additional code to the qubes-guid tool itself - it is sufficiently complex already, modifications require substantial X11 knowledge and in many cases have side effects. So, if possible better have it in separate tool, so its future modifications will not impact qubes-guid code directly. TBH, moving the whole qvm-start-gui tool to qubes-gui-daemon repo would be more logical, because it is tightly bound to qubes-guid command line. |
jpouellet commentedDec 6, 2017
Qubes OS version:
R4-rc3
...continuing discussion from QubesOS/qubes-gui-daemon#17
It's not clear to me that core-admin-client should be involved in resolution updates at all. It seems like having the gui-daemon handle resolution changes directly would:
The only legitimate reason for core-admin-client being involved right now seems to be to check for the no-monitor-layout feature to decide whether or not to send resolution updates, but that would be easy enough to just pass along as a flag to qubes-guid like we currently do for the rpc-clipboard feature.
I would like to simplify the whole resolution update handling situation by making the gui-daemon responsible for handling randr events, querying the new resolution, and dispatching qubes.SetMonitorLayout, removing the need for core-admin to know or care about resolutions at all.
Since this is not a trivial patch, I figured I'd ask if there's some fundamental reason why core-admin should be involved that I'm missing before going ahead and spending the time to implement it.
So... thoughts? Am I missing some reason that core-admin should be involved?
There's also:
in core-admin/qubes/vm/qubesvm.py, except it's not actually implemented or used anywhere, nor do I see what would be improved by it being so.