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 upRe:Wrong screen resolution (64x64) set for AppVM X server when xrandr unavailable on Dom0 side #1305
Comments
marmarek
added
bug
C: core
C: gui-virtualization
P: major
labels
Oct 9, 2015
marmarek
added this to the Release 3.0 updates milestone
Oct 9, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 9, 2015
Member
Do you know any way to disable xrandr in dom0, preferably without X server restart? I'd like add a test for such case...
|
Do you know any way to disable xrandr in dom0, preferably without X server restart? I'd like add a test for such case... |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
plushambush
Oct 9, 2015
I don't know and I don't think it's possible without restarting X server.
May be a stub script returning "RandR extension missing" instead of proper data can help in this?
plushambush
commented
Oct 9, 2015
|
I don't know and I don't think it's possible without restarting X server. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
plushambush
Oct 9, 2015
BTW qubes-guid in send_xconf() uses XGetWindowAttributes() to get root screen resolution and it works ok.
plushambush
commented
Oct 9, 2015
|
BTW |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
plushambush
commented
Oct 9, 2015
|
Ok found a way to fix it. Making a patch |
plushambush commentedOct 9, 2015
It turns out that Issue #998 is not solved (tested on R3.0)
The fix assumes that AppVM gets proper initial screen size upon start and doesn't need further layout updates. But this assumption is wrong because
QubesVM.start_guid()method used for initial screen size setup calls the sameget_monitor_layout()function which misbehaves (returns nothing) when XrandR is unavailable:See file /usr/lib64/python2.7/site-packages/qubes/modules/000QubesVm.py line 1680 (in
start_guid()method:As a result:
After AppVM started on a host with XrandR unavailable its screen dimensions are initially set wrong (64x64):
One has to issue a manual screen setup command inside AppVM to fix this:
After that screen resolution becomes OK